mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
bluez5: add codec check_caps + check vendor codec id for ldac & aptx
This commit is contained in:
parent
ce335b6d88
commit
0908588d0c
4 changed files with 28 additions and 2 deletions
|
|
@ -86,6 +86,10 @@ static int codec_select_config(const struct a2dp_codec *codec, uint32_t flags,
|
|||
|
||||
memcpy(&conf, caps, sizeof(conf));
|
||||
|
||||
if (codec->vendor.vendor_id != conf.info.vendor_id ||
|
||||
codec->vendor.codec_id != conf.info.codec_id)
|
||||
return -ENOTSUP;
|
||||
|
||||
if (conf.frequency & APTX_SAMPLING_FREQ_48000)
|
||||
conf.frequency = APTX_SAMPLING_FREQ_48000;
|
||||
else if (conf.frequency & APTX_SAMPLING_FREQ_44100)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue