summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/soundconfig.sh
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/LinHES-config/soundconfig.sh')
-rwxr-xr-xabs/core/LinHES-config/soundconfig.sh17
1 files changed, 11 insertions, 6 deletions
diff --git a/abs/core/LinHES-config/soundconfig.sh b/abs/core/LinHES-config/soundconfig.sh
index c268136..b9eb906 100755
--- a/abs/core/LinHES-config/soundconfig.sh
+++ b/abs/core/LinHES-config/soundconfig.sh
@@ -4,10 +4,14 @@
echo $@ >/tmp/audio.call
BASE=""
+MYTH_RUN_STATUS="1"
. /etc/profile
TESTFILE="/usr/share/sounds/alsa/Front_Center.wav"
OSSinstalled="false"
+
BLACKLIST=/etc/modprobe.d/soundconfig_blacklist.conf
+. /usr/MythVantage/bin/install_functions.sh
+home_check
echo "---------------------------------------"
@@ -75,7 +79,8 @@ function installOSS {
fi
soundon
add_service.sh oss
- echo "install soundcore /bin/false" >$BLACKLIST
+ echo "blacklist soundcore" > $BLACKLIST
+ echo "install soundcore /bin/false" >> $BLACKLIST
}
@@ -83,9 +88,9 @@ function installOSS {
function SYNCXINE {
echo "modify xine config file"
- if [ -f /data/home/mythtv/.xine/config ]
+ if [ -f $MYTHHOME/.xine/config ]
then
- cp -f /data/home/mythtv/.xine/config $TEMPLATES/xine.config
+ cp -f $MYTHHOME/.xine/config $TEMPLATES/xine.config
else
cp $TEMPLATES/xine.config.template $TEMPLATES/xine.config
fi
@@ -97,9 +102,9 @@ echo "modify xine config file"
-e "s/^.audio.device.oss_device_name.*$/audio.device.oss_device_name:\/dev\/dsp/" \
-e "s/^.audio.devic.oss_device_number.*$/audio.device.oss_device_number:$DEVICENUMER/" \
-e "s/^.*audio.output.speaker_arrangement:.*$/Audio.output.speaker_arrangement:PassThrough/" \
- $TEMPLATES/xine.config > /data/home/mythtv/.xine/config
+ $TEMPLATES/xine.config > $MYTHHOME/.xine/config
else
- cp $TEMPLATES/xine.config /data/home/mythtv/.xine/config
+ cp $TEMPLATES/xine.config $MYTHHOME/.xine/config
fi
}
@@ -135,7 +140,7 @@ function checkOSSinstalled () {
}
function sound_config_system {
-
+
SYNCMYTHFRONTEND
# if [ x$syncXine = x1 ]
# then