All of lore.kernel.org
 help / color / mirror / Atom feed
* Strange bug in .asoundrc ??
@ 2007-11-19 11:06 Dominique Larchey-Wendling
  2007-11-19 14:20 ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: Dominique Larchey-Wendling @ 2007-11-19 11:06 UTC (permalink / raw)
  To: Alsa-devel

Dear all,

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. It have alsa-lib version
1.0.14-0.4.rc3.fc7 installed on FC7.

Is this a know bug of alsa-lib ? It is strange because this bug does not
   show up with pcm.hw for example.

--- .asoundrc ------------------------

ctl.!hw {
	@args [ CARD ]
	@args.CARD {
		type string
		default "0"
	}
	type hw
	card $CARD
}

ctl.rha  "hw"
ctl.tata "hw:0"
ctl.toto "hw:1"

------------------------------------------------


rha % amixer -D rha info
Card rha 'Intel'/'HDA Intel at 0xfebfc000 irq 16'
    Mixer name    : 'SigmaTel STAC9200'
    Components    : 'HDA:83847690'
    Controls      : 6
    Simple ctrls  : 4

rha % amixer -D tata info
ALSA lib control.c:781:(snd_ctl_open_conf) Invalid type for CTL tata
definition
amixer: Control device tata open error: Invalid argument

rha % amixer -D toto info
ALSA lib control.c:781:(snd_ctl_open_conf) Invalid type for CTL toto
definition
amixer: Control device toto open error: Invalid argument

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-19 15:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-19 11:06 Strange bug in .asoundrc ?? Dominique Larchey-Wendling
2007-11-19 14:20 ` Clemens Ladisch
2007-11-19 15:06   ` Dominique Larchey-Wendling
2007-11-19 15:43     ` Clemens Ladisch

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.