Summary: | Distorted sound in headphones on Lenovo ThinkPad T480 (Realteak ALC285 / Intel Kaby Lake) | ||
---|---|---|---|
Product: | Base System | Reporter: | Mateusz Piotrowski <0mp> |
Component: | misc | Assignee: | freebsd-multimedia (Nobody) <multimedia> |
Status: | Closed Overcome By Events | ||
Severity: | Affects Some People | CC: | chinmaydpai, ports |
Priority: | --- | ||
Version: | 12.0-RELEASE | ||
Hardware: | Any | ||
OS: | Any |
Description
Mateusz Piotrowski
2019-02-23 20:28:14 UTC
Output of "sysctl dev.hdaa.0":
> dev.hdaa.0.reconfig: 0
> dev.hdaa.0.gpo_config:
> dev.hdaa.0.gpo_state:
> dev.hdaa.0.gpio_config: 0=keep 1=keep 2=keep
> dev.hdaa.0.gpio_state: 0=input(1) 1=input(1) 2=input(0)
> dev.hdaa.0.gpi_state:
> dev.hdaa.0.config: forcestereo,ivref50,ivref80,ivref100,ovref50,ovref80,ovref100,ivref,ovref,vref
> dev.hdaa.0.nid36: audio selector [DISABLED]
> Widget cap: 0x00300101 STEREO
> Connections: 2
> + [DISABLED] <- nid=18 [pin: Speaker (None)] [DISABLED] (selected)
> + [DISABLED] <- nid=19 [pin: Line-out (None)] [DISABLED]
>
> dev.hdaa.0.nid35: audio mixer [DISABLED]
> Widget cap: 0x0020010b STEREO
> Input amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
> Connections: 6
> + [DISABLED] <- nid=24 [pin: Speaker (None)] [DISABLED]
> + [DISABLED] <- nid=25 [pin: Speaker (None)] [DISABLED]
> + [DISABLED] <- nid=26 [pin: Speaker (None)] [DISABLED]
> + [DISABLED] <- nid=27 [pin: Speaker (None)] [DISABLED]
> + [DISABLED] <- nid=29 [beep widget]
> + [DISABLED] <- nid=18 [pin: Speaker (None)] [DISABLED]
>
> dev.hdaa.0.nid34: audio mixer [DISABLED]
> Widget cap: 0x0020010b STEREO
> Input amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
> Connections: 6
> + [DISABLED] <- nid=24 [pin: Speaker (None)] [DISABLED]
> + [DISABLED] <- nid=25 [pin: Speaker (None)] [DISABLED]
> + [DISABLED] <- nid=26 [pin: Speaker (None)] [DISABLED]
> + [DISABLED] <- nid=27 [pin: Speaker (None)] [DISABLED]
> + [DISABLED] <- nid=29 [beep widget]
> + [DISABLED] <- nid=19 [pin: Line-out (None)] [DISABLED]
>
> dev.hdaa.0.nid33_original: 0x0421101f as=1 seq=15 device=Headphones conn=Jack ctype=1/8 loc=Right color=Black misc=0
> dev.hdaa.0.nid33_config: 0x0421101f as=1 seq=15 device=Headphones conn=Jack ctype=1/8 loc=Right color=Black misc=0
> 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: 0x0421101f as=1 seq=15 device=Headphones conn=Jack ctype=1/8 loc=Right 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=2 [audio output] (selected)
> + [DISABLED] <- nid=3 [audio output] [DISABLED]
>
> dev.hdaa.0.nid32: vendor widget [DISABLED]
> Widget cap: 0x00f00040 PROC
>
> dev.hdaa.0.nid31: vendor widget [DISABLED]
> Widget cap: 0x00f00000
>
> dev.hdaa.0.nid30_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> dev.hdaa.0.nid30_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> dev.hdaa.0.nid30: pin: Speaker (None) [DISABLED]
> Widget cap: 0x00400781 PWR DIGITAL UNSOL STEREO
> Pin cap: 0x00000014 PDC OUT
> Pin config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> Pin control: 0x00000000
> Connections: 1
> + <- nid=6 [audio output] [DISABLED]
>
> dev.hdaa.0.nid29_original: 0x40661b45 as=4 seq=5 device=Modem-line conn=None ctype=Digital loc=0x00 color=Black misc=11
> dev.hdaa.0.nid29_config: 0x40661b45 as=4 seq=5 device=Modem-line conn=None ctype=Digital loc=0x00 color=Black misc=11
> dev.hdaa.0.nid29: beep widget
> Widget cap: 0x00700400 PWR
> Association: -2 (0x0000)
> OSS: speaker (speaker)
> Pin cap: 0x00000020 IN
> Pin config: 0x40661b45 as=4 seq=5 device=Modem-line conn=None ctype=Digital loc=0x00 color=Black misc=11
> Pin control: 0x00000020 IN
>
> dev.hdaa.0.nid28: vendor widget [DISABLED]
> Widget cap: 0x00f00000
>
> dev.hdaa.0.nid27_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> dev.hdaa.0.nid27_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> dev.hdaa.0.nid27: pin: Speaker (None) [DISABLED]
> Widget cap: 0x0040058f PWR UNSOL STEREO
> Pin cap: 0x00013734 PDC OUT IN VREF[ 50 80 100 GROUND HIZ ] EAPD
> Pin config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> Pin control: 0x00000000
> EAPD: 0x00000002 EAPD
> Output amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
> Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
> Connections: 2
> + [DISABLED] <- nid=2 [audio output] (selected)
> + <- nid=3 [audio output] [DISABLED]
>
> dev.hdaa.0.nid26_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> dev.hdaa.0.nid26_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> dev.hdaa.0.nid26: pin: Speaker (None) [DISABLED]
> Widget cap: 0x0040048b PWR UNSOL STEREO
> Pin cap: 0x00003724 PDC IN VREF[ 50 80 100 GROUND HIZ ]
> Pin config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> Pin control: 0x00000000
> Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
>
> dev.hdaa.0.nid25_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> dev.hdaa.0.nid25_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> dev.hdaa.0.nid25: pin: Speaker (None) [DISABLED]
> Widget cap: 0x0040048b PWR UNSOL STEREO
> Pin cap: 0x00003724 PDC IN VREF[ 50 80 100 GROUND HIZ ]
> Pin config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> Pin control: 0x00000000
> Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
>
> dev.hdaa.0.nid24_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> dev.hdaa.0.nid24_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> dev.hdaa.0.nid24: pin: Speaker (None) [DISABLED]
> Widget cap: 0x0040048b PWR UNSOL STEREO
> Pin cap: 0x00003724 PDC IN VREF[ 50 80 100 GROUND HIZ ]
> Pin config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> Pin control: 0x00000000
> Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
>
> dev.hdaa.0.nid23: vendor widget [DISABLED]
> Widget cap: 0x00f00000
>
> dev.hdaa.0.nid22: vendor widget [DISABLED]
> Widget cap: 0x00f00000
>
> dev.hdaa.0.nid21: vendor widget [DISABLED]
> Widget cap: 0x00f00000
>
> dev.hdaa.0.nid20_original: 0x90170110 as=1 seq=0 device=Speaker conn=Fixed ctype=Analog loc=Internal color=Unknown misc=1
> dev.hdaa.0.nid20_config: 0x90170110 as=1 seq=0 device=Speaker conn=Fixed ctype=Analog loc=Internal color=Unknown misc=1
> dev.hdaa.0.nid20: pin: Speaker (Fixed)
> Widget cap: 0x0040058d PWR UNSOL STEREO
> Association: 0 (0x0001)
> Pin cap: 0x00010014 PDC OUT EAPD
> Pin config: 0x90170110 as=1 seq=0 device=Speaker conn=Fixed ctype=Analog loc=Internal color=Unknown misc=1
> Pin control: 0x00000040 OUT
> EAPD: 0x00000002 EAPD
> Output amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
> Connections: 1
> + <- nid=2 [audio output]
>
> dev.hdaa.0.nid19_original: 0x40000000 as=0 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
> dev.hdaa.0.nid19_config: 0x40000000 as=0 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
> dev.hdaa.0.nid19: pin: Line-out (None) [DISABLED]
> Widget cap: 0x0040040b PWR STEREO
> Pin cap: 0x00000020 IN
> Pin config: 0x40000000 as=0 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
> Pin control: 0x00000000
> Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
>
> dev.hdaa.0.nid18_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> dev.hdaa.0.nid18_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> dev.hdaa.0.nid18: pin: Speaker (None) [DISABLED]
> Widget cap: 0x0040040b PWR STEREO
> Pin cap: 0x00000020 IN
> Pin config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
> Pin control: 0x00000000
> Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
>
> dev.hdaa.0.nid17: vendor widget [DISABLED]
> Widget cap: 0x00f00000
>
> dev.hdaa.0.nid16: vendor widget [DISABLED]
> Widget cap: 0x00f00000
>
> dev.hdaa.0.nid15: vendor widget [DISABLED]
> Widget cap: 0x00f00000
>
> dev.hdaa.0.nid14: vendor widget [DISABLED]
> Widget cap: 0x00f00000
>
> dev.hdaa.0.nid13: vendor widget [DISABLED]
> Widget cap: 0x00f00000
>
> dev.hdaa.0.nid12: vendor widget [DISABLED]
> Widget cap: 0x00f00000
>
> dev.hdaa.0.nid11: vendor widget [DISABLED]
> Widget cap: 0x00f00000
>
> dev.hdaa.0.nid10: vendor widget [DISABLED]
> Widget cap: 0x00f00000
>
> dev.hdaa.0.nid9: audio input [DISABLED]
> Widget cap: 0x0010051b PWR STEREO
> Stream cap: 0x00000001 PCM
> PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz
> Input amp: 0x80023f17 mute=1 step=63 size=2 offset=23 (-17/30dB)
> Connections: 1
> + [DISABLED] <- nid=34 [audio mixer] [DISABLED]
>
> dev.hdaa.0.nid8: audio input [DISABLED]
> Widget cap: 0x0010051b PWR STEREO
> Stream cap: 0x00000001 PCM
> PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz
> Input amp: 0x80023f17 mute=1 step=63 size=2 offset=23 (-17/30dB)
> Connections: 1
> + [DISABLED] <- nid=35 [audio mixer] [DISABLED]
>
> dev.hdaa.0.nid7: audio input [DISABLED]
> Widget cap: 0x0010051b PWR STEREO
> Stream cap: 0x00000001 PCM
> PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz
> Input amp: 0x80023f17 mute=1 step=63 size=2 offset=23 (-17/30dB)
> Connections: 1
> + [DISABLED] <- nid=36 [audio selector] [DISABLED]
>
> dev.hdaa.0.nid6: audio output [DISABLED]
> Widget cap: 0x00000611 PWR DIGITAL STEREO
> Stream cap: 0x00000001 PCM
> PCM cap: 0x000e05e0 16 20 24 bits, 44 48 88 96 192 KHz
>
> dev.hdaa.0.nid5: vendor widget [DISABLED]
> Widget cap: 0x00f00000
>
> dev.hdaa.0.nid4: vendor widget [DISABLED]
> Widget cap: 0x00f00000
>
> dev.hdaa.0.nid3: audio output [DISABLED]
> Widget cap: 0x0000041d PWR STEREO
> Stream cap: 0x00000001 PCM
> PCM cap: 0x000e0060 16 20 24 bits, 44 48 KHz
> Output amp: 0x00025757 mute=0 step=87 size=2 offset=87 (-65/0dB)
>
> dev.hdaa.0.nid2: audio output
> Widget cap: 0x0000041d PWR STEREO
> Association: 0 (0x8001)
> OSS: pcm (pcm)
> Stream cap: 0x00000001 PCM
> PCM cap: 0x000e0060 16 20 24 bits, 44 48 KHz
> Output amp: 0x00025757 mute=0 step=87 size=2 offset=87 (-65/0dB)
>
> dev.hdaa.0.%parent: hdacc0
> dev.hdaa.0.%pnpinfo: type=0x01 subsystem=0x17aa225d
> dev.hdaa.0.%location: nid=1
> dev.hdaa.0.%driver: hdaa
> dev.hdaa.0.%desc: Realtek (0x0257) Audio Function Group
Here are some interesting parts of a dmesg output after I resume the laptop from suspend:
> hdaa0: Headphones redirection for association 0 nid=33 using unsolicited responses.
> hdac0: Command timeout on address 2
> hdac0: Command timeout on address 2
> hdac0: Command timeout on address 2
> hdac0: Command timeout on address 2
> hdac0: Command timeout on address 2
> hdac0: Command timeout on address 2
> hdac0: Command timeout on address 2
> hdac0: Command timeout on address 2
> hdac0: Command timeout on address 2
> hdaa1: Pin sense: nid=3 sense=0xffffffff (connected, ELD valid)
> hdac0: Command timeout on address 2
> hdac0: Command timeout on address 2
Running FreeBSD-12-RELEASE on my X1 carbon 6th gen. I am having the same issue. Sounds really weird on both speakers and headphones. It is somewhat crackling, vocals on songs aren't audible at all. Overall, audio is very muffled.
Output for cat /dev/sndstat
> Installed devices:
> pcm0: <Realtek ALC285 (Analog 2.0+HP)> (play) default
> pcm1: <Intel Kabylake (HDMI/DP 8ch)> (play)
> No devices installed from userspace.
Adding
> hint.hdaa.0.nid33.config="as=2 seq=15 device=Headphones conn=Jack misc=0"
to loader.conf does not help.
I'm having the same problem on my t420s. It only started today, after working fine for over 3 months. The Audio issue appeared after trying suspend on this machine and even after a full restart and power cycle it does not go a way. The issue only happens with firefox(8). Other Applications with use snd directly don't have this problem such as cmus(8) and mplayer(8). It may be pulseaudio related. cat /dev/sndstat Installed devices: pcm0: <Realtek (0x0257) (Analog 2.0+HP/2.0)> (play/rec) default pcm1: <Realtek (0x0257) (Right Analog Mic)> (rec) pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> (play) No devices installed from userspace. Headphones are working just fine on 13.0-CURRENT r350438. I am not sure which commit fixed the issue. ^Triage: Since a commit (and resolver) can't be identified, OBE is the more appropriate resolution. If we can otherwise bisect or isolate the change that rectified the issue, we can update the issue accordingly I see no references to 11.2-RELEASE in this report (original was for 13-CURRENT). Subsequent reports say 12-RELEASE (no exact version) |