thanks for sharing your scripts, very useful to me !
In fact i've been fooled myself with system messages doing this :
[seijitsu@localhost ~]$ amixer -D hw:DSP cset numid=5 0,8,12222
Could not find the specified element
Seeing these messages, i though it wasn't working, as by this time i hadn't
speakers connected to the soundcard to verify that the sound was actually coming
through... So this this actually works despite the error message... my fault !
[seijitsu@localhost ~]$ lspci
...
05:00.0 Multimedia audio controller: Xilinx Corporation RME Hammerfall DSP (rev 6a)
Raphaël
Le 28 nov. 2013 à 00:39, Fons Adriaensen a écrit :
On Wed, Nov 27, 2013 at 12:49:41PM -0500, Paul Davis
wrote:
i have no idea what a "console-only"
version of hdspmixer would actually
do, but perhaps you could consider the following as inspiration also (which
uses amixer(1) to control the hdsp matrix mixer from the cmd line):
#!/bin/bash
AMIXER="amixer -q"
CARD="-c 1"
...
Very similar to the script I use to init a Multiface:
#!/bin/bash
# Multiface II mixer
#
# inputs: 0-7 (analog), 16-23 (adat), 24-25 (spdif) 26-33, 42..51 (playback channels)
# outputs: 0-7 (analog), 16-23 (adat) 24-25 (spdif), 26-27 (phones)
device=hw:DSP
gain=32768
function set_gain ()
{
amixer -D $device cset numid=5 $1,$2,$3 > /dev/null 2>&1
}
function reset_matrix ()
{
for out in $(seq 0 27); do
for inp in $(seq 0 51); do
set_gain $inp $out 0
done
done
}
echo Clearing matrix mixer ...
# Reset all
reset_matrix
echo Setting default connections ...
# Playback 1..8 to analog outs
set_gain 26 0 $gain
set_gain 27 1 $gain
set_gain 28 2 $gain
set_gain 29 3 $gain
set_gain 30 4 $gain
set_gain 31 5 $gain
set_gain 32 6 $gain
set_gain 33 7 $gain
# Playback 9..16 to ADAT outs
set_gain 42 16 $gain
set_gain 43 17 $gain
set_gain 44 18 $gain
set_gain 45 19 $gain
set_gain 46 20 $gain
set_gain 47 23 $gain
set_gain 48 24 $gain
set_gain 49 25 $gain
# Playback 17,18 to headphone amp
set_gain 50 26 $gain
set_gain 51 27 $gain
amixer -D$device sset 'Preferred Sync Reference' 'ADAT1'
amixer -D$device sset 'Sample Clock Source' 'AutoSync'
echo Done.
exit 0
Ciao,
--
FA
A world of exhaustive, reliable metadata would be an utopia.
It's also a pipe-dream, founded on self-delusion, nerd hubris
and hysterically inflated market opportunities. (Cory Doctorow)
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev(a)lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev