Discussion:
[Alsa-user] alsa problem (snd_pcm_open_noupdate) Unknown PCM default
Tony Cantor
2006-12-16 20:54:13 UTC
Permalink
hello everyone,
i have an embedded board that im trying to run alsa on, but unfortunately im
having trouble. i searched the list for similar problems and i found this:
http://sourceforge.net/mailarchive/message.php?msg_id=36898685
i have the exact same problems as this guy, however putting (what i think*
are) the alsa configure files in the /usr/share/alsa folder on my embedded
filesystem doesnt solve the problem that when i run:
# aplay
ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default
aplay: main:547: audio open error: No such file or directory

can anyone tell me where i need to put these configuration files or tell me
exactly what files the term "alsa configuration files" refers to?

btw, im using a gumstix embedded board from www.gumstix.com (documentation
at http://docwiki.gumstix.org/Main_Page)

thank you so much to anyone who can spare the time to help me.

tony
Clemens Ladisch
2006-12-21 15:33:02 UTC
Permalink
Post by Tony Cantor
i have an embedded board that im trying to run alsa on, but unfortunately im
http://sourceforge.net/mailarchive/message.php?msg_id=36898685
i have the exact same problems as this guy, however putting (what i think*
are) the alsa configure files in the /usr/share/alsa folder on my embedded
# aplay
ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default
Did you include all the subdirectories?

Can you use strace to see where alsa-lib tries to find them?


Regards,
Clemens
Clemens Ladisch
2006-12-22 08:23:25 UTC
Permalink
(please don't top-post)
# ls
alsa.conf cards pcm sndo-mixer.alisp
# cd ../pcm
# ls
center_lfe.conf front.conf side.conf surround51.conf
....
does this look right?
Yes.
im working on getting strace to run on the gumstix, its not building
correctly at the moment, but ill post its output once i get it running.
It seems the files are not found for some reason.
Try adding a printf() to the snd_input_stdio_open() function in
alsa-lib/src/input.c to see which files it tries to open.


Regards,
Clemens
Tony Cantor
2006-12-23 03:18:35 UTC
Permalink
Post by Clemens Ladisch
It seems the files are not found for some reason.
Try adding a printf() to the snd_input_stdio_open() function in
alsa-lib/src/input.c to see which files it tries to open.
ok, so i got strace to build by hacking a couple lines in its source, but
it doesnt seem to work correctly anymore, im not sure, since ive never used
it. heres what i get when i try to use it:

# strace -estat,open,close,read aplay -l
syscall: unknown syscall trap 0xef000000

i also tried adding printf to input.c:

int snd_input_stdio_open(snd_input_t **inputp, const char *file, const char
*mode)
{
int err;
printf("trying to open: %s\n", file);
FILE *fp = fopen(file, mode);
if (!fp) {
//SYSERR("fopen");
return -errno;
}
err = snd_input_stdio_attach(inputp, fp, 1);
if (err < 0)
fclose(fp);
return err;
}

unfortunately this doesnt seem to get called when i run amixer or aplay, im
not sure whats going on here. basically when i run aplay i get the same
output as before without any new printf statements.

are there any other places that i can add some printf statements to try and
figure out where its looking for the files?

thanks for your help,
tony

Loading...