#!/bin/sh

# https://askubuntu.com/questions/12100/command-to-mute-and-unmute-a-microphone
amixer set Capture cap

# https://unix.stackexchange.com/questions/213867/how-to-mute-microphone-using-command-line-in-debian-8
#
# $ cat /proc/asound/cards
# 0 [HDMI           ]: HDA-Intel - HDA Intel HDMI
#                      HDA Intel HDMI at 0xf0630000 irq 51
# 1 [PCH            ]: HDA-Intel - HDA Intel PCH
#                      HDA Intel PCH at 0xf0634000 irq 52
# 2 [C510           ]: USB-Audio - Plantronics C510
#                      Plantronics Plantronics C510 at usb-0000:00:14.0-3, full speed
#   C510 --> eingestecktes Headset

# $ amixer -c PCH sget Capture
# Simple mixer control 'Capture',0
#   Capabilities: cvolume cswitch
#   Capture channels: Front Left - Front Right
#   Limits: Capture 0 - 63
#   Front Left: Capture 63 [100%] [30.00dB] [on]
#   Front Right: Capture 63 [100%] [30.00dB] [on]
#  

# $ amixer -c PCH sset Capture 23
# Simple mixer control 'Capture',0
#   Capabilities: cvolume cswitch
#   Capture channels: Front Left - Front Right
#   Limits: Capture 0 - 63
#   Front Left: Capture 23 [37%] [0.00dB] [on]
#   Front Right: Capture 23 [37%] [0.00dB] [on]

# amixer -c PCH sset Capture 64
# amixer sset Capture 64 # geht auch
# Simple mixer control 'Capture',0
#   Capabilities: cvolume cswitch
#   Capture channels: Front Left - Front Right
#   Limits: Capture 0 - 63
#   Front Left: Capture 63 [100%] [30.00dB] [on]
#   Front Right: Capture 63 [100%] [30.00dB] [on]
# 
