aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorlcapriotti <lcapriotti@svn>2010-09-06 09:00:25 +0000
committerlcapriotti <lcapriotti@svn>2010-09-06 09:00:25 +0000
commita6c68beb9d1b3ff12a3b50e981b39cb9be0cec96 (patch)
tree94761cf264995a2cb941255285b83b832ab63ea4 /tools
parentf6b20f044826922dd62b5a182d7b2a41f493073f (diff)
setup HDMI audio kernel module parameters for NVIDIA - Tks erhnam
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@33556 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'tools')
-rw-r--r--tools/XBMCLive/SDK/buildLive/Files/binary_local-includes/Hooks/hwSetup_NVIDIA_HDMI.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/XBMCLive/SDK/buildLive/Files/binary_local-includes/Hooks/hwSetup_NVIDIA_HDMI.sh b/tools/XBMCLive/SDK/buildLive/Files/binary_local-includes/Hooks/hwSetup_NVIDIA_HDMI.sh
new file mode 100644
index 0000000000..6652c75302
--- /dev/null
+++ b/tools/XBMCLive/SDK/buildLive/Files/binary_local-includes/Hooks/hwSetup_NVIDIA_HDMI.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+NvidiaHDMI=$(lspci -nn | grep 'Audio' | grep '10de:0be3')
+
+if [ ! -n "$NvidiaHDMI" ] ; then
+ exit 0
+fi
+
+if ! grep -i -q snd-hda-intel /etc/modprobe.d/alsa-base.conf ; then
+ CARD=`aplay -l | grep 'NVIDIA HDMI' | awk -F: '{ print $1 }' | awk '{ print $2 }'`
+ DEVICE=`aplay -l | grep 'NVIDIA HDMI' | awk -F: '{ print $2 }' | awk '{ print $5 }'`
+
+ if [ $CARD,$DEVICE == 1,3 ]; then
+ echo 'options snd-hda-intel enable_msi=0 probe_mask=0xffff,0xfff2' >> /etc/modprobe.d/alsa-base.conf
+ elif [ $CARD,$DEVICE == 0,3 ]; then
+ echo 'options snd-hda-intel enable_msi=0 probe_mask=0xfff2' >> /etc/modprobe.d/alsa-base.conf
+ elif [ $CARD,$DEVICE == 2,3 ]; then
+ echo 'options snd-hda-intel enable_msi=0 probe_mask=0xffff,0xffff,0xfff2' >> /etc/modprobe.d/alsa-base.conf
+# else
+# echo "No matching value detected"
+ fi
+fi