Hardware: Intel NUC DN2820FYKH (HDMI), NetBSD 9.99.81 amd64. Note: on FreeBSD all OK with HDMI/DP sound output with Intel drm-fbsd13-kmod video driver.
I am configure and build kernel with:
options HDAUDIOVERBOSE
options HDAUDIO_ENABLE_HDMI
options HDAUDIO_ENABLE_DISPLAYPORT
# uname -a
NetBSD nuc2.localnet 9.99.81 NetBSD 9.99.81 (HDSOUND) #0: Fri Apr 2 09:11:16 +05 2021 root@nuc2.localnet:/usr/src/sys/arch/amd64/compile/HDSOUND amd64
# dmesg | grep audio
[ 1.014442] hdaudio0 at pci0 dev 27 function 0: HD Audio Controller
[ 1.014442] hdaudio0: interrupting at msi2 vec 0
[ 1.014442] hdaudio0: HDA ver. 1.0, OSS 4, ISS 4, BSS 0, SDO 1, 64-bit
[ 1.014442] hdafg0 at hdaudio0: Realtek product 0283
[ 1.014442] audio0 at hdafg0: playback, capture, full duplex, independent
[ 1.014442] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
[ 1.014442] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
[ 1.014442] spkr0 at audio0: PC Speaker (synthesized)
[ 1.014442] hdafg1 at hdaudio0: Intel product 2882
[ 1.014442] audio1 at hdafg1: playback, capture, full duplex, independent
[ 1.014442] audio1: slinear_le:16 8ch 48000Hz, blk 7680 bytes (10ms) for playback
[ 1.014442] audio1: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
[ 1.014442] spkr1 at audio1: PC Speaker (synthesized)
# mixerctl -a
outputs.master=100,100
inputs.reclvl=92,92
inputs.reclvl.mute=on
inputs.record=184,184
inputs.record.mute=on
outputs.master2=0,0
outputs.master2.mute=off
outputs.master3=0,0
outputs.master3.mute=off
record.mic=0,0
outputs.master4=0,0
outputs.master4.mute=off
record.mic2=0,0
record.mic2.mute=on
inputs.record2=0,0
inputs.record2.mute=off
outputs.dacsel=DAC00
record.source=ADC01
# audiocfg list
0: [*] audio0 @ hdafg0: Realtek product 0283
playback: 2ch, 48000Hz
record: 2ch, 48000Hz
(PR) slinear_le 16/16, 2ch, { 44100, 48000, 96000, 192000 }
(PR) slinear_le 20/32, 2ch, { 44100, 48000, 96000, 192000 }
(PR) slinear_le 24/32, 2ch, { 44100, 48000, 96000, 192000 }
( ) ac3 16/16, 2ch, { 44100, 48000, 96000, 192000 }
1: [ ] audio1 @ hdafg1: Intel product 2882
playback: 8ch, 48000Hz
record: 2ch, 48000Hz
(P-) slinear_le 16/16, 2ch, { 48000 }
(P-) slinear_le 16/16, 4ch, { 48000 }
(P-) slinear_le 16/16, 6ch, { 48000 }
(P-) slinear_le 16/16, 8ch, { 48000 }
(PR) slinear_le 16/16, 2ch, 48000-48000Hz
# audiocfg default 1
setting default audio device to audio1
# audiocfg list
0: [ ] audio0 @ hdafg0: Realtek product 0283
playback: 2ch, 48000Hz
record: 2ch, 48000Hz
(PR) slinear_le 16/16, 2ch, { 44100, 48000, 96000, 192000 }
(PR) slinear_le 20/32, 2ch, { 44100, 48000, 96000, 192000 }
(PR) slinear_le 24/32, 2ch, { 44100, 48000, 96000, 192000 }
( ) ac3 16/16, 2ch, { 44100, 48000, 96000, 192000 }
1: [*] audio1 @ hdafg1: Intel product 2882
playback: 8ch, 48000Hz
record: 2ch, 48000Hz
(P-) slinear_le 16/16, 2ch, { 48000 }
(P-) slinear_le 16/16, 4ch, { 48000 }
(P-) slinear_le 16/16, 6ch, { 48000 }
(P-) slinear_le 16/16, 8ch, { 48000 }
(PR) slinear_le 16/16, 2ch, 48000-48000Hz
# mixerctl -a
outputs.master=0,0
outputs.master.mute=off
outputs.dacsel=DP00
# mixerctl -w outputs.master=100
outputs.master: 0,0 -> 0,0
# mixerctl -a
outputs.master=0,0
outputs.master.mute=off
outputs.dacsel=DP00
# cat /dev/urandom > /dev/audio
[Sound play from external Speakers, not from HDMI headphones, pluggeg to ViewSonic Display].
How I can solve the problem with HDMI sound output?