diff options
Diffstat (limited to 'audio-drivers/alsa-lib/init.d/alsa')
-rwxr-xr-x | audio-drivers/alsa-lib/init.d/alsa | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/audio-drivers/alsa-lib/init.d/alsa b/audio-drivers/alsa-lib/init.d/alsa index 71410d635d..7d2770ad0e 100755 --- a/audio-drivers/alsa-lib/init.d/alsa +++ b/audio-drivers/alsa-lib/init.d/alsa @@ -6,8 +6,6 @@ PROGRAM=/bin/false RUNLEVEL=3 NEEDS="+remote_fs" -declare -r ASOUNDCFG=/etc/asound.state - . /etc/init.d/smgl_init # modprobe returns 255 when failed.. @@ -83,50 +81,15 @@ start() { /sbin/modprobe snd-mixer-oss evaluate_retval fi - - # - # restore driver settings - # - if [[ -d /proc/asound ]]; then - if ! [[ -r "$ASOUNDCFG" ]]; then - echo "No mixer config in $ASOUNDCFG, you have to unmute your card!" - else - echo "Restoring settings..." - sleep 5 - /usr/sbin/alsactl -F -f $ASOUNDCFG restore - evaluate_retval - fi - fi } stop() { - # - # store driver settings - # - echo "Saving settings..." - /usr/sbin/alsactl -f $ASOUNDCFG store - evaluate_retval - - # - # mute master to avoid clicks at unload - # - /usr/bin/amixer set Master mute >/dev/null 2>&1 - - # - # remove all sound modules - # remove_module_pattern "^snd" "(snd-page-alloc|snd_page_alloc)" - + # remove the 2.2 soundcore module (if possible) remove_module_pattern "^soundcore " remove_module_pattern "^gameport " - - exit_code=$? - if [[ "$exit_code" -ne 0 ]]; then - /usr/bin/amixer set Master unmute >/dev/null 2>&1 - fi - exit $exit_code } status() { |