Can't change my input and output device

I am on Fedora 44 (Workstation Edition) and once I plug in my headphones, I cannot change my input/output devices. (I want to use my laptop’s built in mic while wearing headphones?. I think this is built-in in fedora. Any work around?

Maybe something like the following would work?

$ echo "auto_mic = false" | sudo tee /sys/class/sound/card0/hwC0D0/hints

You will need to adjust the path according to your hardware.

Documentation about the “Hint Strings” can be found here:

https://docs.kernel.org/sound/hd-audio/notes.html#hint-strings

Excerpt (emphasis added):

Hint Strings
The codec parser have several switches and adjustment knobs for matching better with the actual codec or device behavior. Many of them can be adjusted dynamically via “hints” strings as mentioned in the section above. For example, by passing jack_detect = no string via sysfs or a patch file, you can disable the jack detection, thus the codec parser will skip the features like auto-mute or mic auto-switch. As a boolean value, either yes, no, true, false, 1 or 0 can be passed.


Edit: If that works and you want to make the setting permanent across reboots, you should be able to add the following line to a .conf file under /etc/modprobe.d.

options snd-hda-intel auto_mic=0