> by fiddling around I'm a step further now, but there are > strange things: > The spdif in on the Audiophle indeed does work. > But in order to capture the digital input stream in a wav file > I have to give the command (the -v can be omitted of course) > arecord -v -c 12 -f S16_LE -r 44100 test.wav > > Substituting the "-f S16_LE -r 44100" by "-f cd" > does NOT work and produces an empty file (huh?!). > > Further examination of the recorded file showed that channels > 1-8 are completely empty, and the audio data is in channels 9, > 10, 11, 12.
That's correct, 9 and 10 are the spdif input, 11 and 12 are the outputs of the internal (stereo) mixer. To access the internal mixer you should use envy24control, a utility that is part of the alsa-tools package (which you can download from the alsa web site). If you want to record from spdif you will also needs envy24control to sync the card to the spdif input (look at "Hardware Settings" and then "Master Clock"). > This is the reason why a simple command with -c2 doesn't work. Arecord > then would take channels 1 and 2, and they are empty. Yes, and the internal mixer won't help you there as (I think) it is not a full routing matrix. > Well, what should I do with a 12-channel audio file? I simply want the > stereo spdif input in a stereo wav file, 2 channels. Can arecord pick up > selected channels, here 9-12? Or 11 and 12? > > And aplay doesn't play the files produced by itself > this way... :-( [yes, the chipset (ice1712) requires alsa to send 10 channels and/or receive 12 all the time and the driver itself does not hide this from user space] I would recommend against using arecord, it is more of a demo than a full recording application. If you are comfortable at the command line level I would suggest ecasound, it can do full routing (and a lot more). It will take a little study and experimentation to understand what it can do but it is very powerful. There _are_ options you should be able to use with arecord but they do not seem to be working. I just tried with a Midiman 1010 (uses the same internal chipset) and they did not work. The first would be to specify "-d spdif" as the device you are recording from. That, in all the ice1712 cards that I know of, should route the proper channels to the first two and then the -c 2 should work fine. But it does not, at least in my experiment here at home. The configuration file for ice1712 in /usr/share/alsa/cards seems to do the right thing but all I get is silence (alsa gurus? this should be working, right?). The second is that I seem to remember that it is possible to specify a translation (or routing) of channels in the command line when using the plughw device but I can't remember what the syntax is and it is (AFAIK) not documented anywhere except in the archives of this list. Sorry to not be of more help. -- Fernando ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user
