diff options
author | Darren Hart <dvhart@linux.intel.com> | 2011-03-11 15:53:11 -0800 |
---|---|---|
committer | Darren Hart <dvhart@linux.intel.com> | 2011-03-12 00:46:41 -0800 |
commit | d1ba49be3052aada2ca8fe8f12787b4fce8a6383 (patch) | |
tree | 1691ddc0be4a8df8352b59258856978af1378ab6 /meta-n450/recipes-bsp/n450-audio | |
parent | 4bbfc4f08b0e906ba4182f0ad2baad77a5938db9 (diff) | |
download | meta-intel-d1ba49be3052aada2ca8fe8f12787b4fce8a6383.tar.gz |
n450: revamp audio mixer init script
Fixes [YOCTO #798]
n450-audiofix suffered from various problems, including not getting installed.
This patch adds it via MACHINE_EXTRA_RRECOMMENDS and cleans up the various
bugs in the implementation. The structure has been renamed and the comments
updated for consistency. This should be considered a stop-gap measure, as
something along the lines of oe's alsa-state is a far better solution.
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
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 @@ | |||
1 | SUMMARY = "Provide a basic init script to enable audio" | ||
2 | DESCRIPTION = "Set the volume and unmute the Front mixer setting during boot." | ||
3 | SECTION = "base" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://${POKYBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" | ||
6 | |||
7 | PR = "r3" | ||
8 | |||
9 | inherit update-rc.d | ||
10 | |||
11 | RDEPENDS = "alsa-utils-amixer" | ||
12 | |||
13 | SRC_URI = "file://n450-audio" | ||
14 | |||
15 | INITSCRIPT_NAME = "n450-audio" | ||
16 | INITSCRIPT_PARAMS = "defaults 90" | ||
17 | |||
18 | do_install() { | ||
19 | install -d ${D}${sysconfdir} \ | ||
20 | ${D}${sysconfdir}/init.d | ||
21 | install -m 0755 ${WORKDIR}/n450-audio ${D}${sysconfdir}/init.d | ||
22 | } | ||
23 | |||
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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | AMIXER=`which amixer` | ||
4 | |||
5 | if [ ! -e "$AMIXER" ]; then | ||
6 | if [ -e /usr/bin/amixer ]; then | ||
7 | AMIXER=/usr/bin/amixer | ||
8 | else | ||
9 | echo "amixer not found, unable to set default audio settings." | ||
10 | exit 1 | ||
11 | fi | ||
12 | fi | ||
13 | |||
14 | # Enable the "Front" simple controls (black phones jack) | ||
15 | $AMIXER sset Front 30 on | ||