diff options
Diffstat (limited to 'meta-n450/recipes-bsp')
-rw-r--r-- | meta-n450/recipes-bsp/audiofix/audiofix.bb | 17 | ||||
-rw-r--r-- | meta-n450/recipes-bsp/audiofix/files/n450_audiofix | 13 | ||||
-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 |
4 files changed, 38 insertions, 30 deletions
diff --git a/meta-n450/recipes-bsp/audiofix/audiofix.bb b/meta-n450/recipes-bsp/audiofix/audiofix.bb deleted file mode 100644 index 3b1d2723..00000000 --- a/meta-n450/recipes-bsp/audiofix/audiofix.bb +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | SUMMARY = "Provide a basic init script to enable audio" | ||
2 | DESCRIPTION = "This package provides an init script which enables the audio on startup via the amixer command. It address a problem with the development board that has the audio muted on power on." | ||
3 | SECTION = "base" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://${POKYBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58" | ||
6 | |||
7 | PR = "r2" | ||
8 | RDEPENDS = "alsa-utils-amixer" | ||
9 | |||
10 | SRC_URI = "file://n450_audiofix" | ||
11 | |||
12 | do_install () { | ||
13 | install -d ${D}${sysconfdir}/init.d | ||
14 | install -d ${D}${sysconfdir}/rc5.d | ||
15 | install -m 0755 ${WORKDIR}/n450_audiofix ${D}${sysconfdir}/init.d | ||
16 | ln -sf ${D}${sysconfdir}/init.d/n450_audiofix ${D}/${sysconfdir}/rc5.d/S91n450_audiofix | ||
17 | } | ||
diff --git a/meta-n450/recipes-bsp/audiofix/files/n450_audiofix b/meta-n450/recipes-bsp/audiofix/files/n450_audiofix deleted file mode 100644 index 9ec04482..00000000 --- a/meta-n450/recipes-bsp/audiofix/files/n450_audiofix +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
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 "No amixer, so unable to reset Front channel ON" | ||
10 | fi | ||
11 | fi | ||
12 | |||
13 | |||
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 | ||