bluetooth: Add currently active codec name to card/sink/source proplist
authorSanchayan Maity <sanchayan@asymptotic.io>
Thu, 31 Dec 2020 08:29:40 +0000 (13:59 +0530)
committerSanchayan Maity <sanchayan@asymptotic.io>
Tue, 19 Jan 2021 08:13:42 +0000 (13:43 +0530)
commit4ce996b74ae3fd64f81754d6967a060c514e774c
tree16ad947c5880a31095c6ebcc4fbe93c092cae2fd
parent2fea838e5022492f4ebb3b7fcac7a8fc07e5cf3c
bluetooth: Add currently active codec name to card/sink/source proplist

This exposes the currently active codec on the source or sink via the
proplist and can be seen in output of pacmd list-sinks/list-sources.
Also set it on the card. In case of a bi-directional codec, the codec
for the sink and source could be different. For example, for aptX-LL,
the codec name on card, sink and source would be aptx-ll, aptx and sbc
respectively.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/440>
src/modules/bluetooth/module-bluez5-device.c
src/pulse/proplist.h