This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| cardNumber=$(aplay -l|grep 'Sound BlasterX G6'|cut -d' ' -f 2 |tr -d ':') | |
| amixer -c "$cardNumber" -q set "PCM Capture Source" "External Mic" | |
| if [ $? -eq 0 ]; then | |
| echo "PCM Capture Source successfully changed to 'External Mic'" | |
| else | |
| echo "Failed to configure PCM Capture source for Sound BlasterX G6" | |
| fi |
OlderNewer