Problem:
When i plugged in a headphone to my computer the sound came out from both headphone and speaker.
Generally people will instruct you to turn on the “Auto-Mute Mode” in alsamixer, but in my saturation that’s not possible, because there is no such options as “Auto-Mute Mode” among the settings.
Reason:
The codec parser of the driver snd-hda-intel skipped the auto-mute feature.
Solutions:
# pacman -S alsa-tools # hdajackrestask
hda-jack-restask is a gui interface for you to enable hints and remap the jack (e.g. using a mic jack as a headphone jack) easily
- selecting Parser hints, enable the auto_mute and trigger_sense hints
- selecting the override box in the Green Headphone for headphone jack and the Green Line Out for speaker jack
- clicking install boot override.
- reboot
Useful Commands:
>cat aplay -l //list all the playback devices >cat aplay -vv /usr/share/sounds/alsa/Front_Center.wav //play a sound test >cat lspci | grep -i audio //list all the PCI device for audio >cat /proc/asound/card0/codec\#0 //codec information for card0
References:
https://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio.txt