On Thu, 31 Jul 2003, Karl Fogel wrote:

> I have a M-Audio/Delta Audiophile 2496 card, running under Debian
> GNU/Linux 2.6.0-test1 (hence ALSA 0.9.4, using ice1712).  I'm trying
> to record SPDIF input from a DAT player, to make WAV files on disk
> (i.e., bit-for-bit copy).
> 
> Analog input is working fine:
> 
>    $ arecord -f cd -t wav -D plug:hw x.wav
>    $ aplay x.wav
>    [ ... hear the music ... ]
>    $ 
> 
> (Much thanks to Clemens Ladisch for helping me to get that far!)
> 
> However, I haven't gotten digital input working yet; seems I'm missing
> some configuration magic?
> 
>    $ arecord -f cd -t wav -D plug:spdif x.wav
>    Recording WAVE 'x.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
>    ALSA lib pcm_params.c:2094:(snd_pcm_hw_refine_slave) Slave PCM not usable
>    arecord: set_params:783: Broken configuration for this PCM: \
>       no configurations available
> 
>    $ arecord -f cd -t wav -D plug:iec958 x.wav
>    Recording WAVE 'x.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
>    ALSA lib pcm_params.c:2094:(snd_pcm_hw_refine_slave) Slave PCM not usable
>    arecord: set_params:783: Broken configuration for this PCM: \
>      no configurations available
> 
>    $ arecord -f cd -t wav -D spdif x.wav
>    Recording WAVE 'x.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
>    arecord: set_params:783: Broken configuration for this PCM: \
>      no configurations available
> 
>    $ arecord -f cd -t wav -D iec958 x.wav
>    Recording WAVE 'x.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
>    arecord: set_params:783: Broken configuration for this PCM: \
>      no configurations available
> 
> Has anyone done this, with the Audiophile or any other SPDIF-producing
> card?  Is there some custom configuration I should put in my
> ~/.asoundrc?  I've been Googling on the above (and various other)
> error messages, but so far the suggestions I've seen haven't solved
> the problem...

Known bug. The problem is that playback and capture channels are 
assymetric for the envy24 chip and we cannot define dual configuration 
separate for playback and capture.

You may change the line in /usr/share/alsa/cards/ICE1712.conf from

slave.channels 10

to 

slave.channels 12

and capture will work, but playback will failure.

Or define new S/PDIF PCM for capture in ~/.asoundrc:

pcm.spdif_cap {
        ... copy contents of ICE1712.pcm.iec958.0 {} from ICE1712.conf here ...
        ... and replace 10 with 12 ...
}

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to