summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xabs/core-testing/LinHES-config-svn/restore_default_settings.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/abs/core-testing/LinHES-config-svn/restore_default_settings.sh b/abs/core-testing/LinHES-config-svn/restore_default_settings.sh
index 30429c6..dcf5e23 100755
--- a/abs/core-testing/LinHES-config-svn/restore_default_settings.sh
+++ b/abs/core-testing/LinHES-config-svn/restore_default_settings.sh
@@ -62,7 +62,11 @@ function ALSADEVICE () {
if [ x$Audiotype = xALSA ]
then
SoundDevice=ALSA:$SoundDevice
+ MixerDevice="ALSA:default"
+ else
+ MixerDevice="/dev/mixer"
fi
+
}
@@ -310,7 +314,9 @@ case $OPERATION in
MUSICFRONT)
ALSADEVICE
$MYSQLCMD_C "delete from settings where value='AudioOutputDevice' and hostname=\"$hostname\";"
+ $MYSQLCMD_C "delete from settings where value='MixerDevice' and hostname=\"$hostname\";"
$MYSQLCMD_C "REPLACE INTO settings set data='$SoundDevice', value='AudioOutputDevice' , hostname=\"$hostname\";"
+ $MYSQLCMD_C "REPLACE INTO settings set data='$MixerDevice', value='MixerDevice' , hostname=\"$hostname\";"
#need to reload the settings.
systemconfig.sh reloadfe
;;