diff options
author | Li Wang <li.wang@windriver.com> | 2013-11-29 18:56:59 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-30 22:26:28 +0000 |
commit | 44c691187769781307ffff69ebf422548cb9633d (patch) | |
tree | 0c2707ebd7c0beb18f4e9a8e5a996789db950eed | |
parent | 813aafe53854a744facc3482d6a97bbe9c21dcfa (diff) | |
download | poky-44c691187769781307ffff69ebf422548cb9633d.tar.gz |
alsa-state: add status command
(From OE-Core rev: c8d687f409a19312b34e215e7caaa39199598ed0)
Signed-off-by: Li Wang <li.wang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | meta/recipes-bsp/alsa-state/alsa-state/alsa-state-init | 10 |
1 files changed, 10 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 index 9850791497..eee59cb321 100755 --- a/meta/recipes-bsp/alsa-state/alsa-state/alsa-state-init +++ b/meta/recipes-bsp/alsa-state/alsa-state/alsa-state-init | |||
@@ -6,6 +6,8 @@ | |||
6 | # Filename: alsa-state | 6 | # Filename: alsa-state |
7 | # Date: 20070308 (YMD) | 7 | # Date: 20070308 (YMD) |
8 | 8 | ||
9 | # source function library | ||
10 | . /etc/init.d/functions | ||
9 | 11 | ||
10 | asound_restore(){ | 12 | asound_restore(){ |
11 | echo "ALSA: Restoring mixer settings..." | 13 | echo "ALSA: Restoring mixer settings..." |
@@ -26,4 +28,12 @@ asound_store(){ | |||
26 | case "$1" in | 28 | case "$1" in |
27 | start) asound_restore ;; | 29 | start) asound_restore ;; |
28 | stop) asound_store ;; | 30 | stop) asound_store ;; |
31 | status) | ||
32 | status /usr/sbin/alsactl; | ||
33 | exit $? | ||
34 | ;; | ||
35 | *) | ||
36 | echo "Usage: /etc/init.d/alsa-state {start|stop|status}" | ||
37 | exit 1 | ||
38 | ;; | ||
29 | esac | 39 | esac |