SWRA751 September 2022
Description:
This command configures the SBC decoder parameters. This command must not be called during streaming, meaning no stream has started using the start stream command. The command refers to stream. Note that in addition to that API calls, the controller PCM codec must also be configured using the HCI_VS_Write_CODEC_Config and HCI_VS_Write_CODEC_Config_Enhanced commands.
Command Parameter | Size (bytes) | Value | Description |
---|---|---|---|
PCM number of channels | 1 | 0x0 - 0x2 | The number of channels (1 or 2) of the PCM output |
SBC input sample frequency | 1 | 0x1 – 0x3 | The sample frequency rate of the PCM input to SBC decoder. Note that this parameter must be identical to the PCM output sample.0x0 – 16000 Hz0x01 – 32000 Hz0x02 – 44100 Hz0x03 – 48000 Hz |
SBC channel mode | 1 | 0x0 – 0x3 | Describes the channel mode used to encode a stream0x0 – MONO0x1 – DUAL_CHNL0x2 – STEREO0x3 – JOINT_STEREO |
SBC number of blocks | 1 | 0x4, 0x8, 0xC, 0x10 | Number of SBC decoder blocks. (4, 8, 12, 16) |
SBC number of sub-bands | 1 | 0x4 - 0x8 | Number of SBC decoder sub-band (4, 8) |
SBC allocation method | 1 | 0x0 - 0x1 | SBC allocation method (SNR, loudness)0 – Loudness1 – SNR |
Reserved | 4 | For future use | |
Reserved | 4 | For future use | |
Reserved | 4 | For future use |
Returned Value | Description | Size (bytes) | Events Generated |
---|---|---|---|
0x00 0x01 – 0xFF |
Command succeeded. Command failed. |
1 | Command Complete |