package/bluez5_utils: fix media control profile

With bluez 5.66 (bumped in c6c79d6) the Media Control Profile (MCP), Basic
Audio Profile (BAP) and Volume Control Profile (VCP) where added.
All three are enabled by default.
MCP only works if AVRCP is enabled, as it requires player.c which is
otherwise not compiled.
Only enable all three new profiles when the audio plugin is selected.

Fixes:
 - http://autobuild.buildroot.net/results/d62/d6260a5acf766657f683d85fa1bdc27b7a43551e/

Signed-off-by: Daniel Lang <d.lang@abatec.at>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Lang Daniel 2023-03-16 13:53:04 +00:00 committed by Thomas Petazzoni
parent 9833247d49
commit f5b50cb14c

View File

@ -64,9 +64,19 @@ endif
# enable audio plugins (a2dp and avrcp)
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_PLUGINS_AUDIO),y)
BLUEZ5_UTILS_CONF_OPTS += --enable-a2dp --enable-avrcp
BLUEZ5_UTILS_CONF_OPTS += \
--enable-a2dp \
--enable-avrcp \
--enable-bap \
--enable-mcp \
--enable-vcp
else
BLUEZ5_UTILS_CONF_OPTS += --disable-a2dp --disable-avrcp
BLUEZ5_UTILS_CONF_OPTS += \
--disable-a2dp \
--disable-avrcp \
--disable-bap \
--disable-mcp \
--disable-vcp
endif
# enable health plugin