Re: kern/60557: hdafg(4): headphone output and jack detection do not work on Dell Latitude 5400 (ALC236)
"Stéphane ORTEGA via gnats" <[email protected]>
| Newsgroups | gmane.os.netbsd.bugs |
|---|---|
| Message-ID | <[email protected]> |
The following reply was made to PR kern/60557; it has been noted by GNATS. From: =?utf-8?B?U3TDqXBoYW5l?= ORTEGA <[email protected]> To: [email protected] Cc: Subject: Re: kern/60557: hdafg(4): headphone output and jack detection do not work on Dell Latitude 5400 (ALC236) Date: Sun, 9 Aug 2026 13:46:41 +0200 Hi RVP, Thanks for looking into this. The codec is codecid 0x00, NID 0x01 (Realtek 10EC:0236 / ALC236). Here is the output of hdaudioctl show 0x00 0x01: nid Data As Seq Device Conn Jack Location Color Misc ========================================================================= 0x12 90A60140 4 0 Mic In Fixed Digital Internal Unknown 1 0x13 40100000 0 0 Speaker None Unknown 0x00 Unknown 0 0x14 90170110 1 0 Speaker Fixed Analog Internal Unknown 1 0x18 411111F0 15 0 Speaker None 1/8" Rear Black 1 0x19 411111F0 15 0 Speaker None 1/8" Rear Black 1 0x1A 411111F0 15 0 Speaker None 1/8" Rear Black 1 0x1B 411111F0 15 0 Speaker None 1/8" Rear Black 1 0x1D 40700001 0 1 Modem Handset None Unknown 0x00 Unknown 0 0x1E 421212F2 15 2 Speaker None 1/4" Front Black 2 0x21 02211020 2 0 Headphones Jack 1/8" Front Black 0 And here is the output of hdaudioctl graph 0x00 0x01: digraph "HD Audio 10EC:0236" { widget02h [label="widget02h\naudio output",shape=box,style=filled,fillcolor="#88ff88"]; widget03h [label="widget03h\naudio output",shape=box,style=filled,fillcolor="#88ff88"]; widget04h [label="widget04h\nvendor defined",shape=box]; widget05h [label="widget05h\nvendor defined",shape=box]; widget06h [label="widget06h\naudio output",shape=box,style=filled,fillcolor="#88ff88"]; widget07h [label="widget07h\naudio input",shape=box,style=filled,fillcolor="#ff8888"]; widget24h -> widget07h [sametail=widget24h]; widget08h [label="widget08h\naudio input",shape=box,style=filled,fillcolor="#ff8888"]; widget23h -> widget08h [sametail=widget23h]; widget09h [label="widget09h\naudio input",shape=box,style=filled,fillcolor="#ff8888"]; widget22h -> widget09h [sametail=widget22h]; widget0Ah [label="widget0Ah\nvendor defined",shape=box]; widget0Bh [label="widget0Bh\nvendor defined",shape=box]; widget0Ch [label="widget0Ch\nvendor defined",shape=box]; widget0Dh [label="widget0Dh\nvendor defined",shape=box]; widget0Eh [label="widget0Eh\nvendor defined",shape=box]; widget0Fh [label="widget0Fh\nvendor defined",shape=box]; widget10h [label="widget10h\nvendor defined",shape=box]; widget11h [label="widget11h\nvendor defined",shape=box]; widget12h [label="widget12h\ndevice=Mic In",style=filled,shape=circle,fillcolor="#ff8888"]; widget13h [label="widget13h\ndevice=Speaker",style=filled,shape=circle,fillcolor="#ff8888"]; widget14h [label="widget14h\ndevice=Speaker",style=filled,shape=circle,fillcolor="#88ff88"]; widget02h -> widget14h [sametail=widget02h]; widget15h [label="widget15h\nvendor defined",shape=box]; widget16h [label="widget16h\nvendor defined",shape=box]; widget17h [label="widget17h\nvendor defined",shape=box]; widget18h [label="widget18h\ndevice=Speaker",style=filled,shape=circle,fillcolor="#ff8888"]; widget19h [label="widget19h\ndevice=Speaker",style=filled,shape=circle,fillcolor="#ff8888"]; widget1Ah [label="widget1Ah\ndevice=Speaker",style=filled,shape=circle,fillcolor="#ff8888"]; widget1Bh [label="widget1Bh\ndevice=Speaker",style=filled,shape=doublecircle,fillcolor="#ffff88"]; widget02h -> widget1Bh [sametail=widget02h]; widget03h -> widget1Bh [sametail=widget03h]; widget1Ch [label="widget1Ch\nvendor defined",shape=box]; widget1Dh [label="widget1Dh\ndevice=Modem Handset",style=filled,shape=circle,fillcolor="#ff8888"]; widget1Eh [label="widget1Eh\nbeep generator",shape=box]; widget06h -> widget1Eh [sametail=widget06h]; widget1Fh [label="widget1Fh\nvendor defined",shape=box]; widget20h [label="widget20h\nvendor defined",shape=box]; widget21h [label="widget21h\ndevice=Headphones",style=filled,shape=circle,fillcolor="#88ff88"]; widget02h -> widget21h [sametail=widget02h]; widget03h -> widget21h [sametail=widget03h]; widget22h [label="widget22h\naudio mixer",shape=invhouse]; widget18h -> widget22h [sametail=widget18h]; widget19h -> widget22h [sametail=widget19h]; widget1Ah -> widget22h [sametail=widget1Ah]; widget1Bh -> widget22h [sametail=widget1Bh]; widget1Dh -> widget22h [sametail=widget1Dh]; widget23h [label="widget23h\naudio mixer",shape=invhouse]; widget18h -> widget23h [sametail=widget18h]; widget19h -> widget23h [sametail=widget19h]; widget1Ah -> widget23h [sametail=widget1Ah]; widget1Bh -> widget23h [sametail=widget1Bh]; widget1Dh -> widget23h [sametail=widget1Dh]; widget12h -> widget23h [sametail=widget12h]; widget24h [label="widget24h\naudio selector",shape=invtrapezium]; widget12h -> widget24h [sametail=widget12h]; widget13h -> widget24h [sametail=widget13h]; {rank=min;} {rank=max;} } Please let me know what you would like me to test next. Best regards, So Le Sun, Aug 09, 2026 at 09:45:01AM +0000, RVP via gnats a écrit : > The following reply was made to PR kern/60557; it has been noted by GNATS. > > From: RVP <[email protected]> > To: [email protected] > Cc: > Subject: Re: kern/60557: hdafg(4): headphone output and jack detection do > not work on Dell Latitude 5400 (ALC236) > Date: Sun, 9 Aug 2026 09:44:10 +0000 (UTC) > > On Sat, 8 Aug 2026, [email protected] via gnats wrote: > > >> Description: > > The internal speakers work normally. The codec is reported as: > > > > hdafg0: DAC00 2ch: Speaker [Built-In] > > hdafg0: DAC01 2ch: HP Out [Jack] > > hdafg0: ADC02 2ch: Mic In [Built-In] > > > > The codec configuration also reports NID 0x21 as: > > > > 0x21 02211020 2 0 Headphones Jack 1/8" Front Black 0 > > > > However, the headphone output does not work. > > > > The headphone jack is not detected when a working headset is plugged in or unplugged. There is no corresponding change in dmesg, and no jack insertion/removal event is visible. > > > > The mixer exposes both DACs: > > > > outputs.dacsel=DAC00,DAC01 > > > > Selecting DAC00 produces sound from the internal speakers. > > > > Selecting DAC01 with: > > > > mixerctl -w outputs.dacsel=DAC01 > > > > does not produce any sound in the headphones. The internal speakers may still produce sound depending on the mixer configuration. > > > > Realtek HDA is notorious for needing custom widget patches (as carried by Linux) > What you could do right now is attach both speaker and HP to the same DAC. This > way, plugging in the HP will automatically mute the speaker, and we already > know that this DAC works. > > Can you the full output of hdaudioctl for this codec and nid? > > -RVP > -- Stéphane ORTEGA https://stephaneortega.fr/ +33 (0)684.041.350 GPG Key ID: 0x56F6CF155AB3B3BF/2048R IRC: Well@{libera,oftc}