diff options
Diffstat (limited to 'meta-audio-4a-framework/recipes-multimedia')
8 files changed, 27 insertions, 663 deletions
diff --git a/meta-audio-4a-framework/recipes-multimedia/4a-alsa-core/4a-alsa-core_git.bb b/meta-audio-4a-framework/recipes-multimedia/4a-alsa-core/4a-alsa-core_git.bb index 55eb6c11..b407bd94 100644 --- a/meta-audio-4a-framework/recipes-multimedia/4a-alsa-core/4a-alsa-core_git.bb +++ b/meta-audio-4a-framework/recipes-multimedia/4a-alsa-core/4a-alsa-core_git.bb @@ -7,7 +7,7 @@ LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" SRC_URI = "gitsm://gerrit.automotivelinux.org/gerrit/src/4a-alsa-core;protocol=https;branch=${AGL_BRANCH}" -SRCREV = "${AGL_APP_REVISION}" +SRCREV = "ef3575fd397498a57c09c0caa3ffde8ec3040aab" PV = "0.1+git${SRCPV}" S = "${WORKDIR}/git" diff --git a/meta-audio-4a-framework/recipes-multimedia/4a-hal-config/4a-hal-config.bb b/meta-audio-4a-framework/recipes-multimedia/4a-hal-config/4a-hal-config.bb index d012cb9a..fc648a1d 100644 --- a/meta-audio-4a-framework/recipes-multimedia/4a-hal-config/4a-hal-config.bb +++ b/meta-audio-4a-framework/recipes-multimedia/4a-hal-config/4a-hal-config.bb @@ -7,28 +7,17 @@ LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" SRC_URI = "file://asound.conf.template \ - file://ahl-config.json.template \ " PV = "0.1" RPROVIDES_${PN} += "VIRTUAL-RUNTIME_alsa-state" -PACKAGE_ARCH = "${MACHINE_ARCH}" - -AUDIO_DEV_NAME ?= "Speakers" -AUDIO_DEV_NAME_ID ?= "0" - -AUDIO_DEV_NAME_m3ulcb = "M3-Speakers" -AUDIO_DEV_NAME_ID_m3ulcb = "rsnddai0ak4613h" - inherit afb-system do_install () { install -d ${D}/${sysconfdir} install -m 0755 ${WORKDIR}/asound.conf.template ${D}/${sysconfdir}/asound.conf - sed -i "s|@AUDIO_DEV_NAME@|${AUDIO_DEV_NAME}|g" ${D}/${sysconfdir}/asound.conf - sed -i "s|@AUDIO_DEV_NAME_ID@|${AUDIO_DEV_NAME_ID}|g" ${D}/${sysconfdir}/asound.conf sed -i "s|@INSTALL_PREFIX@|${INSTALL_PREFIX}|g" ${D}/${sysconfdir}/asound.conf } diff --git a/meta-audio-4a-framework/recipes-multimedia/4a-hal-config/files/ahl-config.json.template b/meta-audio-4a-framework/recipes-multimedia/4a-hal-config/files/ahl-config.json.template deleted file mode 100644 index f2244b83..00000000 --- a/meta-audio-4a-framework/recipes-multimedia/4a-hal-config/files/ahl-config.json.template +++ /dev/null @@ -1,117 +0,0 @@ -{ - "version": "0.2.0", - "policy_module": "AudioPolicy_v1", - "description": "High-level binding configuration file", - "note": "Devices and routings are always listed in order of priority (for device selection rules)", - "hal_list": ["@AUDIO_DEV_NAME_ID@"], - "audio_roles": [ - { - "name": "Emergency", - "description": "to complete", - "priority": 99, - "output": [ - "alsa.plug:Emergency_Main" - ], - "interupt_behavior": "pause" - }, - { - "name": "Warning", - "description": "to complete", - "priority": 95, - "output": [ - "alsa.plug:Warning_Main" - ], - "interupt_behavior": "pause" - }, - { - "name": "CustomHigh", - "description": "to complete", - "priority": 79, - "output": [ - "alsa.plug:CustomHigh_Main" - ], - "interupt_behavior": "continue" - }, - { - "name": "Phone", - "description": "to complete", - "priority": 72, - "output": [ - "alsa.plug:Phone_Main" - ], - "interupt_behavior": "continue" - }, - { - "name": "Navigation", - "description": "Important user information where user action is expected (e.g. navigation instruction)", - "priority": 71, - "output": [ - "alsa.plug:Navigation_Main" - ], - "interupt_behavior": "pause" - }, - { - "name": "CustomMedium", - "description": "to complete", - "priority": 59, - "output": [ - "alsa.plug:CustomMedium_Main" - ], - "interupt_behavior": "continue" - }, - { - "name": "Video", - "description": "Video content", - "priority": 57, - "output": [ - "alsa.plug:Video_Main" - ], - "interupt_behavior": "pause" - }, - { - "name": "Streaming", - "description": "Streaming content", - "priority": 55, - "output": [ - "alsa.plug:Streaming_Main" - ], - "interupt_behavior": "pause" - }, - { - "name": "Multimedia", - "description": "Multimedia content", - "priority": 53, - "output": [ - "alsa.plug:Multimedia_Main" - ], - "interupt_behavior": "pause" - }, - { - "name": "Radio", - "description": "Radio content", - "priority": 51, - "output": [ - "alsa.plug:Radio_Main" - ], - "interupt_behavior": "continue" - }, - { - "name": "CustomLow", - "description": "to complete", - "priority": 19, - "output": [ - "alsa.plug:CustomLow_Main" - ], - "interupt_behavior": "continue" - }, - { - "name": "Fallback", - "description": "to complete", - "priority": 0, - "output": [ - "alsa.plug:Fallback_Main" - ], - "interupt_behavior": "continue" - } - ] -} diff --git a/meta-audio-4a-framework/recipes-multimedia/4a-hal-config/files/asound.conf.template b/meta-audio-4a-framework/recipes-multimedia/4a-hal-config/files/asound.conf.template index f428ba74..5a265db0 100644 --- a/meta-audio-4a-framework/recipes-multimedia/4a-hal-config/files/asound.conf.template +++ b/meta-audio-4a-framework/recipes-multimedia/4a-hal-config/files/asound.conf.template @@ -1,531 +1,3 @@ -#AGL Audio High Level ALSA configuration -#This define 2 sounds card with 8 audio roles each -#The alsa soft volume control name must match with the HAL Control Name - -# ---------------------------------------------------- # -# ---------------------------------------------------- -pcm.@AUDIO_DEV_NAME@ { - type dmix - slave {pcm "hw:@AUDIO_DEV_NAME_ID@"} - ipc_key 1001 # ipc_key should be unique to each dmix -} - -# ----------------------------------------------------- -# Register ControllerHookPlugin (ToiBeFix fullpath) -# ----------------------------------------------------- -pcm_hook_type.CtlHookPlugin { - install "AlsaInstallHook" - lib "@INSTALL_PREFIX@/lib/policy_alsa_hook.so" -} - -# ---------------------------------------------------- +#4A pcm configuration is now dynamic, please check hal configuration files in @INSTALL_PREFIX@/4a-hal/etc # -# ---------------------------------------------------- -pcm.Emergency_Main { - type softvol - slave.pcm "@AUDIO_DEV_NAME@" - control{ - name "Emergency_Volume" - } -} - -pcm.Warning_Main { - type softvol - slave.pcm "@AUDIO_DEV_NAME@" - control{ - name "Warning_Volume" - } -} - -pcm.CustomHigh_Main { - type softvol - slave.pcm "@AUDIO_DEV_NAME@" - control{ - name "CustomHigh_Volume" - } -} - -pcm.Phone_Main { - type softvol - slave.pcm "@AUDIO_DEV_NAME@" - control{ - name "Phone_Volume" - } -} - -pcm.Navigation_Main { - type softvol - slave.pcm "@AUDIO_DEV_NAME@" - control{ - name "Navigation_Volume" - } -} - -pcm.CustomMedium_Main { - type softvol - slave.pcm "@AUDIO_DEV_NAME@" - control{ - name "CustomMedium_Volume" - } -} - -pcm.Video_Main { - type softvol - slave.pcm "@AUDIO_DEV_NAME@" - control{ - name "Video_Volume" - } -} - -pcm.Streaming_Main { - type softvol - slave.pcm "@AUDIO_DEV_NAME@" - control{ - name "Streaming_Volume" - } -} - -pcm.Multimedia_Main { - type softvol - slave.pcm "@AUDIO_DEV_NAME@" - control{ - name "Multimedia_Volume" - } -} - -pcm.Radio_Main { - type softvol - slave.pcm "@AUDIO_DEV_NAME@" - control{ - name "Radio_Volume" - } -} - -pcm.CustomLow_Main { - type softvol - slave.pcm "@AUDIO_DEV_NAME@" - control{ - name "CustomLow_Volume" - } -} - -pcm.Fallback_Main { - type softvol - slave.pcm "@AUDIO_DEV_NAME@" - control{ - name "Fallback_Volume" - } -} - -# ---------------------------------------------------- -# Define one hooked PCM channel per Audio Roles -# ---------------------------------------------------- -pcm.Emergency { - type hooks - slave {pcm "Emergency_Main"} - hooks.0 { - comment "Defined used hook sharelib and provide arguments/config to install func" - type "CtlHookPlugin" - hook_args { - - # print few log messages (default false) - verbose true - - # uri to audio-4a policy engine - uri="unix:/run/user/0/apis/ws/ahl-4a" - - # timeout in ms (default 500) - timeout 5000 - - # force API synchronous mode - synchronous true - - # api subcall to request a role - request { - stream_open "{'audio_role': 'Emergency', 'endpoint_type':'sink'}" - set_stream_state "{'state':'running'}" - } - - # api subcall to request a role - release { - stream_close "{}" - } - } - } -} - -pcm.Warning { - type hooks - slave {pcm "Warning_Main"} - hooks.0 { - comment "Defined used hook sharelib and provide arguments/config to install func" - type "CtlHookPlugin" - hook_args { - - # print few log messages (default false) - verbose true - - # uri to audio-4a policy engine - uri="unix:/run/user/0/apis/ws/ahl-4a" - - # timeout in ms (default 500) - timeout 5000 - - # force API synchronous mode - synchronous true - - # api subcall to request a role - request { - stream_open "{'audio_role': 'Warning', 'endpoint_type':'sink'}" - set_stream_state "{'state':'running'}" - } - - # api subcall to request a role - release { - stream_close "{}" - } - } - } -} - -pcm.CustomHigh { - type hooks - slave {pcm "CustomHigh_Main"} - hooks.0 { - comment "Defined used hook sharelib and provide arguments/config to install func" - type "CtlHookPlugin" - hook_args { - - # print few log messages (default false) - verbose true - - # uri to audio-4a policy engine - uri="unix:/run/user/0/apis/ws/ahl-4a" - - # timeout in ms (default 500) - timeout 5000 - - # force API synchronous mode - synchronous true - - # api subcall to request a role - request { - stream_open "{'audio_role': 'CustomHigh', 'endpoint_type':'sink'}" - set_stream_state "{'state':'running'}" - } - - # api subcall to request a role - release { - stream_close "{}" - } - } - } -} - -pcm.Phone { - type hooks - slave {pcm "Phone_Main"} - hooks.0 { - comment "Defined used hook sharelib and provide arguments/config to install func" - type "CtlHookPlugin" - hook_args { - - # print few log messages (default false) - verbose true - - # uri to audio-4a policy engine - uri="unix:/run/user/0/apis/ws/ahl-4a" - - # timeout in ms (default 500) - timeout 5000 - - # force API synchronous mode - synchronous true - - # api subcall to request a role - request { - stream_open "{'audio_role': 'Phone', 'endpoint_type':'sink'}" - set_stream_state "{'state':'running'}" - } - - # api subcall to request a role - release { - stream_close "{}" - } - } - } -} - -pcm.Navigation { - type hooks - slave {pcm "Navigation_Main"} - hooks.0 { - comment "Defined used hook sharelib and provide arguments/config to install func" - type "CtlHookPlugin" - hook_args { - - # print few log messages (default false) - verbose true - - # uri to audio-4a policy engine - uri="unix:/run/user/0/apis/ws/ahl-4a" - - # timeout in ms (default 500) - timeout 5000 - - # force API synchronous mode - synchronous true - - # api subcall to request a role - request { - stream_open "{'audio_role': 'Navigation', 'endpoint_type':'sink'}" - set_stream_state "{'state':'running'}" - } - - # api subcall to request a role - release { - stream_close "{}" - } - } - } -} - -pcm.CustomMedium { - type hooks - slave {pcm "CustomMedium_Main"} - hooks.0 { - comment "Defined used hook sharelib and provide arguments/config to install func" - type "CtlHookPlugin" - hook_args { - - # print few log messages (default false) - verbose true - - # uri to audio-4a policy engine - uri="unix:/run/user/0/apis/ws/ahl-4a" - - # timeout in ms (default 500) - timeout 5000 - - # force API synchronous mode - synchronous true - - # api subcall to request a role - request { - stream_open "{'audio_role': 'CustomMedium', 'endpoint_type':'sink'}" - set_stream_state "{'state':'running'}" - } - - # api subcall to request a role - release { - stream_close "{}" - } - } - } -} - -pcm.Video { - type hooks - slave {pcm "Video_Main"} - hooks.0 { - comment "Defined used hook sharelib and provide arguments/config to install func" - type "CtlHookPlugin" - hook_args { - - # print few log messages (default false) - verbose true - - # uri to audio-4a policy engine - uri="unix:/run/user/0/apis/ws/ahl-4a" - - # timeout in ms (default 500) - timeout 5000 - - # force API synchronous mode - synchronous true - - # api subcall to request a role - request { - stream_open "{'audio_role': 'Video', 'endpoint_type':'sink'}" - set_stream_state "{'state':'running'}" - } - - # api subcall to request a role - release { - stream_close "{}" - } - } - } -} - -pcm.Streaming { - type hooks - slave {pcm "Streaming_Main"} - hooks.0 { - comment "Defined used hook sharelib and provide arguments/config to install func" - type "CtlHookPlugin" - hook_args { - - # print few log messages (default false) - verbose true - - # uri to audio-4a policy engine - uri="unix:/run/user/0/apis/ws/ahl-4a" - - # timeout in ms (default 500) - timeout 5000 - - - # force API synchronous mode - synchronous true - - # api subcall to request a role - request { - stream_open "{'audio_role': 'Streaming', 'endpoint_type':'sink'}" - set_stream_state "{'state':'running'}" - } - - # api subcall to request a role - release { - stream_close "{}" - } - } - } -} - -pcm.Multimedia { - type hooks - slave {pcm "Multimedia_Main"} - hooks.0 { - comment "Defined used hook sharelib and provide arguments/config to install func" - type "CtlHookPlugin" - hook_args { - - # print few log messages (default false) - verbose true - - # uri to audio-4a policy engine - uri="unix:/run/user/0/apis/ws/ahl-4a" - - # timeout in ms (default 500) - timeout 5000 - - # force API synchronous mode - synchronous true - - # api subcall to request a role - request { - stream_open "{'audio_role': 'Multimedia', 'endpoint_type':'sink'}" - set_stream_state "{'state':'running'}" - } - - # api subcall to request a role - release { - stream_close "{}" - } - } - } -} - -pcm.Radio { - type hooks - slave {pcm "Radio_Main"} - hooks.0 { - comment "Defined used hook sharelib and provide arguments/config to install func" - type "CtlHookPlugin" - hook_args { - - # print few log messages (default false) - verbose true - - # uri to audio-4a policy engine - uri="unix:/run/user/0/apis/ws/ahl-4a" - - # timeout in ms (default 500) - timeout 5000 - - # force API synchronous mode - synchronous true - - # api subcall to request a role - request { - stream_open "{'audio_role': 'Radio', 'endpoint_type':'sink'}" - set_stream_state "{'state':'running'}" - } - - # api subcall to request a role - release { - stream_close "{}" - } - } - } -} - -pcm.CustomLow { - type hooks - slave {pcm "CustomLow_Main"} - hooks.0 { - comment "Defined used hook sharelib and provide arguments/config to install func" - type "CtlHookPlugin" - hook_args { - - # print few log messages (default false) - verbose true - - # uri to audio-4a policy engine - uri="unix:/run/user/0/apis/ws/ahl-4a" - - # timeout in ms (default 500) - timeout 5000 - - # force API synchronous mode - synchronous true - - # api subcall to request a role - request { - stream_open "{'audio_role': 'CustomLow', 'endpoint_type':'sink'}" - set_stream_state "{'state':'running'}" - } - - # api subcall to request a role - release { - stream_close "{}" - } - } - } -} - -pcm.Fallback { - type hooks - slave {pcm "Fallback_Main"} - hooks.0 { - comment "Defined used hook sharelib and provide arguments/config to install func" - type "CtlHookPlugin" - hook_args { - - # print few log messages (default false) - verbose true - - # uri to audio-4a policy engine - uri="unix:/run/user/0/apis/ws/ahl-4a" - - # timeout in ms (default 500) - timeout 5000 - - # force API synchronous mode - synchronous true - - # api subcall to request a role - request { - stream_open "{'audio_role': 'Fallback', 'endpoint_type':'sink'}" - set_stream_state "{'state':'running'}" - } - - # api subcall to request a role - release { - stream_close "{}" - } - } - } -} diff --git a/meta-audio-4a-framework/recipes-multimedia/4a-hal-generic/4a-hal-generic_git.bb b/meta-audio-4a-framework/recipes-multimedia/4a-hal-generic/4a-hal-generic_git.bb index 97dae65a..9d99ed51 100644 --- a/meta-audio-4a-framework/recipes-multimedia/4a-hal-generic/4a-hal-generic_git.bb +++ b/meta-audio-4a-framework/recipes-multimedia/4a-hal-generic/4a-hal-generic_git.bb @@ -7,7 +7,6 @@ LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" SRC_URI = "gitsm://github.com/iotbzh/4a-hal-generic;protocol=https;branch=${AGL_BRANCH}" -#SRCREV = "${AGL_APP_REVISION}" SRCREV = "08b6e7144a87f60b86c8988c33a44dbd61026a8f" DEPENDS += "lua" diff --git a/meta-audio-4a-framework/recipes-multimedia/4a-hal-unicens/4a-hal-unicens_git.bb b/meta-audio-4a-framework/recipes-multimedia/4a-hal-unicens/4a-hal-unicens_git.bb index e555f05a..84ee6049 100644 --- a/meta-audio-4a-framework/recipes-multimedia/4a-hal-unicens/4a-hal-unicens_git.bb +++ b/meta-audio-4a-framework/recipes-multimedia/4a-hal-unicens/4a-hal-unicens_git.bb @@ -7,7 +7,7 @@ LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" SRC_URI = "gitsm://gerrit.automotivelinux.org/gerrit/src/4a-hal-unicens;protocol=https;branch=${AGL_BRANCH}" -SRCREV = "${AGL_APP_REVISION}" +SRCREV = "6d4cbab774c0fa632ccdf4add35b87d0828ac765" PV = "0.1+git${SRCPV}" S = "${WORKDIR}/git" diff --git a/meta-audio-4a-framework/recipes-multimedia/4a-softmixer/4a-softmixer_git.bb b/meta-audio-4a-framework/recipes-multimedia/4a-softmixer/4a-softmixer_git.bb index 751d83b0..b1f412b2 100644 --- a/meta-audio-4a-framework/recipes-multimedia/4a-softmixer/4a-softmixer_git.bb +++ b/meta-audio-4a-framework/recipes-multimedia/4a-softmixer/4a-softmixer_git.bb @@ -7,8 +7,7 @@ LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" SRC_URI = "gitsm://github.com/iotbzh/4a-softmixer/;protocol=https;branch=${AGL_BRANCH}" -#SRCREV = "${AGL_APP_REVISION}" -SRCREV = "afc7d62d02c523f3d3adc29f713f5a4395ca3f58" +SRCREV = "320d8f978d846488d41d7f6b2c47c83225cafdb7" DEPENDS += "lua" @@ -17,7 +16,7 @@ S = "${WORKDIR}/git" inherit afb-system-cmake -#FIXME: +#FIXME : #FILES_${PN}-dev += "${INSTALL_PREFIX}/4a-softmixer/htdocs" #FILES_${PN} += "${INSTALL_PREFIX}/afb-aaaa" #FILES_${PN} += "${INSTALL_PREFIX}/lib" diff --git a/meta-audio-4a-framework/recipes-multimedia/4a-tools/4a-tools_git.bb b/meta-audio-4a-framework/recipes-multimedia/4a-tools/4a-tools_git.bb new file mode 100644 index 00000000..c122b7b8 --- /dev/null +++ b/meta-audio-4a-framework/recipes-multimedia/4a-tools/4a-tools_git.bb @@ -0,0 +1,22 @@ +SUMMARY = "4A - Tools" +DESCRIPTION = "Tools, utilities, scripts and data related to 4A" +HOMEPAGE = "https://github.com/iotbzh/4a-tools/" +SECTION = "apps" + +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" + +SRC_URI = "gitsm://github.com/iotbzh/4a-tools;protocol=https;branch=${AGL_BRANCH}" +SRCREV = "flounder_5.99.2" +#SRCREV = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + +PV = "0.1+git${SRCPV}" +S = "${WORKDIR}/git" + + +do_install() { + oe_runmake install DESTDIR=${D}${prefix} +} + +RDEPENDS_${PN} += "bash" +FILES_${PN} += "${datadir}/4a/media/*" |