Front headphones not working

Hello! Here’s another post about front audio not working. I’ve read and tried a lot of things but none of them seem to work for me. Sound is working great through HDMI and headphones when connecting them in the back of my PC, but not in the front panel.

Sorry for bringing here a common topic… Hope you can help.

lspci -v | grep -A7 -i "audio"

26:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
	Subsystem: ASRock Incorporation Device aaf0
	Flags: bus master, fast devsel, latency 0, IRQ 99, IOMMU group 18
	Memory at fce60000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [48] Vendor Specific Information: Len=08 <?>
	Capabilities: [50] Power Management version 3
	Capabilities: [58] Express Legacy Endpoint, MSI 00
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
--
28:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller
	Subsystem: Micro-Star International Co., Ltd. [MSI] Device cb85
	Flags: bus master, fast devsel, latency 0, IRQ 100, IOMMU group 23
	Memory at fc800000 (32-bit, non-prefetchable) [size=32K]
	Capabilities: [48] Vendor Specific Information: Len=08 <?>
	Capabilities: [50] Power Management version 3
	Capabilities: [64] Express Endpoint, MSI 00
	Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+

pacmd list-sinks

2 sink(s) available.
    index: 0
	name: <alsa_output.pci-0000_26_00.1.hdmi-stereo-extra3>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 9030
	volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
	        balance 0,00
	base volume: 65536 / 100% / 0,00 dB
	volume steps: 65537
	muted: no
	current latency: 0,00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Estéreo
	used by: 0
	linked by: 0
	configured latency: 0,00 ms; range is 0,50 .. 1999,82 ms
	card: 0 <alsa_card.pci-0000_26_00.1>
	module: 6
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "HDMI 3"
		alsa.id = "HDMI 3"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "9"
		alsa.card = "0"
		alsa.card_name = "HDA ATI HDMI"
		alsa.long_card_name = "HDA ATI HDMI at 0xfce60000 irq 99"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:26:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:03.1/0000:26:00.1/sound/card0"
		device.bus = "pci"
		device.vendor.id = "1002"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
		device.product.id = "aaf0"
		device.product.name = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]"
		device.string = "hdmi:0,3"
		device.buffering.buffer_size = "352768"
		device.buffering.fragment_size = "176384"
		device.access_mode = "mmap+timer"
		device.profile.name = "hdmi-stereo-extra3"
		device.profile.description = "Digital Stereo (HDMI 4)"
		device.description = "Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] Digital Stereo (HDMI 4)"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "video-display"
				device.product.name = "VX3211-2K"
	active port: <hdmi-output-3>
  * index: 14
	name: <alsa_output.pci-0000_28_00.4.iec958-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL DECIBEL_VOLUME LATENCY 
	state: RUNNING
	suspend cause: (none)
	priority: 9038
	volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
	        balance 0,00
	base volume: 65536 / 100% / 0,00 dB
	volume steps: 65537
	muted: no
	current latency: 100,86 ms
	max request: 17 KiB
	max rewind: 17 KiB
	monitor source: 23
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Estéreo
	used by: 1
	linked by: 1
	fixed latency: 100,14 ms
	card: 1 <alsa_card.pci-0000_28_00.4>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC1220 Digital"
		alsa.id = "ALC1220 Digital"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "1"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xfc800000 irq 100"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:28:00.4"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:28:00.4/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "1487"
		device.product.name = "Starship/Matisse HD Audio Controller"
		device.string = "iec958:1"
		device.buffering.buffer_size = "17664"
		device.buffering.fragment_size = "2944"
		device.access_mode = "mmap"
		device.profile.name = "iec958-stereo"
		device.profile.description = "Estéreo Digital (IEC958)"
		device.description = "Starship/Matisse HD Audio Controller Estéreo Digital (IEC958)"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
			properties:
				
	active port: <iec958-stereo-output>

inxi -Fxz

System:
  Kernel: 5.9.16-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  Desktop: GNOME 3.38.2 Distro: Manjaro Linux 
Machine:
  Type: Desktop System: Micro-Star product: MS-7B85 v: 1.0 serial: <filter> 
  Mobo: Micro-Star model: B450 GAMING PRO CARBON MAX WIFI (MS-7B85) v: 1.0 
  serial: <filter> UEFI: American Megatrends v: 2.20 date: 06/10/2020 
Battery:
  ... 
CPU:
  Info: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2 
  rev: 0 L2 cache: 3 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 86438 
  Speed: 2053 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 
  1: 2053 2: 3599 3: 2062 4: 2005 5: 2059 6: 3346 7: 1929 8: 1990 9: 2056 
  10: 3598 11: 2053 12: 3165 
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] 
  vendor: ASRock Phantom Gaming D driver: amdgpu v: kernel bus ID: 26:00.0 
  Display: wayland server: X.org 1.20.10 compositor: gnome-shell 
  driver: amdgpu note: n/a (using device driver) - try sudo/root 
  resolution: <missing: xdpyinfo> 
  OpenGL: renderer: Radeon RX 580 Series (POLARIS10 DRM 3.39.0 
  5.9.16-1-MANJARO LLVM 11.0.0) 
  v: 4.6 Mesa 20.3.1 direct render: Yes 
Audio:
  Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] 
  vendor: ASRock driver: snd_hda_intel v: kernel bus ID: 26:00.1 
  Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus ID: 28:00.4 
  Sound Server: ALSA v: k5.9.16-1-MANJARO 
Network:
  ... 
Drives:
  ... 
Partition:
  ... 
Swap:
  ... 
Sensors:
  System Temperatures: cpu: 43.8 C mobo: N/A gpu: amdgpu temp: 22.0 C 
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 1324 
Info:
  ...

Have you used the front panel successfully before, under a different OS perhaps?
Just trying to rule out a hardware problem.

I do use ubuntu on a pc with the same board and got my front jack working with the program hdajackretask.

I overwrote Pinc mic, Front side (pin 0x19) to headphone and installed the boot overwrite.