Hello,
I am getting bad spectral distribution (bass and treble are too weak) on headphones. Spectral distribution on speakers is fine.
It's the same across different headphones, so the problem is at the jack. Tweaking params with sysctl has practically no effect. Neither has a (unrelated) kernel upgrade from 10.3 RELEASE to 12.0 CURRENT, so I doubt uname -a would even matter.
Now, the usual litany of information:
CPU is Intel Core i7-6500U (amd64 k8 (Skylake))
NB the command also reveals the following line:
Could that be related? Just included for the sake of completeness.
nid20 is the internal speaker.
I'm getting the feeling this could be a problem with the Realtek codec (though if it were, I suppose the speakers would be equally affected, which isn't the case)...
I am getting bad spectral distribution (bass and treble are too weak) on headphones. Spectral distribution on speakers is fine.
It's the same across different headphones, so the problem is at the jack. Tweaking params with sysctl has practically no effect. Neither has a (unrelated) kernel upgrade from 10.3 RELEASE to 12.0 CURRENT, so I doubt uname -a would even matter.
Now, the usual litany of information:
CPU is Intel Core i7-6500U (amd64 k8 (Skylake))
cat /dev/sndstat
with hw.snd.verbose=2:
Code:
FreeBSD Audio Driver (64bit 2009061500/amd64)
Installed devices:
pcm0: <Realtek (0x0255) (Analog 2.0+HP/2.0)> on hdaa0 (1p:1v/1r:1v) default
snddev flags=0x2e2<AUTOVCHAN,BUSY,MPSAFE,REGISTERED,VPC>
[pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000004
interrupts 21320, underruns 0, feed 21320, ready 0 [b:4096/2048/2|bs:4096/2048/2]
channel flags=0x2100<BUSY,HAS_VCHAN>
{userland} -> feeder_mixer(0x00200010) -> {hardware}
pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 48000, fmt 0x00201000/0x00200010, flags 0x10000000, 0x00000023
interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:131072/4096/32]
channel flags=0x10000000<VIRTUAL>
{userland} -> feeder_root(0x00201000) -> feeder_format(0x00201000 -> 0x00200010) -> feeder_volume(0x00200010) -> {hardware}
[pcm0:record:dsp0.r0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000005
interrupts 0, overruns 0, feed 0, hfree 4096, sfree 4096 [b:4096/2048/2|bs:4096/2048/2]
channel flags=0x2100<BUSY,HAS_VCHAN>
{hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland}
pcm0:record:dsp0.r0[pcm0:virtual:dsp0.vr0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/0]
channel flags=0x10000000<VIRTUAL>
{hardware} -> feeder_root(0x00000000) -> {userland}
pcm1: <Intel (0x2809) (HDMI/DP 8ch)> on hdaa1 (1p:1v/0r:0v)
snddev flags=0x2e7<SIMPLEX,AUTOVCHAN,SOFTPCMVOL,BUSY,MPSAFE,REGISTERED,VPC>
[pcm1:play:dsp1.p0]: spd 48000, fmt 0x00200010, flags 0x00006100, 0x00000004
interrupts 0, underruns 0, feed 0, ready 0 [b:4096/2048/2|bs:4096/2048/2]
channel flags=0x6100<BUSY,HAS_VCHAN,VCHAN_PASSTHROUGH>
{userland} -> feeder_mixer(0x00200010) -> {hardware}
pcm1:play:dsp1.p0[pcm1:virtual:dsp1.vp0]: spd 8000, fmt 0x00100008, flags 0x10000000, 0x00000000
interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
channel flags=0x10000000<VIRTUAL>
{userland} -> feeder_root(0x00000000) -> {hardware}
No devices installed from userspace.
dmesg | grep hda
:
Code:
hdac0: <Intel Sunrise Point-LP HDA Controller> mem 0xd1220000-0xd1223fff,0xd1200000-0xd120ffff irq 16 at device 31.3 on pci0
hdacc0: <Realtek (0x0255) HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek (0x0255) Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek (0x0255) (Analog 2.0+HP/2.0)> at nid 20,33 and 18 on hdaa0
hdacc1: <Intel (0x2809) HDA CODEC> at cad 2 on hdac0
hdaa1: <Intel (0x2809) Audio Function Group> at nid 1 on hdacc1
pcm1: <Intel (0x2809) (HDMI/DP 8ch)> at nid 3 on hdaa1
NB the command also reveals the following line:
Code:
hdac0: Command timeout on address 2
grep hda /boot/device.hints
:
Code:
hint.hdac.0.config="64bit"
hint.hdaa.0.nid20.config="as=1 seq=0 misc=0"
hint.hdaa.0.nid33.config="as=1 seq=15 device=Headphones ctype=Analog"
sysctl dev.hdaa.0.nid33
nid33 is the jack for the headphones:
Code:
dev.hdaa.0.nid33: pin: Headphones (Black Jack)
Widget cap: 0x0040058d PWR UNSOL STEREO
Association: 0 (0x8000)
Pin cap: 0x0001001c PDC HP OUT EAPD
Pin config: 0x0227101f as=1 seq=15 device=Headphones conn=Jack ctype=Analog loc=Front color=Black misc=0
Pin control: 0x000000c0 HP OUT
EAPD: 0x00000002 EAPD
Output amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
Connections: 2
+ <- nid=12 [audio mixer] (selected)
+ [DISABLED] <- nid=13 [audio mixer] [DISABLED]
I'm getting the feeling this could be a problem with the Realtek codec (though if it were, I suppose the speakers would be equally affected, which isn't the case)...