• Tedd Ho-Jeong An's avatar
    Bluetooth: btusb: Add routine for applying Intel DDC parameters · 52cc9168
    Tedd Ho-Jeong An authored
    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: default avatarTedd Ho-Jeong An <tedd.an@intel.com>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    52cc9168
btusb.c 78 KB