Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

How do I find out if my microphone is muted or unmuted, when I have more than one microphone such as Motherboard, USB and HDMI?

1) I can't find it with this:

$ cat /proc/asound/cards 
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xfe720000 irq 48
 1 [default        ]: USB-Audio - AK5370          
                      AKM              AK5370           at usb-0000:00:1a.0-1.1, full s

2) Nor with this

$ amixer -D 'hw:0' | grep Capture
  Capture channels: Front Left - Front Right
Simple mixer control 'Capture',0
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 22 [48%] [6.00dB] [on]
  Front Right: Capture 22 [48%] [6.00dB] [on]
Simple mixer control 'Capture',1
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 42 [91%] [26.00dB] [on]
  Front Right: Capture 42 [91%] [26.00dB] [on]
  Capture channels: Front Left - Front Right

$ amixer -D 'hw:1' | grep Capture
  Capture channels: Mono
  Limits: Capture 0 - 78
  Mono: Capture 70 [90%] [12.00dB] [off]

3) Nor with:

$ pactl list | sed -n '/^Source/,/^$/p' | grep Mute
    Mute: yes
    Mute: no
    Mute: no

$ amixer scontrols
Simple mixer control 'Master',0
Simple mixer control 'Capture',0

How can I get my bash (or other) script to read the value according to a hw:value,value format query?

share|improve this question

2 Answers 2

you could try alsamixer, it resides in the alsa-utils package. it has a nice ncurses kind of gui.

share|improve this answer

Have you tried pressing F6 in alsamixer?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.