diff options
Diffstat (limited to 'meta-n450/recipes-bsp/n450-audio')
-rw-r--r-- | meta-n450/recipes-bsp/n450-audio/n450-audio.bb | 23 | ||||
-rw-r--r-- | meta-n450/recipes-bsp/n450-audio/n450-audio/n450-audio | 15 |
2 files changed, 38 insertions, 0 deletions
diff --git a/meta-n450/recipes-bsp/n450-audio/n450-audio.bb b/meta-n450/recipes-bsp/n450-audio/n450-audio.bb new file mode 100644 index 00000000..20e3a9ad --- /dev/null +++ b/meta-n450/recipes-bsp/n450-audio/n450-audio.bb @@ -0,0 +1,23 @@ +SUMMARY = "Provide a basic init script to enable audio" +DESCRIPTION = "Set the volume and unmute the Front mixer setting during boot." +SECTION = "base" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${POKYBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" + +PR = "r3" + +inherit update-rc.d + +RDEPENDS = "alsa-utils-amixer" + +SRC_URI = "file://n450-audio" + +INITSCRIPT_NAME = "n450-audio" +INITSCRIPT_PARAMS = "defaults 90" + +do_install() { + install -d ${D}${sysconfdir} \ + ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/n450-audio ${D}${sysconfdir}/init.d +} + diff --git a/meta-n450/recipes-bsp/n450-audio/n450-audio/n450-audio b/meta-n450/recipes-bsp/n450-audio/n450-audio/n450-audio new file mode 100644 index 00000000..ad1b0bd4 --- /dev/null +++ b/meta-n450/recipes-bsp/n450-audio/n450-audio/n450-audio @@ -0,0 +1,15 @@ +#!/bin/sh + +AMIXER=`which amixer` + +if [ ! -e "$AMIXER" ]; then + if [ -e /usr/bin/amixer ]; then + AMIXER=/usr/bin/amixer + else + echo "amixer not found, unable to set default audio settings." + exit 1 + fi +fi + +# Enable the "Front" simple controls (black phones jack) +$AMIXER sset Front 30 on |