[alsa-devel] Problems running "amixer"

Hello,
I have cross-compiled alsa-utils (alsa-utils-1.0.13) and alsa-lib (alsa-lib-1.0.13). But when I ran the "amixer" I found some errors. I am pasting the same for your reference. # ./amixer ALSA lib control.c:910:(snd_ctl_open_noupdate) Invalid CTL default amixer: Mixer attach default error: No such file or directory
The snddevices script creates a node "/dev/snd" and the device number of these nodes matches with the ones registered in "/proc/asound".
Can anyone point me to the reason why the above mentioned error occurs? If any more information is required over the way my sound nodes are registered with the system I shall post it.
Regards; Aadish

Hello Clemens,
I have the "alsa" folder with the files alsa.conf. My "amixer" utility has been copied under "/bin". I followed a mail thread which said to load "share" folder under "/usr". But even with this the problem persisted.
I'm just pasting here the contents of my /usr/share # ls share/ aclocal alsa locale # ls -la share/alsa/ drwxr-xr-x 4 root root 1024 May 12 2010 . drwxr-xr-x 5 root root 1024 May 12 2010 .. -rw-r--r-- 1 root root 7701 May 12 2010 alsa.conf drwxr-xr-x 3 root root 2048 May 12 2010 cards drwxr-xr-x 2 root root 1024 May 12 2010 pcm -rw-r--r-- 1 root root 3205 May 12 2010 sndo-mixer.alisp
Just to make sure, do I have to install my entire staging area created through install of alsa-lib and alsa-utils in to the /usr/share?
Regards; Aadish
On Wed, Jul 7, 2010 at 6:16 PM, Clemens Ladisch clemens@ladisch.de wrote:
Adish Kuvelker wrote:
# ./amixer ALSA lib control.c:910:(snd_ctl_open_noupdate) Invalid CTL default
Apparently, alsa-lib has not been installed correctly, i.e., /usr/share/alsa/alsa.conf and other files in this directory are missing.
Regards, Clemens

Hello,
I don't have this file ".asoundrc" in my ramdisk. Do I need this?
Regards Aadish
On Wed, Jul 7, 2010 at 6:38 PM, Adish Kuvelker adkuvi@gmail.com wrote:
Hello Clemens,
I have the "alsa" folder with the files alsa.conf. My "amixer" utility has been copied under "/bin". I followed a mail thread which said to load "share" folder under "/usr". But even with this the problem persisted.
I'm just pasting here the contents of my /usr/share # ls share/ aclocal alsa locale # ls -la share/alsa/ drwxr-xr-x 4 root root 1024 May 12 2010 . drwxr-xr-x 5 root root 1024 May 12 2010 .. -rw-r--r-- 1 root root 7701 May 12 2010 alsa.conf drwxr-xr-x 3 root root 2048 May 12 2010 cards drwxr-xr-x 2 root root 1024 May 12 2010 pcm -rw-r--r-- 1 root root 3205 May 12 2010 sndo-mixer.alisp
Just to make sure, do I have to install my entire staging area created through install of alsa-lib and alsa-utils in to the /usr/share?
Regards; Aadish
On Wed, Jul 7, 2010 at 6:16 PM, Clemens Ladisch clemens@ladisch.de wrote:
Adish Kuvelker wrote:
# ./amixer ALSA lib control.c:910:(snd_ctl_open_noupdate) Invalid CTL default
Apparently, alsa-lib has not been installed correctly, i.e., /usr/share/alsa/alsa.conf and other files in this directory are missing.
Regards, Clemens

A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?
Adish Kuvelker wrote:
I don't have this file ".asoundrc" in my ramdisk. Do I need this?
No.
ALSA lib control.c:910:(snd_ctl_open_noupdate) Invalid CTL default
I just tried without alsa.conf, and alsa-lib then outputs an additional error message in this case; so this is not your problem.
Can you try "strace amixer"?
Regards, Clemens

A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?
I'm sorry for messing it up....
I just tried without alsa.conf, and alsa-lib then outputs an additional error message in this case; so this is not your problem.
Can you try "strace amixer"?
I tried with the strace and got the bug. Now it's working fine. Just that alsa.cong and related files weren't at right location in ramdisk file system. Thanks a lot Clemens.
Regards; Aadish
participants (2)
-
Adish Kuvelker
-
Clemens Ladisch