Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* amixer issues
@ 2006-04-01 16:07 Adrian McMenamin
  2006-04-04 16:17 ` Clemens Ladisch
  0 siblings, 1 reply; 8+ messages in thread
From: Adrian McMenamin @ 2006-04-01 16:07 UTC (permalink / raw)
  To: alsa-devel

I have a working sound card with a working (if basic) PCM mixer:

/proc/asound # cat cards
0 [AICA           ]: snd_card_aica - AICA
                     Yamaha AICA Super Intelligent Sound Processor for
SEGA Dreamcast


but when I try to use amixer nothing seems to work:

/ # amixer -c 0
Invalid card number.
Usage: amixer <options> command


any clues?



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

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

* Re: amixer issues
  2006-04-01 16:07 amixer issues Adrian McMenamin
@ 2006-04-04 16:17 ` Clemens Ladisch
  2006-04-04 16:30   ` Lee Revell
  2006-04-04 18:07   ` Adrian McMenamin
  0 siblings, 2 replies; 8+ messages in thread
From: Clemens Ladisch @ 2006-04-04 16:17 UTC (permalink / raw)
  To: Adrian McMenamin; +Cc: alsa-devel

Adrian McMenamin wrote:
> I have a working sound card with a working (if basic) PCM mixer:
> 
> /proc/asound # cat cards
> 0 [AICA           ]: snd_card_aica - AICA
>                      Yamaha AICA Super Intelligent Sound Processor for SEGA Dreamcast
> 
> but when I try to use amixer nothing seems to work:
> 
> / # amixer -c 0
> Invalid card number.
> Usage: amixer <options> command

Does /dev/snd/controlC0 exist, and does it point to the control device
listed in /proc/asound/devices?


Regards,
Clemens


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

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

* Re: amixer issues
  2006-04-04 16:17 ` Clemens Ladisch
@ 2006-04-04 16:30   ` Lee Revell
  2006-04-04 16:56     ` Clemens Ladisch
  2006-04-04 18:07   ` Adrian McMenamin
  1 sibling, 1 reply; 8+ messages in thread
From: Lee Revell @ 2006-04-04 16:30 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: Adrian McMenamin, alsa-devel

On Tue, 2006-04-04 at 18:17 +0200, Clemens Ladisch wrote:
> Does /dev/snd/controlC0 exist, and does it point to the control device
> listed in /proc/asound/devices?
> 

Can you please clarify?  How does a device node "point to" something?

$ ls -al /dev/snd/controlC0
crw-rw---- 1 root audio 116, 0 Apr  1 10:06 /dev/snd/controlC0

$ cat /proc/asound/devices 
  0: [ 0]   : control
  1:        : sequencer
  4: [ 0- 0]: hardware dependent
  6: [ 0- 2]: hardware dependent
  8: [ 0- 0]: raw midi
  9: [ 0- 1]: raw midi
 10: [ 0- 2]: raw midi
 11: [ 0- 3]: raw midi
 16: [ 0- 0]: digital audio playback
 18: [ 0- 2]: digital audio playback
 19: [ 0- 3]: digital audio playback
 20: [ 0- 4]: digital audio playback
 24: [ 0- 0]: digital audio capture
 25: [ 0- 1]: digital audio capture
 26: [ 0- 2]: digital audio capture
 28: [ 0- 4]: digital audio capture
 33:        : timer

Lee



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

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

* Re: amixer issues
  2006-04-04 16:30   ` Lee Revell
@ 2006-04-04 16:56     ` Clemens Ladisch
       [not found]       ` <4432C745.3090306@pianodisc.com>
  0 siblings, 1 reply; 8+ messages in thread
From: Clemens Ladisch @ 2006-04-04 16:56 UTC (permalink / raw)
  To: Lee Revell; +Cc: Adrian McMenamin, alsa-devel

Lee Revell wrote:
> On Tue, 2006-04-04 at 18:17 +0200, Clemens Ladisch wrote:
> > Does /dev/snd/controlC0 exist, and does it point to the control device
> > listed in /proc/asound/devices?
> 
> $ ls -al /dev/snd/controlC0
> crw-rw---- 1 root audio 116, 0 Apr  1 10:06 /dev/snd/controlC0
> 
> $ cat /proc/asound/devices 
>   0: [ 0]   : control
>   ...
> 
> Can you please clarify?  How does a device node "point to" something?

The minor number of the device node (here: 0) must be the same as the
minor number of the actual device.


HTH
Clemens


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

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

* Re: amixer issues
  2006-04-04 16:17 ` Clemens Ladisch
  2006-04-04 16:30   ` Lee Revell
@ 2006-04-04 18:07   ` Adrian McMenamin
  2006-04-05  8:36     ` Clemens Ladisch
  1 sibling, 1 reply; 8+ messages in thread
From: Adrian McMenamin @ 2006-04-04 18:07 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

On Tue, 2006-04-04 at 18:17 +0200, Clemens Ladisch wrote:
> Adrian McMenamin wrote:
> > I have a working sound card with a working (if basic) PCM mixer:
> > 
> > /proc/asound # cat cards
> > 0 [AICA           ]: snd_card_aica - AICA
> >                      Yamaha AICA Super Intelligent Sound Processor for SEGA Dreamcast
> > 
> > but when I try to use amixer nothing seems to work:
> > 
> > / # amixer -c 0
> > Invalid card number.
> > Usage: amixer <options> command
> 
> Does /dev/snd/controlC0 exist, and does it point to the control device
> listed in /proc/asound/devices?
> 
> 


/ # ls -l /dev/snd
crw-rw-rw-    1 root     sys      116,   0 Apr  4 19:13 controlC0
crw-rw-rw-    1 root     sys      116,  16 Apr  4 19:13 pcmC0D0p
crw-rw-rw-    1 root     sys      116,  33 Apr  4 19:13 timer



/ # cat /proc/asound/devices
 16: [0- 0]: digital audio playback
  0: [0- 0]: ctl
 33:       : timer


Does that mean they agree? Looks like it to me, but I'm not *absolutely*
sure what I am looking for.




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

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

* Re: amixer issues
       [not found]       ` <4432C745.3090306@pianodisc.com>
@ 2006-04-05  8:34         ` Clemens Ladisch
  0 siblings, 0 replies; 8+ messages in thread
From: Clemens Ladisch @ 2006-04-05  8:34 UTC (permalink / raw)
  To: Steve deRosier; +Cc: alsa-devel

Steve deRosier wrote:
> Is there any place that the Alsa minor numbers are documented?  

In the source.  ;-)

Both alsa-kernel/include/minors.h and alsa-driver/snddevices know about
the minor numbers.

When CONFIG_SND_DYNAMIC_MINORS is enabled, minor numbers are random.


HTH
Clemens


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

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

* Re: amixer issues
  2006-04-04 18:07   ` Adrian McMenamin
@ 2006-04-05  8:36     ` Clemens Ladisch
  2006-04-05 21:36       ` Adrian McMenamin
  0 siblings, 1 reply; 8+ messages in thread
From: Clemens Ladisch @ 2006-04-05  8:36 UTC (permalink / raw)
  To: Adrian McMenamin; +Cc: alsa-devel

Adrian McMenamin wrote:
> On Tue, 2006-04-04 at 18:17 +0200, Clemens Ladisch wrote:
> > Adrian McMenamin wrote:
> > > / # amixer -c 0
> > > Invalid card number.
> > > Usage: amixer <options> command
> > 
> > Does /dev/snd/controlC0 exist, and does it point to the control device
> > listed in /proc/asound/devices?
> 
> / # ls -l /dev/snd
> crw-rw-rw-    1 root     sys      116,   0 Apr  4 19:13 controlC0
> 
> / # cat /proc/asound/devices
>   0: [0- 0]: ctl

Looks OK.

What is the output of "strace amixer -c0 controls"?


Regards,
Clemens


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

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

* Re: amixer issues
  2006-04-05  8:36     ` Clemens Ladisch
@ 2006-04-05 21:36       ` Adrian McMenamin
  0 siblings, 0 replies; 8+ messages in thread
From: Adrian McMenamin @ 2006-04-05 21:36 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

On Wed, 2006-04-05 at 10:36 +0200, Clemens Ladisch wrote:
> Adrian McMenamin wrote:
> > On Tue, 2006-04-04 at 18:17 +0200, Clemens Ladisch wrote:
> > > Adrian McMenamin wrote:
> > > > / # amixer -c 0
> > > > Invalid card number.
> > > > Usage: amixer <options> command
> > > 
> > > Does /dev/snd/controlC0 exist, and does it point to the control device
> > > listed in /proc/asound/devices?
> > 
> > / # ls -l /dev/snd
> > crw-rw-rw-    1 root     sys      116,   0 Apr  4 19:13 controlC0
> > 
> > / # cat /proc/asound/devices
> >   0: [0- 0]: ctl
> 
> Looks OK.
> 
> What is the output of "strace amixer -c0 controls"?

I have no strace. This is uclibc on SH4 embedded



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

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

end of thread, other threads:[~2006-04-05 21:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-01 16:07 amixer issues Adrian McMenamin
2006-04-04 16:17 ` Clemens Ladisch
2006-04-04 16:30   ` Lee Revell
2006-04-04 16:56     ` Clemens Ladisch
     [not found]       ` <4432C745.3090306@pianodisc.com>
2006-04-05  8:34         ` Clemens Ladisch
2006-04-04 18:07   ` Adrian McMenamin
2006-04-05  8:36     ` Clemens Ladisch
2006-04-05 21:36       ` Adrian McMenamin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox