Hi! Sorry for my bad English... >From the site unitedbsd.com:
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 [email protected]:/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 ### This is the BUG? # 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? nia@> audio1 is configured to do 8-channel surround, which might not be what you want - it can be reconfigured to do stereo with audiocfg set, something like audiocfg set 1 p slinear_le 16 2 48000 by RVP request> # mixerctl -av outputs.master=0,0 volume delta=256 outputs.master.mute=off [ off on ] outputs.dacsel=DP00 { DP00 } Go to stereo (as nia say) # audiocfg test 1 -> Sound play only from External Speakers, not from HDMI headphones, plugged to ViewSonic Display. 1: [*] audio1 @ hdafg1: Intel product 2882 playback: 2ch, 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 testing channel 0... done testing channel 1... done # hdaudioctl show 0 1 nid Data As Seq Device Conn Jack Location Color Misc 0x12 411111F0 15 0 Speaker None 1/8" Rear Black 1 0x14 40100000 0 0 Speaker None Unknown 0x00 Unknown 0 0x17 411111F0 15 0 Speaker None 1/8" Rear Black 1 0x18 411111F0 15 0 Speaker None 1/8" Rear Black 1 0x19 03A11020 2 0 Mic In Jack 1/8" Left Black 0 0x1A 411111F0 15 0 Speaker None 1/8" Rear Black 1 0x1B 411111F0 15 0 Speaker None 1/8" Rear Black 1 0x1D 40541905 0 5 Digital Out None RCA 0x00 Black 9 0x1E 411111F0 15 0 Speaker None 1/8" Rear Black 1 0x21 03211010 1 0 Headphones Jack 1/8" Left Black 0 # hdaudioctl show 1 1 HDAUDIO_FGRP_GETCONFIG failed: Operation not supported by device # hdaudioctl show 2 1 nid Data As Seq Device Conn Jack Location Color Misc 0x 4 18560010 1 0 Digital Out Jack Digital 0x18 Unknown 0 0x 5 58560020 2 0 Digital Out None Digital 0x18 Unknown 0 0x 6 58560030 3 0 Digital Out None Digital 0x18 Unknown 0 # hdaudioctl show 3 1 HDAUDIO_FGRP_GETCONFIG failed: Operation not supported by device --- best regards, Dmitrii Postolov [email protected]
