summaryrefslogtreecommitdiff
path: root/profiles
Commit message (Collapse)AuthorAgeFilesLines
* hog: Fix compilation error on 32 bit machineSzymon Janc2014-05-141-1/+1
| | | | | | | | | | | | Fix following with GCC version 4.8.2 (Debian 4.8.2-21): CC profiles/input/bluetoothd-hog.o profiles/input/hog.c: In function ‘report_value_cb’: profiles/input/hog.c:149:8: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘unsigned int’ [-Werror=format=] status, sizeof(ev)); ^
* input: Fix compilation errors on 32 bit machineSzymon Janc2014-05-141-2/+2
| | | | | | | | | | | | | | | | | | Fix following with GCC version 4.8.2 (Debian 4.8.2-21): CC profiles/input/bluetoothd-device.o profiles/input/device.c: In function ‘uhid_send_feature_answer’: profiles/input/device.c:232:8: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘unsigned int’ [-Werror=format=] len, sizeof(ev)); ^ profiles/input/device.c: In function ‘uhid_send_input_report’: profiles/input/device.c:274:8: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘unsigned int’ [-Werror=format=] len, sizeof(ev)); ^
* hog: Fix report_value_cb() buffer overflowPetri Gynther2014-05-091-9/+14
| | | | | Fix buffer overflow that would happen in the case: hogdev->has_report_id == TRUE && report_size == UHID_DATA_MAX
* hog: Improve report_value_cb() uHID error handlingPetri Gynther2014-05-091-5/+16
| | | | | Use similar uHID error handling and debug messages as uhid_send_input_report() in profiles/input/device.c.
* hog: Fix report_value_cb() signaturePetri Gynther2014-05-091-2/+1
| | | | Fix report_value_cb() signature to match GAttribNotifyFunc.
* audio/player: Fix accepting invalid folders in ChangeFolderLuiz Augusto von Dentz2014-05-091-0/+8
| | | | | | When navigating on VFS ChangeFolder should only accept folders that are one level away for the current one as it does use ChangePath which can only navigate one level up/down in the virtual filesystem.
* input: Fix minor coding style issuesJohan Hedberg2014-05-081-24/+28
|
* input: Add userspace HID supportPetri Gynther2014-05-085-16/+752
| | | | | | | | | | | | | | | | | | | Enable HID protocol handling in userspace when UserspaceHID=true in input.conf. Benefits of userspace HID: 1. Persistent HID/input pipeline For a Bluetooth HID device, the corresponding kernel HID/input devices are created only once when the Bluetooth HID device is used the first time. The HID/input pipeline is not destroyed and recreated every time when the Bluetooth HID device disconnects and reconnects. 2. HID vs HoG parity Enables HID and HoG devices to operate the same way in BlueZ stack, using uHID kernel module (/dev/uhid) to pass HID report data between bluetoothd and kernel HID subsystem. 3. Debugging It is easier to debug HID protocol in userspace than in HIDP kernel module.
* hog: Remove redundant structAndrzej Kaczmarek2014-05-051-20/+5
| | | | | | Since complete descriptor discovery is now performed inside gatt code, there's no need to store end handle for characteristics and thus we can remove disc_desc_cb_data.
* thermometer: Discover descriptors using gatt_discover_descAndrzej Kaczmarek2014-05-051-23/+5
|
* cyclingspeed: Discover CCC using gatt_discover_descAndrzej Kaczmarek2014-05-051-47/+26
|
* heartrate: Discover CCC using gatt_discover_descAndrzej Kaczmarek2014-05-051-40/+19
|
* scan: Discover CCC using gatt_discover_descAndrzej Kaczmarek2014-05-051-21/+13
|
* hog: Discover descriptors using gatt_discover_descAndrzej Kaczmarek2014-05-051-40/+12
|
* gas: Discover CCC using gatt_discover_descAndrzej Kaczmarek2014-05-051-27/+13
|
* hog: Improve report map debuggingAndrzej Kaczmarek2014-04-301-26/+38
| | | | | | | | | | | | Now that we can split report map into items it's convenient to have it printed with items structure preserved which makes it more useful for debugging. Up to 5 bytes are printed for each item which is enough for short items and for long items continuation mark ('...') is printed if necessary. This is because as for now there are no long item tags defined except for some vendor defined thus we can safely "ignore" them and avoid overly complicated code.
* hog: Fix checking for Report ID item presenceAndrzej Kaczmarek2014-04-301-5/+62
| | | | | | | | | | | | | | | | Report ID item in Report Descriptor is now detected by simply looking for applicable item prefixes anywhere in data and does not take items structure into consideration. This could lead to false-positive detections in case value we look for is just part of item data, not an actual item prefix. As defined in Device Class Definition for HID (6.2.2.7), Report ID is a short item with prefix 100001nn (binary) thus we do not need to do complete parsing of Report Descriptor but only need to check items prefixes in order to find Report ID items reliably. This patch checks Report Descriptor item by item looking for item prefix which matches Report ID, as defined in spec above.
* audio/player: Fix properties Browsable/SearchableLuiz Augusto von Dentz2014-04-231-3/+3
| | | | | | | Those properties are set before the initial scope has been set so checking for scope will always cause them to be invalidated, instead check if any folder exists which indicates that MediaFolder interface will be created shortly.
* input: Use proper bool type for boolean variableJohan Hedberg2014-04-051-7/+7
|
* input: Refactor HIDP kernel module interactionPetri Gynther2014-04-051-53/+64
| | | | Refactor HIDP kernel module interaction to ioctl_xxx routines.
* input: Fix input.conf IdleTimeout handlingPetri Gynther2014-04-051-7/+6
| | | | | | IdleTimeout is an optional config item in input.conf. Don't complain if it is not defined. Instead, do the opposite and show its value in debug logs only when it is defined.
* Remove unneeded headers includeClaudio Takahasi2014-04-042-3/+0
|
* proximity: Remove att_put_u8() usageClaudio Takahasi2014-03-251-1/+1
|
* gatt: Move Characteristic properties to attrib/gatt.hClaudio Takahasi2014-03-257-22/+22
| | | | | | Properties are defined by GATT specification. This patch moves and renames the defines related to Characteristic properties bits from attrib/att.h to attrib/gatt.h
* Replace att_put_u16() by put_le16()Claudio Takahasi2014-03-247-23/+25
|
* Replace att_get_u16() by get_le16()Claudio Takahasi2014-03-247-31/+36
|
* Replace att_put_u32() by put_le32()Claudio Takahasi2014-03-241-1/+1
|
* Replace att_get_u32() by get_le32()Claudio Takahasi2014-03-242-2/+4
|
* Replace bt_put_be64() by put_be64()Claudio Takahasi2014-03-241-4/+4
|
* Replace bt_put_be32() by put_be32()Claudio Takahasi2014-03-241-2/+2
|
* Replace bt_put_be16() by put_be16()Claudio Takahasi2014-03-242-7/+7
|
* Replace bt_get_be64() by get_be64()Claudio Takahasi2014-03-241-3/+3
|
* Replace bt_get_be32() by get_be32()Claudio Takahasi2014-03-242-8/+8
|
* Replace bt_get_be16() by get_be16()Claudio Takahasi2014-03-243-18/+20
|
* core: Update btd_adapter_find_device to also match the address typeJohan Hedberg2014-03-224-5/+7
| | | | This is necessary to do accurate matching for LE devices.
* Replace bt_get_le64() by get_le64()Claudio Takahasi2014-03-211-1/+2
|
* bnep: avoid use of caddr_tNatanael Copa2014-03-141-2/+2
| | | | | | | | | caddr_t is legacy BSD and should be avoided. This fixes the following compile error on Alpine Linux with musl libc: profiles/network/bnep.c: In function 'bnep_if_up': profiles/network/bnep.c:205:33: error: 'caddr_t' undeclared (first use in this function) err = ioctl(sk, SIOCSIFFLAGS, (caddr_t) &ifr);
* audio/player: Use proper errors instead of using .FailedLuiz Augusto von Dentz2014-03-131-19/+10
|
* hog: Fill ev.u.create.{phys,uniq} for UHID_CREATEPetri Gynther2014-03-071-0/+3
| | | | | | | | | | | | Fill ev.u.create.{phys,uniq} fields when uHID device is created. These values are copied to kernel hid_device structure. linux/include/linux/hid.h: struct hid_device { ... char name[128]; /* Device name */ char phys[64]; /* Device physical location */ char uniq[64]; /* Device unique identifier (serial #) */
* hog: Remove hog_device.namePetri Gynther2014-03-071-9/+5
| | | | Remove hog_device.name and use hog_device.device to get the device name.
* input: Remove input_device.namePetri Gynther2014-03-071-9/+2
| | | | Remove input_device.name and use input_device.device to get the device name.
* alert: Only remove attio callback after ATT request was sentAnderson Lizardo2014-03-051-1/+17
| | | | | | | | If there is a single registered attio callback, any pending ATT requests will be dropped as soon as it is removed. This commit makes sure that the request is sent before removing the callback. Other places using attio callbacks may need fixing as well.
* AVCTP: Fix sending wrong response formatLuiz Augusto von Dentz2014-03-041-2/+2
| | | | | | Reject and Not Implemented responses of PASS THROUGH commands shall contain the data of the previous frame accourding to AVC Panel Subunit specification page 87.
* audio: Update code for set_company_id functionMarcel Holtmann2014-03-011-4/+4
|
* core: Split LE and BR/EDR states for devicesJohan Hedberg2014-02-211-1/+3
| | | | | | | | | | | | For dual mode devices there are several state variables that are independent for each bearer. This patch splits these states up into two separate variable groups in btd_device and tracks the values based on what kind of connection is in question. The information is also used to select which bearer to use with Device1.Connect and Device1.Pair. The basic rule is that the bearer that's not connected/paired is selected, or then the bearer over which the device was last seen is selected.
* hog: Use HoG device name as uHID input device namePetri Gynther2014-02-191-1/+9
|
* core: Fix device_get_name() to always null-terminate what it returnsPetri Gynther2014-02-191-1/+1
| | | | | Fix device_get_name() to null-terminate the name string it returns. Modify all callers as needed.
* health: Fix HealthDevice dbus registrationAndre Guedes2014-02-171-1/+2
| | | | For some reason, HealthDevice property table wasn't been registered.
* avrcp: Fix sending invalid attributes in GetCurrentPlayerValueLuiz Augusto von Dentz2014-02-112-9/+19
| | | | | If the response to ListPlayerAttributes contains invalid attributes they should not be send in GetCurrentPlayerValue.
* avrcp: Fix using incorrect buffer for SetVolumeAndrei Emeltchenko2014-02-111-1/+1
| | | | The command requires one parameter.