bump bluez-alsa to master (brings Ofono support) 23/18723/5
authorThierry Bultel <thierry.bultel@iot.bzh>
Tue, 11 Dec 2018 14:57:41 +0000 (15:57 +0100)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 20 Dec 2018 22:06:10 +0000 (22:06 +0000)
This takes the mandatory commits to have HFP support over Ofono
(56fcc3 from 2018-12-04)
Also adds the needed options to the daemon in the service file
The license changed due to change of year and author list

It was bogus to have hcitop in PACKAGECONFIG.
Namely, this is not a feature in yocto, but only an optional
feature of bluez-alsa (that helps to perform bandwith measures)
However, Ofono is one.

This also adds hcitop and rfcomm tools in development images.
Those tools help to diagnose bt issues.

Change-Id: I426dbee5aa8911c9c64f4ec7399528d149dc651b
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
meta-agl-profile-core/recipes-connectivity/bluez-alsa/bluez-alsa_git.bb
meta-agl-profile-core/recipes-connectivity/bluez-alsa/files/bluez-alsa.service

index 6379ec3..6614d22 100644 (file)
@@ -3,10 +3,10 @@ HOMEPAGE = "https://github.com/Arkq/bluez-alsa"
 SECTION = "libs"
 
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=bb3e99e80c5d718213f35ae1def4c106"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=88dc1c98120259ae67b82222d7aff5c1"
 
 SRC_URI = "git://github.com/Arkq/bluez-alsa.git;protocol=https;branch=master"
-SRCREV = "9045edb436ea755f395a2e09e4525b5defad286a"
+SRCREV = "56fcc3215e9a7e0a4576c1bcc544ec9aad2d937f"
 
 SRC_URI += "file://bluez-alsa.service"
 
@@ -16,7 +16,7 @@ DEPENDS += "alsa-lib bluez5 systemd glib-2.0 sbc"
 
 PACKAGECONFIG[aac]  = "--enable-aac, --disable-aac, "
 PACKAGECONFIG[aptx] = "--enable-aptx,--disable-aptx,"
-PACKAGECONFIG[hcitop]   = "--enable-hcitop,  --disable-hcitop,  libbsd ncurses"
+PACKAGECONFIG[ofono] = "--enable-ofono, --disable-ofono,"
 
 inherit autotools pkgconfig
 inherit systemd
@@ -24,7 +24,12 @@ inherit systemd
 SYSTEMD_AUTO_ENABLE = "enable"
 SYSTEMD_SERVICE_${PN} = "bluez-alsa.service"
 
-PACKAGECONFIG += "hcitop"
+PACKAGECONFIG += "ofono"
+
+# enable debug tools in devel images
+PACKAGECONFIG[hcitop] = "--enable-hcitop, --disable-hcitop, libbsd ncurses"
+PACKAGECONFIG[rfcomm] = "--enable-rfcomm, --disable-rfcomm,"
+PACKAGECONFIG_append_agl-devel = " hcitop rfcomm"
 
 do_install_append () {
     install -d ${D}${base_libdir}/systemd/system
index 671815e..b59302e 100644 (file)
@@ -5,7 +5,7 @@ Requires=bluetooth.service
 
 [Service]
 Type=simple
-ExecStart=/usr/bin/bluealsa
+ExecStart=/usr/bin/bluealsa -p a2dp-sink -p hfp-ofono
 
 [Install]
 WantedBy=multi-user.target