Skip to contentSkip to conversation

Weird jack detection on ASRock B450M Pro4

DISCUSSION Arun Raghavan 1 participant 2 messages Jul 10, 2020

lore
Share & tools
lore
#0 lore raw

Hi folks,
I ran into some weird behaviour on this motherboard. First, alsa-info is here: http://alsa-project.org/db/?f=f48105f391d848b34b3779f27369130ca024f417

The weird behaviour is that the HDA card is picked up fine, but jack detection is broken on boot. However, this gets "fixed" after you run alsa-info. The before/after codec info is at:

https://arunraghavan.net/temp/alsa-codecs-before.txt
https://arunraghavan.net/temp/alsa-codecs-after.txt

The key delta is:

----
@@ -133,24 +133,24 @@
Node 0x02 [Audio Output] wcaps 0x41d: Stereo Amp-Out
Control: name="Front Playback Volume", index=0, device=0

     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
   Device: name="ALC892 Analog", type="Audio", device=0
   Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
-  Amp-Out vals:  [0x34 0x34]
-  Converter: stream=0, channel=0
+  Amp-Out vals:  [0x29 0x29]
+  Converter: stream=5, channel=0
   PCM:
     rates [0x560]: 44100 48000 96000 192000
     bits [0xe]: 16 20 24
     formats [0x1]: PCM
   Power states:  D0 D1 D2 D3 EPSS
   Power: setting=D0, actual=D0
 Node 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out
   Control: name="Surround Playback Volume", index=0, device=0
     ControlAmp: chs=3, dir=Out, idx=0, ofs=0
   Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
-  Amp-Out vals:  [0x34 0x34]
-  Converter: stream=0, channel=0
+  Amp-Out vals:  [0x29 0x29]
+  Converter: stream=5, channel=0
   PCM:
     rates [0x560]: 44100 48000 96000 192000
     bits [0xe]: 16 20 24
     formats [0x1]: PCM
   Power states:  D0 D1 D2 D3 EPSS
@@ -159,12 +159,12 @@
   Control: name="Center Playback Volume", index=0, device=0
     ControlAmp: chs=1, dir=Out, idx=0, ofs=0
   Control: name="LFE Playback Volume", index=0, device=0
     ControlAmp: chs=2, dir=Out, idx=0, ofs=0
   Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0
-  Amp-Out vals:  [0x34 0x34]
-  Converter: stream=0, channel=0
+  Amp-Out vals:  [0x29 0x29]
+  Converter: stream=5, channel=0
   PCM:
     rates [0x560]: 44100 48000 96000 192000
     bits [0xe]: 16 20 24
     formats [0x1]: PCM

Power states: D0 D1 D2 D3 EPSS
@@ -172,11 +172,11 @@
Node 0x05 [Audio Output] wcaps 0x41d: Stereo Amp-Out
Control: name="Headphone Playback Volume", index=0, device=0

     ControlAmp: chs=3, dir=Out, idx=0, ofs=0

Amp-Out caps: ofs=0x40, nsteps=0x40, stepsize=0x03, mute=0 Amp-Out vals: [0x00 0x00]
- Converter: stream=0, channel=0
+ Converter: stream=5, channel=0
PCM:

     rates [0x560]: 44100 48000 96000 192000
     bits [0xe]: 16 20 24
     formats [0x1]: PCM

Power states: D0 D1 D2 D3 EPSS
----

Any thoughts on what's changing that, and how this should be fixed?

Cheers,
Arun

#1 lore raw
Quoted 8 lines · Arun Raghavan

Hi folks,
I ran into some weird behaviour on this motherboard. First, alsa-info is here:
http://alsa-project.org/db/?f=f48105f391d848b34b3779f27369130ca024f417

The weird behaviour is that the HDA card is picked up fine, but jack detection is broken on boot. However, this gets "fixed" after you run alsa-info. The before/after codec info is at:

Quick note, the same behviour is seen on unplug/replug on that port as well (i.e. unplug is detected, but replug is not until alsa-info is run again).

-- Arun