summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/alsa-state/alsa-state
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/alsa-state/alsa-state')
-rwxr-xr-xmeta/recipes-bsp/alsa-state/alsa-state/alsa-state-init29
-rw-r--r--meta/recipes-bsp/alsa-state/alsa-state/asound.conf1
-rw-r--r--meta/recipes-bsp/alsa-state/alsa-state/asound.state1
3 files changed, 31 insertions, 0 deletions
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 @@
1#! /bin/sh
2#
3# Copyright Matthias Hentges <devel@hentges.net> (c) 2007
4# License: GPL (see http://www.gnu.org/licenses/gpl.txt for a copy of the license)
5#
6# Filename: alsa-state
7# Date: 20070308 (YMD)
8
9
10asound_restore(){
11 echo "ALSA: Restoring mixer settings..."
12 if test -x /usr/sbin/alsactl -a -e #STATEDIR#/asound.state
13 then
14 /usr/sbin/alsactl -f #STATEDIR#/asound.state restore &
15 fi
16}
17
18asound_store(){
19 echo "ALSA: Storing mixer settings..."
20 if test -x /usr/sbin/alsactl
21 then
22 /usr/sbin/alsactl -f #STATEDIR#/asound.state store
23 fi
24}
25
26case "$1" in
27start) asound_restore ;;
28stop) asound_store ;;
29esac
diff --git a/meta/recipes-bsp/alsa-state/alsa-state/asound.conf b/meta/recipes-bsp/alsa-state/alsa-state/asound.conf
new file mode 100644
index 0000000000..03653cfb2d
--- /dev/null
+++ b/meta/recipes-bsp/alsa-state/alsa-state/asound.conf
@@ -0,0 +1 @@
# Global alsa-lib configuration
diff --git a/meta/recipes-bsp/alsa-state/alsa-state/asound.state b/meta/recipes-bsp/alsa-state/alsa-state/asound.state
new file mode 100644
index 0000000000..ddd1cce85d
--- /dev/null
+++ b/meta/recipes-bsp/alsa-state/alsa-state/asound.state
@@ -0,0 +1 @@
# Dummy file, do not delete