Lircd executes the script when the volume is changed, the applications (mythtv/xine) affect Master.
my script is: cat /usr/local/bin/surround_vol
Code: Select all
#!/bin/bash
vol=$(/usr/bin/amixer get Master|/bin/grep Left|/usr/bin/tail -1|/usr/bin/gawk -F ' ' '{ print $4 }')
/usr/bin/amixer set Surround $vol >/dev/null
/usr/bin/amixer set Center $vol >/dev/null
/usr/bin/amixer set LFE $vol >/dev/nullmy asound.conf currently looks like:
Code: Select all
pcm.ch51dup {
type route
slave.pcm surround51
slave.channels 6
ttable.0.0 1
ttable.1.1 1
ttable.0.2 1
ttable.1.3 1
ttable.0.4 0.5
ttable.1.4 0.5
}
Does anyone know if this is possible?

