Re: alsa problem (snd_pcm_open_noupdate) Unknown PCM default

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

 



On 12/22/06, Clemens Ladisch <cladisch@xxxxxxxxxxxx> wrote:

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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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