SWRA751 September 2022
Description:
This command configures the PCM source type, SBC encoder, and SARC parameters. This command must not be called during streaming, meaning no stream has started using the start stream command.
The command can refer to a specific stream, or to both active streams in a multiple SNK scenario. Note that, in addition to that API call, the controller PCM codec must also be configured using the following commands:
HCI_VS_Write_CODEC_Config
HCI_VS_Write_CODEC_Config_Enhanced
Command Parameter | Size (bytes) | Value | Description |
---|---|---|---|
Audio Source | 1 | 0x0 - 0x1 | Determines the audio source of the A2DP stream.0 – Audio source is the host through the PCM bus.1 – Audio source is the internal controller FM. |
PCM input sample | 1 | 0x1 – 0x9 | The PCM sample frequency rate of the input PCM bus. This parameter is valid only when the audio source is the host. When this parameter is different from the SBC input sample frequency parameter the SARC will be used for sample rate conversion.0x01 – 8000 Hz0x02 – 11025 Hz0x03 – 12000 Hz0x04 – 16000 Hz0x05 – 22050 Hz0x06 – 24000 Hz0x07 – 32000 Hz0x08 – 44100 Hz0x09 – 48000 Hz |
PCM number of channels | 1 | 0x1 – 0x2 | The number of channels (1 or 2) of the PCM input. This parameter is valid only when the audio source is the host. |
SBC input sample frequency | 1 | 0x0 - 0x3 | The sample frequency rate of the PCM input to SBC encoder. Note that when this parameter is different from the PCM input sample frequency, the SARC is used for sample rate conversion.0x0 – 16000 Hz0x1 – 32000 Hz0x2 – 44100 Hz0x3 – 48000 Hz |
SBC channel mode | 1 | 0x0 - 0x3 | Describes the channel mode used to encode a stream.0x0 – MONO0x1 – DUAL_CHNL0x2 – STEREO0x3 – JOINT_STEREO |
SBC block length | 1 | 0x4, 0x8, 0xC, 0x10 | SBC block length. (4, 8, 12, 16) |
SBC number of subbands | 1 | 0x4, 0x8 | Number of SBC subbands. (4, 8) |
SBC allocation method | 1 | 0x0 - 0x1 | SBC allocation method (SNR, Loudness)0 – Loudness1 – SNR |
SBC bit pool low boundary | 1 | 0x00 - 0x39 | The lower boundary of the negotiated bit pool range. |
SBC recommended bit pull | 1 | 0x00 - 0x39 | The host can recommend a specific bit pool value from the bit pool rate. The recommended bit pool value is also used as the high boundary in dynamic bit pool. |
SBC dynamic bit pull enable | 1 | 0x0 – 0x1 | Determines whether a dynamic bit pool mechanism should be used for performance/quality adjustment0 – Disable1 – Enable |
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 |