Re: .asoundrc for layla3g && aplay error: set_params:959: Channels count non available

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you Giuliano!!

BTW: do you have a recommendation to test/check the maximum output level of the Layla3G.  The specs say that is capable  of 114dB( A weighted) ... I used alsamixer to turn up the volume all the way up for this device, but when I measure the output ... I got something like 300mV(rms) and I would expect this to be about 6.5-7.5Vrms (max).

// Thank you again


From: Giuliano Pochini <pochini@xxxxxxxx>
To: S. Aguinaga <sa_jr@xxxxxxxxx>
Cc: alsa-user@xxxxxxxxxxxxxxxxxxxxx
Sent: Wednesday, June 24, 2009 4:19:41 PM
Subject: Re: .asoundrc for layla3g && aplay error: set_params:959: Channels count non available

On Tue, 23 Jun 2009 16:27:34 -0700 (PDT)
"S. Aguinaga" <sa_jr@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux