Skip to contentSkip to conversation

hdsp multiface pci.

DISCUSSION Patrick Shirkey 5 participants 23 messages Jan 19, 2003 – Jan 20, 2003

lore
Share & tools
lore
#4 lore raw
In reply to Thomas Charbonnel
Quoted 5 lines · Thomas Charbonnel

So the "numid=5 26,26,16384" line says:
connect software output 1 (called "playback" in the above table) to line out left, as the syntax of the call is input_source,output_source,value.

Thomas,
I have possibly more than a passing interest in this subject as I use
the HDSP 9652 card that Patrick mentioned and find this whole amixer language completely unfathomable.

In your quote above, could you outline what each parameter stands
for?

"numid=5 26,26,16384"

numid=5 - Is this a physical connection? A mixer input or output? An abstract number just used to keep track of things?

26,26 - clearly Patrick and I were thinking that these two numbers related to specific hardware inputs and outputs, but apparently not.

16384 - a mixer volume?

Thanks in advance for helping.

Cheers,
Mark

-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en

#0 lore raw

Using latest cvs, I have been trying to get this device working for my friend. We have had some success but it is unreliable.

We could get sound out of the lineout port after using this command

amixer -D hw:0 cset numid=5 0,0,16384

numid=5,iface=PCM,name='Mixer'
; type=INTEGER,access=rw---,values=3,min=0,max=65536,step=1 : values=16384,0,0

Using

numid=5 26,26,16384
numid=5 27,27,16384
or
numid=5 10,10,16384 <<<--- 10 appears to be line out id

seem to do nothing.

Sometimes after trying to use aplay and usually when trying alsaplayer amixer resets the volume to 0.

Is this buggy behaviour?

How do other people manage to get things done with the hdsp?

Is it a known issue with alsaplayer in the same way that the hdsp-9652 doesn't work well with it?

Here is the output of

amixer -D hw:0 contents

in case it is useful.

------------------

numid=3,iface=MIXER,name='IEC958 Playback Con Mask'
; type=IEC958,access=r----,values=1
: values=?
numid=4,iface=MIXER,name='IEC958 Playback Pro Mask'
; type=IEC958,access=r----,values=1
: values=?
numid=11,iface=MIXER,name='Chn',index=1
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=17,iface=MIXER,name='Chn',index=2
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=23,iface=MIXER,name='Chn',index=3
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=29,iface=MIXER,name='Chn',index=4
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=35,iface=MIXER,name='Chn',index=5
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=41,iface=MIXER,name='Chn',index=6
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=47,iface=MIXER,name='Chn',index=7
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=53,iface=MIXER,name='Chn',index=8
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=59,iface=MIXER,name='Chn',index=9
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=65,iface=MIXER,name='Chn',index=10
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=71,iface=MIXER,name='Chn',index=11
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=77,iface=MIXER,name='Chn',index=12
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=83,iface=MIXER,name='Chn',index=13
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=89,iface=MIXER,name='Chn',index=14
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=95,iface=MIXER,name='Chn',index=15
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=101,iface=MIXER,name='Chn',index=16
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=107,iface=MIXER,name='Chn',index=17
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=113,iface=MIXER,name='Chn',index=18
; type=INTEGER,access=rw---,values=1,min=0,max=65536,step=1 : values=0
numid=6,iface=PCM,name='IEC958 Input Connector'
; type=ENUMERATED,access=rw---,values=1,items=3
; Item #0 'ADAT1'
; Item #1 'Coaxial'
; Item #2 'Internal'
: values=2
numid=7,iface=PCM,name='IEC958 Output also on ADAT1'
; type=BOOLEAN,access=rw---,values=1
: values=off
numid=1,iface=PCM,name='IEC958 Playback Default'
; type=IEC958,access=rw---,values=1
: values=?
numid=12,iface=PCM,name='Input Peak',index=1
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=102656,0
numid=18,iface=PCM,name='Input Peak',index=2
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=89600,0
numid=24,iface=PCM,name='Input Peak',index=3
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=87296,0
numid=30,iface=PCM,name='Input Peak',index=4
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=87808,0
numid=36,iface=PCM,name='Input Peak',index=5
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=90624,0
numid=42,iface=PCM,name='Input Peak',index=6
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=123136,0
numid=48,iface=PCM,name='Input Peak',index=7
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=126976,0
numid=54,iface=PCM,name='Input Peak',index=8
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=162304,0
numid=60,iface=PCM,name='Input Peak',index=9
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=66,iface=PCM,name='Input Peak',index=10
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=72,iface=PCM,name='Input Peak',index=11
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=78,iface=PCM,name='Input Peak',index=12
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=84,iface=PCM,name='Input Peak',index=13
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=90,iface=PCM,name='Input Peak',index=14
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=96,iface=PCM,name='Input Peak',index=15
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=102,iface=PCM,name='Input Peak',index=16
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=108,iface=PCM,name='Input Peak',index=17
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=114,iface=PCM,name='Input Peak',index=18
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=16,iface=PCM,name='Input RMS',index=1
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=463024331
numid=22,iface=PCM,name='Input RMS',index=2
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=451976321
numid=28,iface=PCM,name='Input RMS',index=3
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=463546985
numid=34,iface=PCM,name='Input RMS',index=4
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=494462528
numid=40,iface=PCM,name='Input RMS',index=5
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=478606310
numid=46,iface=PCM,name='Input RMS',index=6
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=52,iface=PCM,name='Input RMS',index=7
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=58,iface=PCM,name='Input RMS',index=8
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=64,iface=PCM,name='Input RMS',index=9
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=70,iface=PCM,name='Input RMS',index=10
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=76,iface=PCM,name='Input RMS',index=11
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=82,iface=PCM,name='Input RMS',index=12
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=88,iface=PCM,name='Input RMS',index=13
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=94,iface=PCM,name='Input RMS',index=14
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=100,iface=PCM,name='Input RMS',index=15
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=106,iface=PCM,name='Input RMS',index=16
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=112,iface=PCM,name='Input RMS',index=17
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=118,iface=PCM,name='Input RMS',index=18
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=10,iface=PCM,name='Line Out'
; type=BOOLEAN,access=rw---,values=1
: values=on
numid=5,iface=PCM,name='Mixer'
; type=INTEGER,access=rw---,values=3,min=0,max=65536,step=1 : values=16384,0,0
numid=13,iface=PCM,name='Output Peak',index=1
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=2147483392,15
numid=19,iface=PCM,name='Output Peak',index=2
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=2147483392,15
numid=25,iface=PCM,name='Output Peak',index=3
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=2147483392,15
numid=31,iface=PCM,name='Output Peak',index=4
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=2147483392,15
numid=37,iface=PCM,name='Output Peak',index=5
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=2147483392,15
numid=43,iface=PCM,name='Output Peak',index=6
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=2147483392,15
numid=49,iface=PCM,name='Output Peak',index=7
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=2147483392,15
numid=55,iface=PCM,name='Output Peak',index=8
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=61,iface=PCM,name='Output Peak',index=9
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=67,iface=PCM,name='Output Peak',index=10
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=73,iface=PCM,name='Output Peak',index=11
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=79,iface=PCM,name='Output Peak',index=12
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=85,iface=PCM,name='Output Peak',index=13
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=91,iface=PCM,name='Output Peak',index=14
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=97,iface=PCM,name='Output Peak',index=15
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=103,iface=PCM,name='Output Peak',index=16
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=2147483392,15
numid=109,iface=PCM,name='Output Peak',index=17
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=2147483392,15
numid=115,iface=PCM,name='Output Peak',index=18
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=2147483392,15
numid=9,iface=PCM,name='Passthru'
; type=BOOLEAN,access=rw---,values=1
: values=off
numid=14,iface=PCM,name='Playback Peak',index=1
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=2147483392,15
numid=20,iface=PCM,name='Playback Peak',index=2
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=26,iface=PCM,name='Playback Peak',index=3
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=32,iface=PCM,name='Playback Peak',index=4
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=38,iface=PCM,name='Playback Peak',index=5
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=44,iface=PCM,name='Playback Peak',index=6
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=50,iface=PCM,name='Playback Peak',index=7
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=56,iface=PCM,name='Playback Peak',index=8
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=62,iface=PCM,name='Playback Peak',index=9
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=68,iface=PCM,name='Playback Peak',index=10
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=74,iface=PCM,name='Playback Peak',index=11
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=80,iface=PCM,name='Playback Peak',index=12
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=86,iface=PCM,name='Playback Peak',index=13
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=92,iface=PCM,name='Playback Peak',index=14
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=98,iface=PCM,name='Playback Peak',index=15
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=104,iface=PCM,name='Playback Peak',index=16
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=110,iface=PCM,name='Playback Peak',index=17
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=116,iface=PCM,name='Playback Peak',index=18
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0
numid=15,iface=PCM,name='Playback RMS',index=1
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=21,iface=PCM,name='Playback RMS',index=2
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=27,iface=PCM,name='Playback RMS',index=3
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=33,iface=PCM,name='Playback RMS',index=4
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=39,iface=PCM,name='Playback RMS',index=5
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=45,iface=PCM,name='Playback RMS',index=6
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=51,iface=PCM,name='Playback RMS',index=7
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=57,iface=PCM,name='Playback RMS',index=8
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=63,iface=PCM,name='Playback RMS',index=9
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=69,iface=PCM,name='Playback RMS',index=10
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=75,iface=PCM,name='Playback RMS',index=11
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=81,iface=PCM,name='Playback RMS',index=12
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=87,iface=PCM,name='Playback RMS',index=13
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=93,iface=PCM,name='Playback RMS',index=14
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=99,iface=PCM,name='Playback RMS',index=15
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=105,iface=PCM,name='Playback RMS',index=16
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=111,iface=PCM,name='Playback RMS',index=17
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=117,iface=PCM,name='Playback RMS',index=18
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0
numid=8,iface=PCM,name='Preferred Sync Source'
; type=ENUMERATED,access=rw---,values=1,items=6
; Item #0 'Internal'
; Item #1 'Word'
; Item #2 'ADAT Sync'
; Item #3 'IEC958'
; Item #4 'ADAT1'
; Item #5 'ADAT2'
: values=0

------------------

Signature · 18 lines
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.djcj.org - The Linux Audio Users guide
========================================

Being on stage with the band in front of crowds shouting, "Get off! No! We want normal music!", I think that was more like acting than anything I've ever done.

Goldie, 8 Nov, 2002
The Scotsman



-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
#8 lore raw
In reply to Roger Williams
Quoted 7 lines · Roger Williams
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Patrick Shirkey <[email protected]> writes:

Can we route multiple software outputs to the same hardware output?

Yes. For instance, when recording 8 tracks, I'll generate a monitor mix (for JACK's outputs) to outputs 1 & 2 like this:

Quoted 10 lines

amixer cset numid=5 26,26,16384 amixer cset numid=5 28,26,16384 amixer cset numid=5 30,26,16384 amixer cset numid=5 32,26,16384 amixer cset numid=5 27,27,16384 amixer cset numid=5 29,27,16384 amixer cset numid=5 31,27,16384 amixer cset numid=5 33,27,16384

Roger,
OK, I just don't get it yet. This is from the Alsa page on the HDSP
cards:

*************
Since the Multiface only have 18 i/o channels, the channel mapping in the matrix mixer is different from the Digiface when operating at 48kHz or lower.

[Ed. This is a routing table]

input_source: 0-7 (analog), 16-23 (adat), 24-25 (spdif), 26-51 (playback)
output_source: 0-7 (analog), 16-23 (adat) 24-25 (spdif), 26-27 (line out)
*************

In your example above, is the use of 26 and 27 on the output part of the command telling the hardware to route whatever it is that you're mixing to the line out connectors on your box?

Second, where do the inputs numbered 26-33 come from. I can't figure this part out. Are they outputs from the HDSP hardware mixer? Or do they mean from physical inputs? (somehow renumbered) This is the part I don't get right now.

I presume that your use of 16384 is to reduce volume so that after summing 4 channels you do not create output clipping if all the inputs hit maximum volume at the same time?

QUESTION - If you wanted to route input 0 directly to an output, could you use a command like:

amixer cset numid=5 0,26,16384
amixer cset numid=5 1,27,16384

I think my HDSP 9652 will have different numbering since I have a different number of I/O's on the card, but I want to understand your example since it seems like a good one.

Thanks,
Mark

-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en

#1 lore raw
In reply to Patrick Shirkey
Quoted 7 lines · Patrick Shirkey

Using latest cvs, I have been trying to get this device working for my friend. We have had some success but it is unreliable.

We could get sound out of the lineout port after using this command

amixer -D hw:0 cset numid=5 0,0,16384

This is supposed to route the signal received on analog input 1 to analog output 1.

Quoted 8 lines

numid=5,iface=PCM,name='Mixer'
; type=INTEGER,access=rw---,values=3,min=0,max=65536,step=1 : values=16384,0,0

Using

numid=5 26,26,16384
numid=5 27,27,16384

The above should indeed be the correct way to route software playback channels 1-2 to the line outs (jack's alsa_pcm:playback_1 and _2, for example).

Quoted 3 lines

or
numid=5 10,10,16384 <<<--- 10 appears to be line out id

What makes you say so ?

Quoted 7 lines

seem to do nothing.

Sometimes after trying to use aplay and usually when trying alsaplayer amixer resets the volume to 0.

Is this buggy behaviour?

Maybe there is a bug in the matrix mixer. Yesterday, while working in a complex setup, I couldn't manage to route analog inputs 3-4 to analog outputs 3-4, it just didn't work. I had those inputs routed to the line outs, and could hear the signal, but nothing came out of ouputs 3-4. I had to route inputs 3-4 to outputs 5-6 to get it working. As we were rehearsing, I had no time to further investigate. One of the problem preventing proper understanding of the situation is that you actually can't read from the mixer control, as cget doesn't take a parameter.

I know Paul is not fully satisfied with the way the matrix mixer is handled right now. Maybe it could be changed so that reading the mixer state is possible. I am currently writing a totalmix clone, and reading the mixer state could really prove usefull. Imagine you're working with a complex mixer setup and accidentally close the mixer app. If you relaunch the app, it won't be able to read the mixer state back, and will have to fall back on a preset. Your mixing work will be lost. Other examples of the need of mixer state readout include synchronization between different apps using the mixer. I plan to implement a ladspa plugin to control the matrix mixer, so that you could automate hardware mixing in ardour, for example. The plugin and the standalone mixer app should stay synced.

Thomas

-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en

#2 lore raw
Quoted 20 lines · Thomas Charbonnel
Quoted 6 lines · Patrick Shirkey

Using latest cvs, I have been trying to get this device working for my friend. We have had some success but it is unreliable.

We could get sound out of the lineout port after using this command

amixer -D hw:0 cset numid=5 0,0,16384

This is supposed to route the signal received on analog input 1 to analog output 1.

Quoted 6 lines

numid=5,iface=PCM,name='Mixer'
; type=INTEGER,access=rw---,values=3,min=0,max=65536,step=1 : values=16384,0,0

Using

Quoted 8 lines

Review

Quoted 2 lines
(quoted diff) +0 -0
 	numid=5 26,26,16384
 	numid=5 27,27,16384

The above should indeed be the correct way to route software playback channels 1-2 to the line outs (jack's alsa_pcm:playback_1 and _2, for example).

Sorry I'm not fully grasping this. Why are 26 and 27 directly related to alsa_pcm:playback_1 and _2?

I thought from reading the notes on the hdsp page that pcm1 and pcm2 would be numbers 0 and 1 not 26 and 27.

eg.
======
Since the Multiface only have 18 i/o channels, the channel mapping in the matrix mixer is different from the Digiface when operating at 48kHz or lower.

input_source: 0-7 (analog), 16-23 (adat), 24-25 (spdif), 26-51 (playback)
output_source: 0-7 (analog), 16-23 (adat) 24-25 (spdif), 26-27 (line out)
======

See how it says 0-7 (analog)?

I haven't found an explanation for the following in the docs describing how to use the amixer app so could you please clarify this for me?

What is this line saying?

numid=5 26,26,16384

something like:

connect 26 to 5 with a volume of 16384

Quoted 8 lines
Quoted 4 lines

or
numid=5 10,10,16384 <<<--- 10 appears to be line out id

What makes you say so ?

These are the id's in question:

numid=5,iface=PCM,name='Mixer'
; type=INTEGER,access=rw---,values=3,min=0,max=65536,step=1 : values=16384,0,0

numid=10,iface=PCM,name='Line Out'
; type=BOOLEAN,access=rw---,values=1
: values=on

numid=26,iface=PCM,name='Playback Peak',index=3
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0

numid=27,iface=PCM,name='Playback RMS',index=3
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0

Signature · 18 lines
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.djcj.org - The Linux Audio Users guide
========================================

Being on stage with the band in front of crowds shouting, "Get off! No! We want normal music!", I think that was more like acting than anything I've ever done.

Goldie, 8 Nov, 2002
The Scotsman



-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
#22 lore raw

Another question.

What are each of these?

====================
IEC958 Playback Con Mask
IEC958 Playback Pro Mask
Chn
IEC958 Input Connector
IEC958 Output also on ADAT1
IEC958 Playback Default
Input Peak
Input RMS
Line Out
Mixer
Output Peak
Passthru
Playback Peak
Playback RMS
Preferred Sync Source
=====================

Some are self explanatory but I will add it to the notes if someone will go through and explain each one.

Signature · 18 lines
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.djcj.org - The Linux Audio Users guide
========================================

Being on stage with the band in front of crowds shouting, "Get off! No! We want normal music!", I think that was more like acting than anything I've ever done.

Goldie, 8 Nov, 2002
The Scotsman



-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
#3 lore raw
In reply to Patrick Shirkey
Quoted 21 lines · Patrick Shirkey

Sorry I'm not fully grasping this. Why are 26 and 27 directly related to alsa_pcm:playback_1 and _2?

I thought from reading the notes on the hdsp page that pcm1 and pcm2 would be numbers 0 and 1 not 26 and 27.

eg.
======
Since the Multiface only have 18 i/o channels, the channel mapping in the matrix mixer is different from the Digiface when operating at 48kHz or lower.

input_source: 0-7 (analog), 16-23 (adat), 24-25 (spdif), 26-51 (playback)
output_source: 0-7 (analog), 16-23 (adat) 24-25 (spdif), 26-27 (line out)
======

See how it says 0-7 (analog)?

I haven't found an explanation for the following in the docs describing how to use the amixer app so could you please clarify this for me?

Quoted 9 lines

What is this line saying?

   	numid=5 26,26,16384

something like:

connect 26 to 5 with a volume of 16384

You have to understand that software outputs are not directly related to physical outputs. On simpler hardware, software and physical outputs can be considered the same. On the hdsp system, thanks to the internal matrix mixer, software outputs are totally abstracted from physical ones. On the multiface you have 18 software outputs, each of wich can be independently routed to any of the 18 physical outputs. For convenience, the hdsp linux driver's default behaviour is to have a 1:1 routing
policy: each software output is by default routed to to corresponding hardware output.
So the "numid=5 26,26,16384" line says:
connect software output 1 (called "playback" in the above table) to line out left, as the syntax of the call is input_source,output_source,value.

Quoted 20 lines
Quoted 8 lines
Quoted 4 lines

or
numid=5 10,10,16384 <<<--- 10 appears to be line out id

What makes you say so ?

These are the id's in question:

numid=5,iface=PCM,name='Mixer'
; type=INTEGER,access=rw---,values=3,min=0,max=65536,step=1 : values=16384,0,0

numid=10,iface=PCM,name='Line Out'
; type=BOOLEAN,access=rw---,values=1
: values=on

Quoted 9 lines

numid=26,iface=PCM,name='Playback Peak',index=3
; type=INTEGER,access=r----,values=2,min=0,max=0,step=0 : values=0,0

numid=27,iface=PCM,name='Playback RMS',index=3
; type=INTEGER64,access=r----,values=1,min=0,max=0,step=0 : values=0

Here it looks like you're mixing up the amixer numid parameter number with the hdsp internal channel numbers.
Numid 5 is the actual alsa matrix mixer control. Numid 10 is the global line out switch. Numid 26 and 27 are read only, and correspond to the internal peak and rms calculation the card does to provide a 0% CPU metering solution (to be used in the forthcoming HDSPMixer totalmix clone !...)

I hope this makes things clearer.

Thomas

-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en

#6 lore raw
Quoted 15 lines · Thomas Charbonnel

You have to understand that software outputs are not directly related to physical outputs. On simpler hardware, software and physical outputs can be considered the same. On the hdsp system, thanks to the internal matrix mixer, software outputs are totally abstracted from physical ones. On the multiface you have 18 software outputs, each of wich can be independently routed to any of the 18 physical outputs. For convenience, the hdsp linux driver's default behaviour is to have a 1:1 routing
policy: each software output is by default routed to to corresponding hardware output.
So the "numid=5 26,26,16384" line says:
connect software output 1 (called "playback" in the above table) to line out left, as the syntax of the call is input_source,output_source,value.

Great explanation. I have added it as an editors note on the hdsp page.

so it's default is a fifo?

i.e software output 26 -> analog output 1

	software output 27 -> analog output 2....

Therefore can I do this?

numid=5 26,0,16384
numid=5 27,1,16384
numid=5 28,2,16384
numid=5 29,3,16384
numid=5 30,4,16384
numid=5 31,5,16384
numid=5 32,6,16384
numid=5 33,7,16384

Or is that the default setting (except with no volume).

Quoted 11 lines

Here it looks like you're mixing up the amixer numid parameter number with the hdsp internal channel numbers.
Numid 5 is the actual alsa matrix mixer control. Numid 10 is the global line out switch. Numid 26 and 27 are read only, and correspond to the internal peak and rms calculation the card does to provide a 0% CPU metering solution (to be used in the forthcoming HDSPMixer totalmix clone !...)

I hope this makes things clearer.

Getting there. So we have to tell the control called numid=5 to route the output from software 1 to line out before we can hear it through line out?

Can we route multiple software outputs to the same hardware output?

eg. numid=5 26,26,16384

	numid=5 27,27,16384
	numid=5 28,26,16384
	numid=5 29,27,16384
	numid=5 30,26,16384
	numid=5 31,27,16384
	numid=5 32,26,16384
	numid=5 33,27,16384

Or is that what the .asoundrc is for?

Signature · 18 lines
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.djcj.org - The Linux Audio Users guide
========================================

Being on stage with the band in front of crowds shouting, "Get off! No! We want normal music!", I think that was more like acting than anything I've ever done.

Goldie, 8 Nov, 2002
The Scotsman



-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
#10 lore raw
In reply to Roger Williams

Roger,
This is very, very helpful. Thanks for sharing this info. I am trying
to do similar things with the HDSP 9652, which is similar but a bit different, I'd like to address a couple more things. (Darn...Tennessee just scored!) :-((( 7-7

I just want to clearly understand the physical I/O numbering right
now. Once I've got that I'll ask you a couple of questions about the mixer if I may.

OK, it appears that the MultiFace has a slightly different numbering
system for your analog channels, starting with 0-7 instead of what I think I have which starts with 1-8. Is this correct?

If I look at the HDSP amixer info, I seem to start with an index of
1, not 0. Am I looking at the right stuff? (I've done some sorting to make this more readable to me. I have this initial section with 9 controls, and then 26 sections that are identical to the second area I show below, indexing from 1-26. I presume that your first one would start with index=0?

[mark@Godzilla mark]$ amixer controls numid=1,iface=PCM,name='IEC958 Playback Default' numid=3,iface=MIXER,name='IEC958 Playback Con Mask' numid=4,iface=MIXER,name='IEC958 Playback Pro Mask' numid=5,iface=PCM,name='Mixer' numid=6,iface=PCM,name='IEC958 Input Connector' numid=7,iface=PCM,name='IEC958 Output also on ADAT1' numid=8,iface=PCM,name='Preferred Sync Source' numid=9,iface=PCM,name='Passthru' numid=10,iface=PCM,name='Line Out'

numid=11,iface=MIXER,name='Chn',index=1
numid=12,iface=PCM,name='Input Peak',index=1
numid=13,iface=PCM,name='Output Peak',index=1
numid=14,iface=PCM,name='Playback Peak',index=1
numid=15,iface=PCM,name='Playback RMS',index=1
numid=16,iface=PCM,name='Input RMS',index=1

Quoted 5 lines · Roger Williams
Quoted 2 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Mark Knecht <[email protected]> writes:

Second, where do the inputs numbered 26-33 come from.

As far as the Multiface's analogue I/O goes, channels appear to be numbered like this:

When you say 'appear to be numbered like this', how did you determine this? Was it documented somewhere? Or did you have to test yourself?

Quoted 6 lines

Multiface inputs 1-8 = amixer source channels 0-7
Multiface outputs 1-8 = amixer destination channels 0-7
Multiface line (headphone) outputs = amixer destination channels 26-27
alsa_pcm:playback_1-8 = amixer source channels 26-33

OK, here's where you throw me. Let me list out what I thought I knew about the MultiFace, and then correct me where I'm wrong please.

The MultiFace has 18 inputs - 8 analog, 8 ADAT, 2 s/pdif, and 20 outputs (including the Headphone outs if they are really separate from everything else. They may not be...) so I would have expected you to list:

(Yea!!! Raiders score! 14-7)

MultiFace analog inputs 1-8 = amixer source channels 0-7
MultiFace ADAT inputs 9-16 = amixer source channels W-X (8-16?)
MultiFace s/pdif inputs 17-18 = amixer source channels Y-Z (17-18?)

Basically, to use the 18 inputs, they all must have unique numbers. Correct?

MultiFace analog outputs 1-8 = amixer dest. channels 0-7
MultiFace ADAT outputs 9-16 = amixer dest. channels W-X (8-16?)
MultiFace s/pdif outputs 17-18 = amixer dest. channels Y-Z (17-18?)
MultiFace Line outputs 1-2 = amixer dest. channels 26-27

Maybe all of the features of the MultiFace not actually supported in the current driver, so you didn't list them, or maybe you just didn't use them, so you didn't write them down?

In my case I am guessing that my physical I/O numbering will be as follows:

HDSP 9652 ADAT-1 inputs 1-8 = amixer source channels 1-8
HDSP 9652 ADAT-2 inputs 9-16 = amixer source channels 8-16
HDSP 9652 ADAT-3 inputs 17-24 = amixer source channels 17-24
HDSP 9652 s/pdif inputs 25-26 = amixer source channels 25-26

and similar numbering for the outputs.

Do you think this is right? Any other thoughts or comments?

Thanks,
Mark

-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en

#7 lore raw
In reply to Patrick Shirkey
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Patrick Shirkey <[email protected]> writes:

Can we route multiple software outputs to the same hardware output?

Yes. For instance, when recording 8 tracks, I'll generate a monitor mix (for JACK's outputs) to outputs 1 & 2 like this:

amixer cset numid=5 26,26,16384
amixer cset numid=5 28,26,16384
amixer cset numid=5 30,26,16384
amixer cset numid=5 32,26,16384
amixer cset numid=5 27,27,16384
amixer cset numid=5 29,27,16384
amixer cset numid=5 31,27,16384
amixer cset numid=5 33,27,16384

Signature · 10 lines
Roger Williams <[email protected]>
Qux Tool & Die, Middleborough, Massachusetts
// Omne tulit punctum qui misquit utile dulci //


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
#19 lore raw
In reply to Patrick Shirkey
Quoted 4 lines · Patrick Shirkey
Quoted 2 lines · Thomas Charbonnel
Quoted 9 lines
Quoted 9 lines

You have to understand that software outputs are not directly related to physical outputs. On simpler hardware, software and physical outputs can be considered the same. On the hdsp system, thanks to the internal matrix mixer, software outputs are totally abstracted from physical ones. On the multiface you have 18 software outputs, each of wich can be independently routed to any of the 18 physical outputs. For convenience, the hdsp linux driver's default behaviour is to have a 1:1 routing
policy: each software output is by default routed to to corresponding hardware output.

In essence the hdsp can run 18 software streams at the same time as processing upto 18 hardware input streams?

Do I need to set the volume for the analog inputs? Or will I be able to capture from them without setting anything in amixer?

Signature · 18 lines
Patrick Shirkey - Boost Hardware Ltd.
For the discerning hardware connoisseur
Http://www.boosthardware.com
Http://www.djcj.org - The Linux Audio Users guide
========================================

Being on stage with the band in front of crowds shouting, "Get off! No! We want normal music!", I think that was more like acting than anything I've ever done.

Goldie, 8 Nov, 2002
The Scotsman



-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
#20 lore raw
In reply to Patrick Shirkey
Quoted 1 line · Patrick Shirkey

I have added it as an editors note on the hdsp page.

Thanks.

Quoted 5 lines

so it's default is a fifo?

i.e software output 26 -> analog output 1

	software output 27 -> analog output 2....

Strangely said, but yes.

Quoted 11 lines

Therefore can I do this?

numid=5 26,0,16384
numid=5 27,1,16384
numid=5 28,2,16384
numid=5 29,3,16384
numid=5 30,4,16384
numid=5 31,5,16384
numid=5 32,6,16384
numid=5 33,7,16384

Quoted 2 lines

Or is that the default setting (except with no volume).

Rather than bothering to use amixer, you'd better use alsamixer to control those. These are the standard volume controls. (Internally the volume controls use the matrix mixer)
If you want to hear sound through analog outputs 1-2 using software outputs 1-2, you can either use amixer (e.g. amixer cset numid=5 26,0,16384) or alsamixer.

Quoted 4 lines

So we have to tell the control called numid=5 to route the output from software 1 to line out before we can hear it through line out?

Yes. The control called numid=5 is the interface to the matrix mixer.

Quoted 11 lines

Can we route multiple software outputs to the same hardware output?

eg. numid=5 26,26,16384

	numid=5 27,27,16384
	numid=5 28,26,16384
	numid=5 29,27,16384
	numid=5 30,26,16384
	numid=5 31,27,16384
	numid=5 32,26,16384
	numid=5 33,27,16384

Yes we can :)

Quoted 2 lines

Or is that what the .asoundrc is for?

I don't know if you can do it with the .asoundrc file (I would rather doubt it). Anyway the clear benefit of doing it with amixer is that it is hardware mixing, thus consuming no system resources.

Quoted 4 lines

From your latest post:
In essence the hdsp can run 18 software streams at the same time as processing upto 18 hardware input streams?

Yes. In fact the hdsp system can run up to 26 of them (digiface).

Quoted 4 lines

Do I need to set the volume for the analog inputs? Or will I be able to
capture from them without setting anything in amixer?

You'll be able to capture without setting anything in amixer

Thomas

-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en

#5 lore raw
In reply to Mark Knecht
Quoted 5 lines · Mark Knecht

Thomas,
I have possibly more than a passing interest in this subject as I use
the HDSP 9652 card that Patrick mentioned and find this whole amixer language completely unfathomable.

Quoted 8 lines

In your quote above, could you outline what each parameter stands
for?

"numid=5 26,26,16384"

numid=5 - Is this a physical connection? A mixer input or output? An abstract number just used to keep track of things?

numid=5 is a way to identify the control we want to work with, i.e. the matrix mixer.
Controls are defined on a per soundcard basis to address specific driver needs uncovered by the "simple controls" you can access through alsamixer.

Quoted 3 lines

26,26 - clearly Patrick and I were thinking that these two numbers related to specific hardware inputs and outputs, but apparently not.

Yes they are. To understand them you should refer to the table Patrick gave (quoting the HDSP alsa page, link follows).

Quoted 2 lines

16384 - a mixer volume?

Yes, you should read Marcus Andersson's comments on this here:
http://www.alsa-project.org/alsa-doc/doc-php/template.php3?company=RME&card=Hammerfall+DSP&chip=FPGA&module=hdsp
(at the end of the page)

Thomas

-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en

#12 lore raw
In reply to Roger Williams

Roger,
I think the light is just starting to turn on, or at least I can only
hope... ;-) See if you can help me improve the following description.

I can think of my HDSP mixer as a device with 52 inputs and 26
outputs. The inputs look like:

1) 26 mixer inputs come from the HDSP's physical inputs
- numbered 0-25 in the mixer
- called Alsa_pcm:capture_1 - 26 in Jack

2) 26 mixer inputs come from the Alsa:playback group
- numbered 26-51 in the mixer
- called Alsa_pcm:playback_1 - 26 in Jack

The outputs look like:

1) 26 mixer outputs come from the mixer
- numbered 0-25 out of the mixer

By default, the HDSP driver then takes the Alsa_pcm:playback group
and hooks them to (more or less) matching output destinations:

Alsa_pcm:playback_1 -> HDSP Output 0
Alsa_pcm:playback_2 -> HDSP Output 1
...
Alsa_pcm:playback_26 -> HDSP Output 25

so that if I connect capture_1 to playback_1 then whatever comes in on the ADAT-1, channel 0 input will get sent back out on ADAT-1, channel 1 output.

To test this idea, and using your headphone mix example, I should be able to create a hardware monitoring setup by routing physical inputs directory to physical outputs using something like this:

amixer cset numid=5 0,0,32768
amixer cset numid=5 1,1,32768
...
amixer cset numid=5 25,25,32768

which would route each physical input to each physical output, 1 for 1, at a volume of unity gain. (As per Marcus's notes again.)

What is not at all clear yet is whether a single input can go to multiple outs with different gains. For instance, if I execute:

amixer cset numid=5 0,0,10000
amixer cset numid=5 0,1,30000

I am attempting to take physical input 0 and sending it to both the left and right outputs, but at different volumes. Is this legal? I'm not sure.

In my case, I use Alsa_pcm:playback_1/2 for my main speakers, and playback_3/4 for my headphones. The problem I've been having is that I didn't know how to set the volume on my speakers with no mixer. Using this information, I could execute:

amixer cset numid=5 26,0,3000
amixer cset numid=5 27,1,3000

and now my playback_1/2 should come out of my speakers, but at considerably reduced volumes.

I'm going to stop and get feedback, as this is almost making sense. In the meantime, I might as well try the commands above and see if my speaker volume is under control.

Thanks very much for your help!

Cheers,
Mark

Quoted 55 lines · Roger Williams
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Mark Knecht <[email protected]> writes:

This is very, very helpful.

What will be "very, very helpful" will be Thomas's TotalMix clone! :)

Quoted 3 lines

... it appears that the MultiFace has a slightly different numbering system for your analog channels, starting with 0-7 instead of what I think I have which starts with 1-8.

My "amixer controls" dump looks the same as yours. I don't know what "index=1" means, but it doesn't appear to mean that our cset indexing begins at 1. I've got to assume that Paul or Thomas already know everything there is to know about the HDSP mixer, and I hate to explore known territory, but when you don't have a map...

Quoted 2 lines

When you say 'appear to be numbered like this', how did you determine this? Was it documented somewhere? Or did you have to test yourself?

Well, it matches Marcus Andersson's notes on the ALSA HDSP page:

    input_source: 0-7 (analog), 16-23 (adat), 24-25 (spdif), 26-51 (playback)
    output_source: 0-7 (analog), 16-23 (adat) 24-25 (spdif), 26-27 (line out)

I found "output_source" confusing, but it makes sense if I rename it "destination".

Quoted 1 line

The MultiFace has 18 inputs ... so I would have expected you to list:

Some of the numbering is discontinuous (because the Multiface doesn't have the Digiface's ADAT2 range of channels), so the full Multiface I/O list is:

Inputs to HDSP Mixer
========================================================================

Multiface analogue inputs 1-8      = amixer source channels 0-7
Multiface ADAT inputs 1-8          = amixer source channels 16-23
Multiface SPDIF input              = amixer source channels 24-25
alsa_pcm:playback_1-26             = amixer source channels 26-51

Outputs from HDSP Mixer
========================================================================

Multiface analogue outputs 1-8     = amixer destination channels 0-7
Multiface ADAT outputs 1-8         = amixer destination channels 16-23
Multiface SPDIF output             = amixer destination channels 24-25
Multiface line (headphone) output  = amixer destination channels 26-27

Mapping between Multiface inputs and alsa_pcm:capture channels
========================================================================

Multiface analogue inputs 1-8      = capture_1-8
Multiface ADAT inputs 1-8          = capture_9-16
Multiface SPDIF input              = capture_17-18
Quoted 1 line

In my case I am guessing that my physical I/O numbering will be

Quoted 24 lines
Quoted 4 lines
HDSP 9652 ADAT-1 inputs 1-8	   = amixer source channels 1-8
HDSP 9652 ADAT-2 inputs 9-16   = amixer source channels 8-16
HDSP 9652 ADAT-3 inputs 17-24  = amixer source channels 17-24
HDSP 9652 s/pdif inputs 25-26  = amixer source channels 25-26

I'm pretty sure that the amixer ranges will be 0-7, 8-15, 16-23, and 24-25, respectively. I believe that matches the Digiface (which also has its analogue headphone output on 26-27, as I recall).

Signature · 14 lines
Roger Williams <[email protected]>
Qux Tool & Die, Middleborough, Massachusetts
// Omne tulit punctum qui misquit utile dulci //


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en

#9 lore raw
In reply to Mark Knecht
Quoted 11 lines
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

Mark Knecht <[email protected]> writes:

amixer cset numid=5 26,26,16384 amixer cset numid=5 28,26,16384 amixer cset numid=5 30,26,16384 amixer cset numid=5 32,26,16384 amixer cset numid=5 27,27,16384 amixer cset numid=5 29,27,16384 amixer cset numid=5 31,27,16384 amixer cset numid=5 33,27,16384

Quoted 3 lines

... is the use of 26 and 27 on the output part of the command telling the hardware to route whatever it is that you're mixing to the line out connectors on your box?

Yes. (Not outputs 1 & 2, as I erroneously stated.)

Quoted 1 line

Second, where do the inputs numbered 26-33 come from.

As far as the Multiface's analogue I/O goes, channels appear to be numbered like this:

Multiface inputs 1-8 = amixer source channels 0-7
Multiface outputs 1-8 = amixer destination channels 0-7
Multiface line (headphone) outputs = amixer destination channels 26-27
alsa_pcm:playback_1-8 = amixer source channels 26-33

So amixer cset numid=5 0,26,16384" routes the signal from input 0 to the left headphone channel. And "amixer cset numid=5 0,0,16384" routes the signal from input 0 to output 0. And

    for i in 0 2 4 6; do amixer cset numid=5 $i,0,16384; done
    for i in 1 3 5 7; do amixer cset numid=5 $i,1,16384; done

will route inputs 1+3+5+7 to output 1, and inputs 2+4+6+8 to output 2.

On playback "amixer cset numid=5 26,0,16384" routes the playback_1 source to Multiface output 1, and

    for i in 26 28 30 32; do amixer cset numid=5 $i,0,16384; done
    for i in 27 29 31 33; do amixer cset numid=5 $i,1,16384; done

routes playback_1+3+5+7 to output 1 and playback_2+4+6+8 to output 2.

Quoted 3 lines

I presume that your use of 16384 is to reduce volume so that after summing 4 channels you do not create output clipping if all the inputs hit maximum volume at the same time?

Yes. This is just a submix for headphone monitoring, so I route it to outputs 26 and 27. This is a monitor submix I use when recording with ecasound. If I were using Ardour, I'd set up a monitor submix in Ardour itself, and route outputs 1 and 2 to the headphone output with

    amixer cset numid=5 26,26,65535
    amixer cset numid=5 27,27,65535
Quoted 5 lines

If you wanted to route input 0 directly to an output, could you use a command like:

amixer cset numid=5 0,26,16384
amixer cset numid=5 1,27,16384

This routes hardware inputs 1 and 2 to the headphone outputs.

Signature · 10 lines
Roger Williams <[email protected]>
Qux Tool & Die, Middleborough, Massachusetts
// Omne tulit punctum qui misquit utile dulci //


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
#21 lore raw
In reply to Thomas Charbonnel

Is there a single amixer control to reset all of the HDSP mixer registers? I recall that there's some mechanism for resetting the HDSP (other than re-installing the module), but I can't find it now.

For now, I use scripts like this to configure the mixer paths:

#!/bin/bash

# mute all Multiface analogue I/O connections

inputs="0 1 2 3 4 5 6 7 26 27 28 29 30 31 32 33"
analogue_outputs="0 1 2 3 4 5 6 7"
headphone_outputs="26 27"

function disconnect () {
for output in "$@"; do
for input in $inputs; do
echo -n "."
amixer cset numid=5 $input,$output,0 > /dev/null
done
done
echo
}

echo -n "Disconnecting analogue outputs"
disconnect $analogue_outputs
echo -n "Disconnecting headphone outputs"
disconnect $headphone_outputs

Signature · 10 lines
Roger Williams <[email protected]>
Qux Tool & Die, Middleborough, Massachusetts
// Omne tulit punctum qui misquit utile dulci //


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
#11 lore raw
In reply to Mark Knecht
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Mark Knecht <[email protected]> writes:

This is very, very helpful.

What will be "very, very helpful" will be Thomas's TotalMix clone! :)

Quoted 3 lines

... it appears that the MultiFace has a slightly different numbering system for your analog channels, starting with 0-7 instead of what I think I have which starts with 1-8.

My "amixer controls" dump looks the same as yours. I don't know what "index=1" means, but it doesn't appear to mean that our cset indexing begins at 1. I've got to assume that Paul or Thomas already know everything there is to know about the HDSP mixer, and I hate to explore known territory, but when you don't have a map...

Quoted 2 lines

When you say 'appear to be numbered like this', how did you determine this? Was it documented somewhere? Or did you have to test yourself?

Well, it matches Marcus Andersson's notes on the ALSA HDSP page:

    input_source: 0-7 (analog), 16-23 (adat), 24-25 (spdif), 26-51 (playback)
    output_source: 0-7 (analog), 16-23 (adat) 24-25 (spdif), 26-27 (line out)

I found "output_source" confusing, but it makes sense if I rename it "destination".

Quoted 1 line

The MultiFace has 18 inputs ... so I would have expected you to list:

Some of the numbering is discontinuous (because the Multiface doesn't have the Digiface's ADAT2 range of channels), so the full Multiface I/O list is:

Inputs to HDSP Mixer
========================================================================

Multiface analogue inputs 1-8      = amixer source channels 0-7
Multiface ADAT inputs 1-8          = amixer source channels 16-23
Multiface SPDIF input              = amixer source channels 24-25
alsa_pcm:playback_1-26             = amixer source channels 26-51

Outputs from HDSP Mixer
========================================================================

Multiface analogue outputs 1-8     = amixer destination channels 0-7
Multiface ADAT outputs 1-8         = amixer destination channels 16-23
Multiface SPDIF output             = amixer destination channels 24-25
Multiface line (headphone) output  = amixer destination channels 26-27

Mapping between Multiface inputs and alsa_pcm:capture channels
========================================================================

Multiface analogue inputs 1-8      = capture_1-8
Multiface ADAT inputs 1-8          = capture_9-16
Multiface SPDIF input              = capture_17-18
Quoted 6 lines

In my case I am guessing that my physical I/O numbering will be

HDSP 9652 ADAT-1 inputs 1-8	   = amixer source channels 1-8
HDSP 9652 ADAT-2 inputs 9-16   = amixer source channels 8-16
HDSP 9652 ADAT-3 inputs 17-24  = amixer source channels 17-24
HDSP 9652 s/pdif inputs 25-26  = amixer source channels 25-26

I'm pretty sure that the amixer ranges will be 0-7, 8-15, 16-23, and 24-25, respectively. I believe that matches the Digiface (which also has its analogue headphone output on 26-27, as I recall).

Signature · 10 lines
Roger Williams <[email protected]>
Qux Tool & Die, Middleborough, Massachusetts
// Omne tulit punctum qui misquit utile dulci //


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
#14 lore raw
In reply to Roger Williams

Roger,
First, thanks for taking time to follow this through with me. This
has been helpful and I do at least feel like I'm starting to understand what the software is tying to do.

When I tried some amixer commands I was disappointed to find that
they do nothing at all on my machine. No command I tried seems to control volume to my headphones or speakers at all.

I guess the HDSP 9652 is not supported at this time. Makes me feel
like I bought the wrong product.

Anyway, I will continue to study and understand this stuff and hope
that one day some of these features actually work. Thanks for your help!

Cheers,
Mark

Quoted 114 lines · Roger Williams
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Mark Knecht <[email protected]> writes:

I can think of my HDSP mixer as a device with 52 inputs and 26 outputs.

In the case of the 9652, you don't have headphone outputs, so you don't have the Digiface's 27th and 28th outputs.

Quoted 3 lines

1) 26 mixer inputs come from the HDSP's physical inputs
- numbered 0-25 in the mixer
- called Alsa_pcm:capture_1 - 26 in Jack

Yup.

Quoted 3 lines

2) 26 mixer inputs come from the Alsa:playback group
- numbered 26-51 in the mixer
- called Alsa_pcm:playback_1 - 26 in Jack

Yup.

Quoted 2 lines

1) 26 mixer outputs come from the mixer
- numbered 0-25 out of the mixer

Yup.

Quoted 2 lines

By default, the HDSP driver then takes the Alsa_pcm:playback group and hooks them to (more or less) matching output destinations:

Perhaps, but I'm not sure about that. I always explicitly set up the HDSP mixer routes. I just removed all of my ALSA modules, removed the HDSP Cardbus card, power-cycled the Multiface, and reinstalled everything; and I had to issue an "amixer cset numid=5 26,0,32768" command to connect alsa_pcm:playback_1 to Multiface output 1.

Quoted 3 lines

so that if I connect capture_1 to playback_1 then whatever comes in on the ADAT-1, channel 0 input will get sent back out on ADAT-1, channel 1 output.

You don't connect capture_1 to playback_1, because playback_1 is a signal coming from ALSA, going into the HDSP mixer. But you _can_ connect the signal arriving on the ADAT1:1 input (which _also_ drives ALSA's capture_1 input) to the ADAT1:1 output with an "amixer cset numid=5 0,0,32768" command. (But playback_1 isn't routed to the ADAT1:1 output except by coincidence or a default setting -- playback_1 doesn't have anything to do with your ADAT1:1 input -> ADAT1:1 output connection.)

Quoted 7 lines

amixer cset numid=5 0,0,32768
amixer cset numid=5 1,1,32768
...
amixer cset numid=5 25,25,32768

which would route each physical input to each physical output, 1 for 1, at a volume of unity gain. (As per Marcus's notes again.)

Yup.

Quoted 5 lines

What is not at all clear yet is whether a single input can go to multiple outs with different gains. For instance, if I execute:

amixer cset numid=5 0,0,10000
amixer cset numid=5 0,1,30000

Sure, that works just fine. I'll run a combined setup like this:

    Monitor submix
    ==============================
    amixer cset numid=5 0,26,20000
    amixer cset numid=5 1,27,20000
    amixer cset numid=5 2,26,15000
    amixer cset numid=5 3,27,15000
    amixer cset numid=5 4,26,10000
    amixer cset numid=5 5,27,10000

    DAT safety recording
    ==============================
    amixer cset numid=5 0,24,16384
    amixer cset numid=5 1,25,16384
    amixer cset numid=5 2,24,12288
    amixer cset numid=5 3,25,12288
    amixer cset numid=5 4,24,8192
    amixer cset numid=5 5,25,8192

The changes I make in the first group (headphones submix) don't have any effect on the signal being recorded by the DAT, which is set up in the second group.

Quoted 3 lines

I am attempting to take physical input 0 and sending it to both the left and right outputs, but at different volumes. Is this legal?

Sure. Consider RME's description of TotalMix, which is "nothing more" than a software interface (OK, I'm a hardware guy) to the HDSP mixer:

- setting up delay-free submixes (headphone mixes)
- unlimited routing of inputs and outputs (free utilisation, patchbay function)
- distributing signals to several outputs at a time
- simultaneous playback of different programs over only one stereo channel
- mixing of the input signal to the playback signal (complete ASIO Direct Monitoring)
- integration of external devices (effects etc). in real-time
- mixdown of three ADAT inputs to one (realizing two additional inputs)

RME calls the HDSP mixer in the Multiface a "720 channel" mixer, and the one in the Digiface "1456 channels". (The 9652 would be 1352 channels, because it doesn't have the headphone outputs.) For the Multiface, that's [18 hardware input channels + 18 playback channels] x 20 hardware output channels. (There are only 18 playback channels because playback_8-15 aren't used in the Multiface.)

Quoted 4 lines

In my case, I use Alsa_pcm:playback_1/2 for my main speakers, and playback_3/4 for my headphones. The problem I've been having is that I didn't know how to set the volume on my speakers with no mixer. Using this information, I could execute:

Quoted 23 lines
Quoted 5 lines

amixer cset numid=5 26,0,3000
amixer cset numid=5 27,1,3000

and now my playback_1/2 should come out of my speakers, but at considerably reduced volumes.

Yup.

Signature · 14 lines
Roger Williams <[email protected]>
Qux Tool & Die, Middleborough, Massachusetts
// Omne tulit punctum qui misquit utile dulci //


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en

#13 lore raw
In reply to Mark Knecht
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Mark Knecht <[email protected]> writes:

I can think of my HDSP mixer as a device with 52 inputs and 26 outputs.

In the case of the 9652, you don't have headphone outputs, so you don't have the Digiface's 27th and 28th outputs.

Quoted 3 lines

1) 26 mixer inputs come from the HDSP's physical inputs
- numbered 0-25 in the mixer
- called Alsa_pcm:capture_1 - 26 in Jack

Yup.

Quoted 3 lines

2) 26 mixer inputs come from the Alsa:playback group
- numbered 26-51 in the mixer
- called Alsa_pcm:playback_1 - 26 in Jack

Yup.

Quoted 2 lines

1) 26 mixer outputs come from the mixer
- numbered 0-25 out of the mixer

Yup.

Quoted 2 lines

By default, the HDSP driver then takes the Alsa_pcm:playback group and hooks them to (more or less) matching output destinations:

Perhaps, but I'm not sure about that. I always explicitly set up the HDSP mixer routes. I just removed all of my ALSA modules, removed the HDSP Cardbus card, power-cycled the Multiface, and reinstalled everything; and I had to issue an "amixer cset numid=5 26,0,32768" command to connect alsa_pcm:playback_1 to Multiface output 1.

Quoted 3 lines

so that if I connect capture_1 to playback_1 then whatever comes in on the ADAT-1, channel 0 input will get sent back out on ADAT-1, channel 1 output.

You don't connect capture_1 to playback_1, because playback_1 is a signal coming from ALSA, going into the HDSP mixer. But you _can_ connect the signal arriving on the ADAT1:1 input (which _also_ drives ALSA's capture_1 input) to the ADAT1:1 output with an "amixer cset numid=5 0,0,32768" command. (But playback_1 isn't routed to the ADAT1:1 output except by coincidence or a default setting -- playback_1 doesn't have anything to do with your ADAT1:1 input -> ADAT1:1 output connection.)

Quoted 7 lines

amixer cset numid=5 0,0,32768
amixer cset numid=5 1,1,32768
...
amixer cset numid=5 25,25,32768

which would route each physical input to each physical output, 1 for 1, at a volume of unity gain. (As per Marcus's notes again.)

Yup.

Quoted 5 lines

What is not at all clear yet is whether a single input can go to multiple outs with different gains. For instance, if I execute:

amixer cset numid=5 0,0,10000
amixer cset numid=5 0,1,30000

Sure, that works just fine. I'll run a combined setup like this:

    Monitor submix
    ==============================
    amixer cset numid=5 0,26,20000
    amixer cset numid=5 1,27,20000
    amixer cset numid=5 2,26,15000
    amixer cset numid=5 3,27,15000
    amixer cset numid=5 4,26,10000
    amixer cset numid=5 5,27,10000

    DAT safety recording
    ==============================
    amixer cset numid=5 0,24,16384
    amixer cset numid=5 1,25,16384
    amixer cset numid=5 2,24,12288
    amixer cset numid=5 3,25,12288
    amixer cset numid=5 4,24,8192
    amixer cset numid=5 5,25,8192

The changes I make in the first group (headphones submix) don't have any effect on the signal being recorded by the DAT, which is set up in the second group.

Quoted 3 lines

I am attempting to take physical input 0 and sending it to both the left and right outputs, but at different volumes. Is this legal?

Sure. Consider RME's description of TotalMix, which is "nothing more" than a software interface (OK, I'm a hardware guy) to the HDSP mixer:

- setting up delay-free submixes (headphone mixes)
- unlimited routing of inputs and outputs (free utilisation, patchbay function)
- distributing signals to several outputs at a time
- simultaneous playback of different programs over only one stereo channel
- mixing of the input signal to the playback signal (complete ASIO Direct Monitoring)
- integration of external devices (effects etc). in real-time
- mixdown of three ADAT inputs to one (realizing two additional inputs)

RME calls the HDSP mixer in the Multiface a "720 channel" mixer, and the one in the Digiface "1456 channels". (The 9652 would be 1352 channels, because it doesn't have the headphone outputs.) For the Multiface, that's [18 hardware input channels + 18 playback channels] x 20 hardware output channels. (There are only 18 playback channels because playback_8-15 aren't used in the Multiface.)

Quoted 10 lines

In my case, I use Alsa_pcm:playback_1/2 for my main speakers, and playback_3/4 for my headphones. The problem I've been having is that I didn't know how to set the volume on my speakers with no mixer. Using this information, I could execute:

amixer cset numid=5 26,0,3000
amixer cset numid=5 27,1,3000

and now my playback_1/2 should come out of my speakers, but at considerably reduced volumes.

Yup.

Signature · 10 lines
Roger Williams <[email protected]>
Qux Tool & Die, Middleborough, Massachusetts
// Omne tulit punctum qui misquit utile dulci //


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
#16 lore raw
In reply to Mark Knecht

Mark, have you looked at the block diagrams of the HDSP mixer in the HDSP manuals, or read the technical overview of the HDSP mixer hardware at http://www.rme-audio.de/english/techinfo/hdsp_tmhard.htm ?

They provide a fairly clear picture of what the hardware can do; but it doesn't map exactly to the amixer behaviour I see. Specifically, I haven't figured out how to adjust the output faders (between each output and its dedicated buss) or the input pans (each input is shown as driving a pair of busses through a fader and a pan, rather than through two independent faders).

Perhaps Thomas knows all the details of this?

Signature · 10 lines
Roger Williams <[email protected]>
Qux Tool & Die, Middleborough, Massachusetts
// Omne tulit punctum qui misquit utile dulci //


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
#17 lore raw
Quoted 7 lines · Roger Williams

They provide a fairly clear picture of what the hardware can do; but it doesn't map exactly to the amixer behaviour I see. Specifically, I haven't figured out how to adjust the output faders (between each output and its dedicated buss) or the input pans (each input is shown as driving a pair of busses through a fader and a pan, rather than through two independent faders).

The panners and the output faders are mapped to the matrix mixer controls by the TotalMix software. They have no correspondence in hardware.

Marcus

-------------------------------------------------------
This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en

#18 lore raw
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Marcus Andersson <[email protected]> writes:

The panners and the output faders are mapped to the matrix mixer controls by the TotalMix software. They have no correspondence in hardware.

Thanks for the confirmation, Marcus. That's what I suspected.

Signature · 10 lines
Roger Williams <[email protected]>
Qux Tool & Die, Middleborough, Massachusetts
// Omne tulit punctum qui misquit utile dulci //


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
#15 lore raw
In reply to Mark Knecht
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Mark Knecht <[email protected]> writes:

When I tried some amixer commands I was disappointed to find that
they do nothing at all on my machine. No command I tried seems to control volume to my headphones or speakers at all.

I guess the HDSP 9652 is not supported at this time. Makes me feel
like I bought the wrong product.

Bummer. It seems odd that the ALSA driver (apparently) works, but amixer doesn't. Out of curiousity, what sort of outboard converters are you using for your analogue outputs?

Signature · 10 lines
Roger Williams <[email protected]>
Qux Tool & Die, Middleborough, Massachusetts
// Omne tulit punctum qui misquit utile dulci //


-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en