Re: Strange bug in .asoundrc ??

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

 



Dominique Larchey-Wendling wrote:
> It seems that neither the current ctl.hw function nor the following
> simplified function ctl.!hw work correctly when the argument CARD is
> given to the function. It works however when no argument is given as the
> following test examples show it.
> 
> Is this a know bug of alsa-lib ? It is strange because this bug does not
>    show up with pcm.hw for example.
> 
> ctl.rha  "hw"
> ctl.tata "hw:0"
> 
> rha % amixer -D rha info
> Card rha 'Intel'/'HDA Intel at 0xfebfc000 irq 16'
> ...
> rha % amixer -D tata info
> ALSA lib control.c:781:(snd_ctl_open_conf) Invalid type for CTL tata definition

Using a string with parameters works only with PCM devices; the code in
alsa-lib that handles other device types doesn't bother to try to look
the string up.

It appears this behaviour is by design.

To get your own definition, write something like this:
  ctl.tata { type hw card 0 }


Regards,
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux