From e2e6f6fe07049f33cb6348780fa975162752e421 Mon Sep 17 00:00:00 2001 From: Adrian Dudau Date: Thu, 12 Dec 2013 13:38:32 +0100 Subject: initial commit of Enea Linux 3.1 Migrated from the internal git server on the dora-enea branch Signed-off-by: Adrian Dudau --- .../alsa-state/alsa-state/alsa-state-init | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 meta/recipes-bsp/alsa-state/alsa-state/alsa-state-init (limited to 'meta/recipes-bsp/alsa-state/alsa-state/alsa-state-init') diff --git a/meta/recipes-bsp/alsa-state/alsa-state/alsa-state-init b/meta/recipes-bsp/alsa-state/alsa-state/alsa-state-init new file mode 100755 index 0000000000..9850791497 --- /dev/null +++ b/meta/recipes-bsp/alsa-state/alsa-state/alsa-state-init @@ -0,0 +1,29 @@ +#! /bin/sh +# +# Copyright Matthias Hentges (c) 2007 +# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license) +# +# Filename: alsa-state +# Date: 20070308 (YMD) + + +asound_restore(){ + echo "ALSA: Restoring mixer settings..." + if test -x /usr/sbin/alsactl -a -e #STATEDIR#/asound.state + then + /usr/sbin/alsactl -f #STATEDIR#/asound.state restore & + fi +} + +asound_store(){ + echo "ALSA: Storing mixer settings..." + if test -x /usr/sbin/alsactl + then + /usr/sbin/alsactl -f #STATEDIR#/asound.state store + fi +} + +case "$1" in +start) asound_restore ;; +stop) asound_store ;; +esac -- cgit v1.2.3-54-g00ecf