Machine: Dell Optiplex 3020M
Audio card: Realtek High Definition Audio
Tested on: NetBSD 9.0 and CURRENT.
There seems to be something wrong with the auto-configuration of the audio output that makes high frequency sounds like a singer's voice or Hi-Hat drum sounds muted (can't barely hear it) in comparison to the bass sounds - or vice versa. This is very noticeable when using headphones or stereo speakers.
Tried a left and right stereo sound test like this one and found out that sound from each left and right channel outputs to both the left and right speakers at the same time. So for example using the sound test above, when the music only plays on the left channel, I'm supposed to only hear sound from my left speaker but I can hear sound in both my left and right speaker at the same time and the audio is a lot better - both low and high frequency sounds seems balanced.
However at the time stamp 1:20 of the sound test above, when the both left and right channels starts to play, the bass sound suddenly disappears as if the right and left channel cancel each other out.
Forcing audio output to 1 channel on mpv using --audio-channels=mono makes it better but sound is still a bit funky and sounds low quality.
I have tried flipping all the settings in mixerctl but to no avail.
Any help is well appreciated.
Here are some outputs:
mixerctl -a
outputs.master=100,100
outputs.master2=100,100
inputs.reclvl=80,80
inputs.reclvl.mute=on
inputs.record=80,80
inputs.record.mute=on
outputs.master3=0,0
outputs.master3.mute=off
outputs.master4=0,0
outputs.master4.mute=off
outputs.master5=0,0
outputs.master5.mute=off
outputs.master6=0,0
outputs.master6.mute=off
outputs.master7=0,0
outputs.master7.mute=off
record.mic=0,0
outputs.master8=0,0
outputs.master8.mute=off
record.mic2=0,0
record.mic2.mute=on
inputs.record2=0,0
inputs.record2.mute=on
outputs.dacsel=DAC00,DAC01
record.source=ADC02
dmesg | grep audio
[ 1.023313] hdaudio0 at pci0 dev 3 function 0: HD Audio Controller
[ 1.023313] hdaudio0: interrupting at msi0 vec 0
[ 1.023313] hdaudio0: HDA ver. 1.0, OSS 2, ISS 0, BSS 0, SDO 1, 64-bit
[ 1.023313] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.023313] hdaudio0: autoconfiguration error: RIRB timeout
[ 1.023313] hdaudio1 at pci0 dev 27 function 0: HD Audio Controller
[ 1.023313] hdaudio1: interrupting at msi2 vec 0
[ 1.023313] hdaudio1: HDA ver. 1.0, OSS 4, ISS 4, BSS 0, SDO 1, 64-bit
[ 1.023313] hdafg0 at hdaudio1: vendor 10ec product 0255
[ 1.023313] audio0 at hdafg0: playback, capture, full duplex, independent
[ 1.023313] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
[ 1.023313] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
[ 1.023313] spkr0 at audio0: PC Speaker (synthesized)
audiocfg list
0: [*] audio0 @ hdafg0: Realtek product 0255
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 }
audioctl -a
name=Realtek
version=product 0255
config=01h
encodings=mulaw:8*,alaw:8*,slinear:8*,ulinear:8*,slinear_le:16*,ulinear_le:16*,slinear_be:16*,ulinear_be:16*,slinear_le:32*,ulinear_le:32*,slinear_be:32*,ulinear_be:32*
properties=full_duplex,mmap,independent
full_duplex=1
fullduplex=1
blocksize=2048
hiwat=32
lowat=24
monitor_gain=0
mode=
play.rate=48000
play.channels=2
play.precision=16
play.encoding=slinear_le
play.gain=0
play.balance=32
play.port=0x0
play.avail_ports=0x0
play.seek=0
play.samples=0
play.eof=0
play.pause=0
play.error=0
play.waiting=0
play.open=0
play.active=1
play.buffer_size=65536
record.rate=8000
record.channels=1
record.precision=8
record.encoding=mulaw
record.gain=0
record.balance=32
record.port=0x0
record.avail_ports=0x0
record.seek=0
record.samples=0
record.eof=0
record.pause=0
record.error=0
record.waiting=0
record.open=0
record.active=0
record.buffer_size=65536
record.errors=0