On Tue, 23 Jun 2009 16:27:34 -0700 (PDT)
"S. Aguinaga" <sa...@yahoo.com> wrote:

> Hello,
> 
> *A wave file plays on the built-in audio  "aplay -v waveoutput.wave" without 
> issues, but if I route this to my Layla3G card using the command: 
>     "aplay -v -D layla3g waveoutput.wave" this is the output/error message:
>  
>     Playing WAVE 'waveoutput.wave' : Signed 16 bit Little Endian, Rate 22050 
> Hz, Mono
>     aplay: set_params:959: Channels count non available

It happens because the card does not support mono S16_LE. It must be stereo.


>     I've searched the forums and while I have found a work-around, I haven't 
> found a satisfactory answer online that points to my error ( which I presume 
> is with my .asoundrc file).  Here is my ~/.asoundrc file (bellow), to it I 
> added the "channels 2" line and rebooted the system, but it still fails.

There's no need to reboot: .asoundrc is read each time an app is loaded.


> ** If I try the following, it works: aplay -D plughw:1,0 waveoutput.wave 

Yes, with plug it either converts the data to stereo or S32_LE.


> *** The purpose of this task is to figure out what the maximum output voltage 
> of the Echo Layla3G is.  Do any of you have a suggestion to accomplish this 
> in a more elegant way?
> 
> 
> ## my .asoundrc file ######################
> # soundcard and device to use
> pcm.layla3g {
>     type   hw
>     card   1
>     device 0
>     channels 2
> }

Try this:

pcm.layla3g {
        type            plug
        slave.pcm       "hw:1"
}
ctl.gina3g {
        type            hw
        card            0
}


-- 
Giuliano.

------------------------------------------------------------------------------
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to