bluez-alsa: removed the PCM hack, and build a shared lib 25/18725/5
authorThierry Bultel <thierry.bultel@iot.bzh>
Tue, 11 Dec 2018 15:16:59 +0000 (16:16 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 20 Dec 2018 22:06:17 +0000 (22:06 +0000)
commit07e68c5627c455c063da82bc2060f212a9d22246
tree525f2324768fa9d155ae9fba1f7583ae79ccd19a
parent219873e4684554c8fa113f8b97d84032882206a6
bluez-alsa: removed the PCM hack, and build a shared lib

This removes the deprecated PCM proxy hack, and brings mandatory
features for the softmixer.
This change applies on top of the latest bluez-alsa master of 2018-12-04
and brings 3 patches:
1) builds a shared library and links bluez-alsa and ioplug controls & pcm
to it.
2) func log by default
3) increase the number of max connections from clients (pcm & ctrls)
-----
Upstream status for the patches:
1) pending. Based on a submitted PR that is not clean enough and
that the maintainer does not want to take before at least 6 months
https://github.com/Arkq/bluez-alsa/pull/95

2) pending. Was submitted as part of the Ofono support in bluez-alsa,
but was not retained. See the original PR for Ofono for that.

3) pending. The maintainer is OK with this but wants to refactor the
client-server protocol in the coming months. In a private mail of
12/06/2018:

"Yes, you can increase this hardcoded limit as a temporary workaround.
I've put in there (and made it rather low) as a reminder, that clients
are stored in the list, which might not be optimal for larger number of
connected clients. In the future bluealsa will support audio mixing, so
connecting many clients to a single transport will be a common case. So,
I've thought about incorporating more efficient structure for storing
(in particular searching) connected client - something with log(n)
search complexity. Then, it might be worth to implement this container
to be dynamic with an upper capacity limit (which might be high, like
200-300 clients)."

Change-Id: Ia771613a7a83cc9ed6108399cdaacdeda603d39b
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
meta-audio-4a-framework/recipes-connectivity/bluez-alsa/bluez-alsa/0001-Added-a-connection-proxy-plugin.patch [deleted file]
meta-audio-4a-framework/recipes-connectivity/bluez-alsa/bluez-alsa/0001-build-and-link-with-a-shared-library.patch [new file with mode: 0644]
meta-audio-4a-framework/recipes-connectivity/bluez-alsa/bluez-alsa/0002-log-add-calling-function-name.patch [new file with mode: 0644]
meta-audio-4a-framework/recipes-connectivity/bluez-alsa/bluez-alsa/0002-proxy-plugin-close-transport-when-null-device-is-set.patch [deleted file]
meta-audio-4a-framework/recipes-connectivity/bluez-alsa/bluez-alsa/0003-increased-the-number-of-connexions-to-16.patch [new file with mode: 0644]
meta-audio-4a-framework/recipes-connectivity/bluez-alsa/bluez-alsa_git.bbappend