All of lore.kernel.org
 help / color / mirror / Atom feed
* asoundrc parse error (bug)
@ 2002-05-09  1:19 Paul Davis
  2002-05-09  7:26 ` Jaroslav Kysela
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Davis @ 2002-05-09  1:19 UTC (permalink / raw)
  To: alsa-devel

i mentioned a month or two ago that the parsing of asoundrc didn't
handle things that were apparently integers unless they were
quoted. abramo claimed this was fixed, and indeed it is in top level
constructs. but here's one:

pcm.9652 {
	type hw
	card 2
}

pcm.st {
       type plug
       slave.pcm 9652
       ttable.0.24 1
       ttable.1.25 1
}       

this will fail unless you put the "9652" for the slave.pcm definition
in quotes. the error is:

ALSA lib pcm.c:1621:(snd_pcm_open_conf) Invalid type for PCM definition (id: pcm, value: 9652)
arecord: main:447: audio open error: Invalid argument

further, this:

pcm.spdif {
       type plug
       slave.pcm "9652"
       ttable.0.24 1
       ttable.1.25 1
}       

will fail like this:

ALSA lib conf.c:1131:(parse_def) spdif is not a compound
ALSA lib conf.c:1520:(snd_config_load1) _toplevel_:16:11:Invalid argument
ALSA lib conf.c:2616:(snd_config_hook_load) /home/pbd/.asoundrc may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:2463:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
ALSA lib conf.c:2859:(snd_config_update_r) hooks failed, removing configuration
aplay: pcm_list:248: snd_config_update: Invalid argument
pbd[555]>aplay -L
ALSA lib conf.c:1131:(parse_def) spdif is not a compound
ALSA lib conf.c:1520:(snd_config_load1) _toplevel_:16:11:Invalid argument
ALSA lib conf.c:2616:(snd_config_hook_load) /home/pbd/.asoundrc may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:2463:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument
ALSA lib conf.c:2859:(snd_config_update_r) hooks failed, removing configuration
aplay: pcm_list:248: snd_config_update: Invalid argument

simply changing "spdif" to "st" will fix that error. it seems that
"spdif" is recognized as a keyword, or something like that.

--p

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net

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

end of thread, other threads:[~2002-05-09 13:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-09  1:19 asoundrc parse error (bug) Paul Davis
2002-05-09  7:26 ` Jaroslav Kysela
2002-05-09 13:05   ` Paul Davis

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.