Thread (10 messages) 10 messages, 3 authors, 2021-04-28

Re: [PATCH v3 2/3] Bluetooth: add support to enumerate local supports codecs v2

From: Marcel Holtmann <marcel@holtmann.org>
Date: 2021-04-23 08:00:18

Hi Kiran,
Add support for HCI_Read_Local_Supported_Codecs_V2 and query codec
capabilities

snoop:
quoted
HCI Event: Command Complete (0x0e) plen 20
     Read Local Supported Codecs V2 (0x04|0x000d) ncmd 1
       Status: Success (0x00)
       Number of supported codecs: 7
         Codec: u-law log (0x00)
         Logical Transport Type: 0x02
           Codec supported over BR/EDR SCO and eSCO
         Codec: A-law log (0x01)
         Logical Transport Type: 0x02
           Codec supported over BR/EDR SCO and eSCO
         Codec: CVSD (0x02)
         Logical Transport Type: 0x02
           Codec supported over BR/EDR SCO and eSCO
         Codec: Transparent (0x03)
         Logical Transport Type: 0x02
           Codec supported over BR/EDR SCO and eSCO
         Codec: Linear PCM (0x04)
         Logical Transport Type: 0x02
           Codec supported over BR/EDR SCO and eSCO
         Codec: Reserved (0x08)
         Logical Transport Type: 0x03
           Codec supported over BR/EDR ACL
           Codec supported over BR/EDR SCO and eSCO
         Codec: mSBC (0x05)
         Logical Transport Type: 0x03
           Codec supported over BR/EDR ACL
           Codec supported over BR/EDR SCO and eSCO
       Number of vendor codecs: 0
......
< HCI Command: Read Local Suppor.. (0x04|0x000e) plen 7
       Codec: mSBC (0x05)
       Logical Transport Type: 0x00
       Direction: Input (Host to Controller) (0x00)
quoted
HCI Event: Command Complete (0x0e) plen 12
     Read Local Supported Codec Capabilities (0x04|0x000e) ncmd 1
       Status: Success (0x00)
       Number of codec capabilities: 1
        Capabilities #0:
       00 00 11 15 02 33

Signed-off-by: Kiran K <redacted>
Signed-off-by: Chethan T N <redacted>
Signed-off-by: Srivatsa Ravishankar <redacted>
---
* changes in v3:
 No changes

* changes in v2:
 add length check for event data before accessing

include/net/bluetooth/hci.h      |   2 +
include/net/bluetooth/hci_core.h |  10 +++
net/bluetooth/hci_core.c         |   4 +-
net/bluetooth/hci_event.c        | 110 +++++++++++++++++++++++++++++++
4 files changed, 125 insertions(+), 1 deletion(-)
I would rather move the v2 support to 3/3 in this series.

Regards

Marcel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help