summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-config/restore_default_settings.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-03-05 22:01:57 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-03-05 22:01:57 (GMT)
commit8d75f389ea31131f1781ea5adaf8a36d4b2847d0 (patch)
treeddde13ed0a6ec8677c72ac5261f884e7312838f8 /abs/core-testing/LinHES-config/restore_default_settings.sh
parentee33ddf6f3657ff6384de9c6e517511f0427ffc7 (diff)
downloadlinhes_pkgbuild-8d75f389ea31131f1781ea5adaf8a36d4b2847d0.zip
linhes_pkgbuild-8d75f389ea31131f1781ea5adaf8a36d4b2847d0.tar.gz
linhes_pkgbuild-8d75f389ea31131f1781ea5adaf8a36d4b2847d0.tar.bz2
Correctly set the mixer for each sound subsystem.
For now it's /dev/mixer and ALSA:default.
Diffstat (limited to 'abs/core-testing/LinHES-config/restore_default_settings.sh')
-rwxr-xr-xabs/core-testing/LinHES-config/restore_default_settings.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/abs/core-testing/LinHES-config/restore_default_settings.sh b/abs/core-testing/LinHES-config/restore_default_settings.sh
index 30429c6..dcf5e23 100755
--- a/abs/core-testing/LinHES-config/restore_default_settings.sh
+++ b/abs/core-testing/LinHES-config/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
;;