From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: arecord -D cards.pcm.iec958 Date: Fri, 31 May 2002 13:01:28 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <20020528192245.7093ae73.Lars.Heineken@gmx.de> Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <20020528192245.7093ae73.Lars.Heineken@gmx.de> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Lars Heineken Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Tue, 28 May 2002 19:22:45 +0200, Lars Heineken wrote: > > 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 ? 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