From: Takashi Iwai <tiwai@suse.de>
To: Lars Heineken <Lars.Heineken@gmx.de>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: arecord -D cards.pcm.iec958
Date: Fri, 31 May 2002 13:01:28 +0200 [thread overview]
Message-ID: <s5hhekoh987.wl@alsa2.suse.de> (raw)
In-Reply-To: <20020528192245.7093ae73.Lars.Heineken@gmx.de>
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
next prev parent reply other threads:[~2002-05-31 11:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-28 17:22 arecord -D cards.pcm.iec958 Lars Heineken
2002-05-31 11:01 ` Takashi Iwai [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-05-28 17:31 Lars Heineken
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hhekoh987.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=Lars.Heineken@gmx.de \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.