From 158f88d76685da4e71a21f3788d519dd4b2bb912 Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Mon, 3 Jan 2011 15:33:52 -0800 Subject: meta-n450: Add new BSP for BlackSand / n450 Signed-off-by: Saul Wold --- meta-n450/recipes-bsp/audiofix/audiofix.bb | 17 +++++++++++++++++ meta-n450/recipes-bsp/audiofix/files/n450_audiofix | 13 +++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 meta-n450/recipes-bsp/audiofix/audiofix.bb create mode 100644 meta-n450/recipes-bsp/audiofix/files/n450_audiofix (limited to 'meta-n450/recipes-bsp') diff --git a/meta-n450/recipes-bsp/audiofix/audiofix.bb b/meta-n450/recipes-bsp/audiofix/audiofix.bb new file mode 100644 index 00000000..846d59ee --- /dev/null +++ b/meta-n450/recipes-bsp/audiofix/audiofix.bb @@ -0,0 +1,17 @@ +SUMMARY = "Provide a basic init script to enable audio" +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." +SECTION = "base" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${POKYBASE}/LICENSE;md5=md5=3f40d7994397109285ec7b81fdeb3b58" + +PR = "r2" +RDEPENDS = "amixer" + +SRC_URI = "file://n450_audiofix" + +do_install () { + install -d ${D}${sysconfdir}/init.d + install -d ${D}${sysconfdir}/rc5.d + install -m 0755 ${WORKDIR}/n450_audiofix ${D}${sysconfdir}/init.d + ln -sf ../init.d/n450_audiofix ${D}/sysconfdir/rc5.d/S91n450_audiofix +} diff --git a/meta-n450/recipes-bsp/audiofix/files/n450_audiofix b/meta-n450/recipes-bsp/audiofix/files/n450_audiofix new file mode 100644 index 00000000..9ec04482 --- /dev/null +++ b/meta-n450/recipes-bsp/audiofix/files/n450_audiofix @@ -0,0 +1,13 @@ +#!/bin/sh + +AMIXER=`which amixer` + +if [ ! -e $AMIXER ]; then + if [ -e /usr/bin/amixer ]; then + AMIXER=/usr/bin/amixer + else + echo "No amixer, so unable to reset Front channel ON" + fi +fi + + -- cgit v1.2.3-54-g00ecf