arecord -D cards.pcm.iec958
Hi !
I finaly managed to capture sound from spdif-in using my Terratec EWX24/96 (ICE1712)
Doing it this way: arecord -D cards.pcm.iec958 -c 12 -r 44100 -f S32_LE test.wav // all other ways failed, as you can only record from spdif when using S32_LE and 12 channels.
My problem now: This is a twelve track, 44 Hz 32bit Little Endian Wave ?
I have no idea what to do next.
I would like to record a single stereo signal from spdif-in. How can I accomplish that ?
Regards,
Lars.
PS: I searched the while for hours but got no closer than this. Recording from -D 0 works fine, but records only from analog-in, even when the sliders (AND captures) in alsamixer are set for recording spdif ONLY. (?)
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
At Tue, 28 May 2002 19:22:45 +0200,
Quoted 5 lines · Lars Heineken
Hi !
I finaly managed to capture sound from spdif-in using my Terratec EWX24/96 (ICE1712)
Quoted 7 lines
Doing it this way: arecord -D cards.pcm.iec958 -c 12 -r 44100 -f
S32_LEtest.wav // all other ways failed, as you can only record from spdif when usingS32_LEand 12 channels.My problem now: This is a twelve track, 44 Hz 32bit Little Endian Wave ?
I have no idea what to do next.I would like to record a single stereo signal from spdif-in. How can I accomplish that ?
afaik, the iec958 pcm device for ice1712 is not correctly set up in /usr/share/alsa/cards/IEC1712.conf.
this is because ice1712 needs _always_ 10 channels, and only the last twos are used for spdif.
in the config file above, it's defined using "route" pcm type, but it seems not working well.
an easy solution is to define a pcm device by yourself, for example, by adding the following to ~/.asoundrc
pcm.ice_spdif {
type plug
ttable.0.8 1
ttable.1.9 1
slave.pcm {
type hw
card 0
device 0
}
}where the card number depends on your hardware setting.
then you can play/record via -Dice_spdif option.
this is always covered by "plug" device, so all formats/rates are possible. this is not feasible in all cases, because sometime you might want to access the hardware without any conversion in software, but the application cannot know whether it's really supported.
Takashi
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm