meta-digi-arm: Fix imx-audio

The append files were not being chosen and the ccimx51js file needed
adjustment.

Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
This commit is contained in:
Alex Gonzalez 2013-03-26 14:00:55 +01:00
parent ef8b6f5262
commit 3b4d289ed5
3 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,41 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: imx mixer setup
# Required-Start: $syslog
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Initialize the imx audio mixer
# Description: Unmute FRONT and set volume to ~70%.
### END INIT INFO
# Based on /etc/init.d/skeleton
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Audio mixer settings"
NAME=imx-audio
AMIXER=`which amixer`
SCRIPTNAME=/etc/init.d/$NAME
# Exit if amixer is not installed
[ -x "$AMIXER" ] || exit 0
do_start() {
# Enable the Headset (Audio Out)
$AMIXER sset "Headphone" 120 > /dev/null
$AMIXER sset "Capture" 60 > /dev/null
}
case "$1" in
start)
echo "$NAME: setting default mixer settings."
do_start
;;
stop)
;;
*)
echo "Usage: $SCRIPTNAME {start|stop}" >&2
exit 3
;;
esac
exit 0

View File

@ -0,0 +1,10 @@
# Copyright (C) 2013 Digi International.
PRINC := "${@int(PRINC) + 1}"
PR_append = "+${DISTRO}"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}/${MACHINE}/:"
SRC_URI_append_ccimx51js = " file://imx-audio"
SRC_URI_append_ccimx53js = " file://imx-audio"