linux – 当我有多个麦克风时,如何知道我的麦克风是静音还是静音?

当我有多个麦克风(如主板,USB和HDMI)时,如何确定麦克风是静音还是取消静音?

1)我找不到这个:

$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)也不是这个

$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)也不是:

$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

如何让我的bash(或其他)脚本根据hw:value,value格式查询读取值?

解决方法:

你可以试试alsamixer,它驻留在alsa-utils包中.它有一个很好的ncurses类gui.

上一篇:linux – 内部麦克风不工作..再次(Fedora 20,KDE,HP 8460p)


下一篇:Linux内核中的ALSA是什么?