]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb: Add routine for applying Intel DDC parameters
authorTedd Ho-Jeong An <tedd.an@intel.com>
Fri, 12 Jun 2015 23:20:05 +0000 (16:20 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 17 Jun 2015 13:06:42 +0000 (15:06 +0200)
commit15216cab2d42147ee0e37d6a729e87087249a3d1
tree956b466922714371ec9ef23ef0c4655d30b57466
parent31ef382b4b17290b97e59064a4ecd7eb34a223c0
Bluetooth: btusb: Add routine for applying Intel DDC parameters

This patch adds the routine to apply the DDC parameter from device
specific ddc file.

Once the device is rest to operational mode, optionally, it can
download the device specific configration (DDC) parameters before
the BlueZ starts the stack initialization.

It opens the DDC file based on HW_VARIANT and DEV_REVISION and
send ID/Value with HCI_Intel_Write_DDC command.

Format of DDC file
DDC file contains one or more number of DDC structure.

DDC Structure
It has 'Length' field of one octet, DDC 'ID' field of
two octets followed by the array of DDC 'Value' that gives
the value of parameters itself.
'Length' contains the length of DDC 'ID' and DDC 'Value'.

+------------+----------+
| Size(byte) |    Name  |
+------------+----------+
|      1     | Length   |
+------------+----------+
|      2     | ID       |
+------------+----------+
| Length - 2 | Value    |
+------------+----------+

Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c