Skip to content

Instantly share code, notes, and snippets.

@phoenixthrush
Last active August 13, 2025 01:37
Show Gist options
  • Select an option

  • Save phoenixthrush/02d688fb16560be43ea6eae3e77ed647 to your computer and use it in GitHub Desktop.

Select an option

Save phoenixthrush/02d688fb16560be43ea6eae3e77ed647 to your computer and use it in GitHub Desktop.
Fixing Sound BlasterX G6 Microphone on Linux #SoundBlasterXG6 #Linux #Microphone
#!/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
amixer -c "$cardNumber" -q sset 'Input Gain Control' 3
if [ $? -eq 0 ]; then
echo "Input Gain Control set to 3"
else
echo "Failed to activate mic Boost for Sound BlasterX G6"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment