pulseaudio/src
Sanchayan Maity 3447335da9 bluetooth: Support A2DP codec switching via messaging API
This uses the messaging API to initiate a codec switch.

While a particular codec might be applicable only for a particular
profile, for eg. aptX can only be applicable for A2DP sink or source
and not for let's say HSP, the codec switching logic has not been
tied to the logic for switching profiles.

Codec can be switched by running the following on the command line.

pacmd send-message /card/bluez_card.XX_XX_XX_XX_XX_XX/bluez switch-codec{"ldac_hq"}
pacmd send-message /card/bluez_card.XX_XX_XX_XX_XX_XX/bluez switch-codec {"ldac_mq"}
pacmd send-message /card/bluez_card.XX_XX_XX_XX_XX_XX/bluez switch-codec {"ldac_sq"}
pacmd send-message /card/bluez_card.XX_XX_XX_XX_XX_XX/bluez switch-codec {"aptx_hd"}
pacmd send-message /card/bluez_card.XX_XX_XX_XX_XX_XX/bluez switch-codec {"aptx"}
pacmd send-message /card/bluez_card.XX_XX_XX_XX_XX_XX/bluez switch-codec {"sbc"}

Codec name passed above is matched against pa_a2dp_codec->name. Note that
the match is case sensitive. XX_XX_XX_XX_XX_XX needs to be substituted with
the actual bluetooth device id.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/440>
2021-01-19 13:43:42 +05:30
..
daemon module-devd-detect: new module for soundcard hotplug on FreeBSD 2021-01-18 16:33:53 +00:00
modules bluetooth: Support A2DP codec switching via messaging API 2021-01-19 13:43:42 +05:30
pulse map-file: regenerate 2021-01-18 17:57:41 +00:00
pulsecore pulsecore: remove ancient __FreeBSD_version < 600000 code 2021-01-18 16:33:53 +00:00
tests atomic-test: unbreak on FreeBSD (cpuset_t) 2021-01-18 16:33:53 +00:00
utils padsp: fix build on FreeBSD (use same ioctl signature as glibc) 2021-01-18 16:33:53 +00:00
.gitignore gitignore: Ignore hashmap-test 2020-08-06 14:34:56 +03:00
depmod.py update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
Makefile.am buildsys: autotools: move map-file to src/pulse 2021-01-18 17:57:41 +00:00
meson.build build-sys: meson: add execinfo dependency for FreeBSD 2021-01-18 16:33:53 +00:00