X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meta-audio-4a-framework%2Frecipes-multimedia%2Fagl-service-audio-4a%2Fagl-service-audio-4a_git.bb;h=8aa50efa9250dd425d365919a3528b6abec1ea70;hb=a67dca365dcd18d38de2f3e8a610a251fdb72e44;hp=a0bb6d906fdb467186276449997723cfd2cdc2bd;hpb=21cf14bcfec3ddbec729ed2b856861d1f96fb478;p=AGL%2Fmeta-agl-devel.git diff --git a/meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/agl-service-audio-4a_git.bb b/meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/agl-service-audio-4a_git.bb index a0bb6d90..8aa50efa 100644 --- a/meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/agl-service-audio-4a_git.bb +++ b/meta-audio-4a-framework/recipes-multimedia/agl-service-audio-4a/agl-service-audio-4a_git.bb @@ -14,7 +14,7 @@ S = "${WORKDIR}/git" inherit cmake aglwgt pkgconfig -DEPENDS += "alsa-lib json-c systemd af-binder glib-2.0" +DEPENDS += "alsa-lib json-c systemd af-binder glib-2.0 lua" do_aglwgt_deploy_append() { cat <<'EOF' >${D}/${sysconfdir}/agl-postinsts/99_4A_service_patch.sh @@ -28,7 +28,14 @@ while ! ls $svcfile > /dev/null; do sleep 0.2 N=$(expr $N - 1) done -sed -i -e 's|/usr/bin/afb-daemon\>|& --ldpath=/usr/libexec/agl/afb-aaaa/lib:/usr/libexec/agl/4a-alsa-core/lib|' $svcfile +sed -i '/\[Unit\]/ a Before=pulseaudio.service' $svcfile; +sed -i '/\[Unit\]/ a ConditionPathExistsGlob=/dev/snd/control*' $svcfile; + +sed -i -e 's|/usr/bin/afb-daemon\>|& --ldpath=/usr/libexec/agl/4a-alsa-core/lib:/usr/libexec/agl/4a-hal/lib:/usr/libexec/agl/afb-aaaa/lib:/usr/libexec/agl/smixer/lib|' $svcfile + +# binder name matters: it must match "afbd-4a-*" => the config file (controller json file) that will be searched will be "policy-4a-*.json" +sed -i -e 's|--name afbd-agl-\(.*\)|--name afbd-4a-\1|' $svcfile + echo "-- TMP 4A INSTALL FIX END" EOF