All of lore.kernel.org
 help / color / mirror / Atom feed
* arecord -D cards.pcm.iec958
@ 2002-05-28 17:22 Lars Heineken
  2002-05-31 11:01 ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Heineken @ 2002-05-28 17:22 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* arecord -D cards.pcm.iec958
@ 2002-05-28 17:31 Lars Heineken
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Heineken @ 2002-05-28 17:31 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: arecord -D cards.pcm.iec958
  2002-05-28 17:22 arecord -D cards.pcm.iec958 Lars Heineken
@ 2002-05-31 11:01 ` Takashi Iwai
  0 siblings, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2002-05-31 11:01 UTC (permalink / raw)
  To: Lars Heineken; +Cc: alsa-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-05-31 11:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-28 17:22 arecord -D cards.pcm.iec958 Lars Heineken
2002-05-31 11:01 ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2002-05-28 17:31 Lars Heineken

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.