NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: troubleshooting hdaudio on Intel NUC



> $ dmesg
> ...
> [     1.025705] hdafg0 at hdaudio0: Realtek product 0283
> [     1.025705] hdafg0: DAC00 2ch: HP Out [Jack]
> [     1.025705] hdafg0: 2ch/0ch 44100Hz 48000Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
> [     1.025705] audio0 at hdafg0: playback, capture, full duplex, independent
> ...
> [     1.025705] hdafg1 at hdaudio0: Intel HDMI/DP
> [     1.025705] hdafg1: DP00 8ch: Digital Out [Jack]
> [     1.025705] hdafg1: 8ch/0ch 48000Hz PCM16*
> [     1.025705] audio1 at hdafg1: playback, capture, full duplex, independent

Good day,

I made another attempt to get the headphone jack working on my NUC.
NetBSD attaches audio0 to the headphone jack and audio1 to HDMI.
The NUC has the latest UEFI update.  At boot time it has a BIOS
option to enable or disable HDMI audio.

I tried `audiocfg test 0` and `audiocfg test 1`.

With HDMI audio disabled in BIOS:

* Both audio0 and audio1 both produced sound over HDMI.
* Neither produced sound over the headphone jack.

With HDMI audio enabled in BIOS:

* Only audio1 produced sound over HDMI.
* Neither produced sound over the headphone jack.

NetBSD won't boot headless on this setup.  I can unplug the LCD after
it boots.  Then:

* audio0 produces sound over the headphone jack.

I reverted the following changes and rebuilt my kernel:

<https://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/hdaudio/
files.hdaudio.diff?r1=1.5;r2=1.6>

<https://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/hdaudio/
hdafg.c.diff?r1=1.26;r2=1.27>

After booting this kernel, it reportedly connects audio0 to the
headphone jack, and it does not connect audio1.

* audio0 produces sound over HDMI

I found a similar but not identical problem report from another user.
They ended up using FreeBSD.

<https://www.unitedbsd.com/d/450-hdmidp-audio-output-on-netbsd/4>

I think my next step will be to install FreeBSD and see whether it
works better with this chipset.  If so, i'll see whether i can
compare the hdaudio driver code and understand it.

Any other suggestions?

Thanks!

-Ben


Home | Main Index | Thread Index | Old Index