Convert a Jack Line-in audio port into a Line-out port

March 2, 2023 - Reading time: 2 minutes

I need another Line-out port because my Jack splitter is broken, but my mother board only has 3 Jack ports: a Microphone, a Line-out, and a Line-in port.

I can override the default port binding with the help of hdajackretask tool.

It should be possible to test by clicking the Apply button, but it didn't work last time I used this tool, so I simply clicked the Install boot override button to generate the boot configuration file.

After rebooting, both Line-out and Line-in ports (the green and blue ones) output the computer sound as expected.

What it does is adding two files, a modprobe config file to load overrides on boot, and a firmware file for the audio chipset, that has rewritten pins config:

/etc/modprobe.d/hda-jack-retask.conf

# This file was added by the program 'hda-jack-retask'.
# If you want to revert the changes made by this program, you can simply erase this file and reboot your computer.
options snd-hda-intel patch=hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw

/usr/lib/firmware/hda-jack-retask.fw

[codec]
0x10ec0887 0x1458a182 0

[pincfg]
0x11 0x99430130
0x12 0x4037c040
0x14 0x01014010
0x15 0x411111f0
0x16 0x411111f0
0x17 0x411111f0
0x18 0x01a19040
0x19 0x02a19050
0x1a 0x01014010
0x1b 0x02214020
0x1c 0x411111f0
0x1d 0x4044c601
0x1e 0x411111f0
0x1f 0x411111f0