mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: bap: Support Mono Channel Allocation
The Bluetooth SIG Assigned Numbers Document has been updated and a value of 0 for the Channel Allocation is now allowed, with the meaning of "Mono".
This commit is contained in:
parent
eaa3d04bcc
commit
0b5f716526
2 changed files with 3 additions and 2 deletions
|
|
@ -74,6 +74,7 @@ static const struct {
|
|||
uint32_t bit;
|
||||
enum spa_audio_channel channel;
|
||||
} channel_bits[] = {
|
||||
{ BAP_CHANNEL_MONO, SPA_AUDIO_CHANNEL_MONO },
|
||||
{ BAP_CHANNEL_FL, SPA_AUDIO_CHANNEL_FL },
|
||||
{ BAP_CHANNEL_FR, SPA_AUDIO_CHANNEL_FR },
|
||||
{ BAP_CHANNEL_FC, SPA_AUDIO_CHANNEL_FC },
|
||||
|
|
@ -1170,7 +1171,7 @@ static int codec_get_bis_config(const struct media_codec *codec, uint8_t *caps,
|
|||
}
|
||||
}
|
||||
|
||||
if ((preset == NULL) || (channel_allocation == 0))
|
||||
if (preset == NULL)
|
||||
return -EINVAL;
|
||||
|
||||
SPA_FOR_EACH_ELEMENT_VAR(bap_bcast_qos_configs, c) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue