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)
commit52cc916818c86abc0a123bf1e55fd71c32aa042b
tree956b466922714371ec9ef23ef0c4655d30b57466
parent3713416763dc03e9011a3146c42411189531446f
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