Date: Fri, 23 Mar 2018 23:56:34 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-multimedia@FreeBSD.org Subject: [Bug 219350] [snd_hda] ALC256: no sound out off headphones jack Message-ID: <bug-219350-5956-1pk8mz98De@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-219350-5956@https.bugs.freebsd.org/bugzilla/> References: <bug-219350-5956@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219350 marc.priggemeyer@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marc.priggemeyer@gmail.com --- Comment #12 from marc.priggemeyer@gmail.com --- Hi, unfortunately, I cannot confirm that the patch works on Dell Latitude 5480 with ALC256. With or without the patch I hear sound for a fraction of a second while plugging the headphones into the jack. I needed to put nid20 (internal speaker) and nid33 (headphones) on the same association to get to that state (again, the patch doesn't change anything). Setting misc=1 for nid33 disables sensing and leaves the output of sound on the headphones enabled, but that also means that the internal speaker stays active. hint.hdac.0.cad0.nid20.config="as=1 seq=0" hint.hdac.0.cad0.nid33.config="as=1 seq=15 misc=1" To me it appears to be a problem with the sensing and retasking of the audio jack... Using unpatched 12-CURRENT above device.hints works with the mentioned drawback of both outputs being always active. Since the internal speaker is deactivated when headphones are attached means sensing works. The question is why there is the short burst of sound on the headphones jack while plugging in? Verbose data below. Best, Marc 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.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.nid33: pin: Headphones (Black Jack) Widget cap: 0x0040058d PWR UNSOL STEREO Association: 0 (0x8000) Pin cap: 0x0001001c PDC HP OUT EAPD Pin config: 0x0221101f as=1 seq=15 device=Headphones conn=Jack ctype=1/8 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=2 [audio output] (selected) + [DISABLED] <- nid=3 [audio output] [DISABLED] ################## FreeBSD Audio Driver (64bit 2009061500/amd64) Installed devices: pcm0: <Realtek ALC256 (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 6277, underruns 0, feed 6277, 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 0x00200010, flags 0x10001154, 0x00000021, pid 1409 (firefox) interrupts 0, underruns 0, feed 6277, ready 0 [b:0/0/0|bs:16384/8192/2] channel flags=0x10001154<RUNNING,NOTRIGGER,NBIO,BUSY,HAS_SIZE,VIRTUAL> {userland} -> feeder_root(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 Kabylake (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. ############################ Plugging and Unplugging of the headphones: Mar 24 00:55:41 freebsd kernel: hdaa0: Unsolicited response 84000008 Mar 24 00:55:41 freebsd kernel: hdaa0: Pin sense: nid=33 sense=0x80000000 (connected) Mar 24 00:55:41 freebsd kernel: pcm0: Redirect output to: headphones Mar 24 00:55:41 freebsd kernel: hdaa0: Setting amplifier nid=33 index=0 out mute=0/0 vol=0/0 Mar 24 00:55:41 freebsd kernel: hdaa0: Setting amplifier nid=20 index=0 out mute=1/1 vol=0/0 Mar 24 00:55:41 freebsd kernel: pcm0: Playback channel set is: Front Left, Front Right, Mar 24 00:55:41 freebsd kernel: pcm0: Playback channel matrix is: 2.0 (connected) Mar 24 00:55:45 freebsd kernel: hdaa0: Unsolicited response 84000000 Mar 24 00:55:45 freebsd kernel: hdaa0: Pin sense: nid=33 sense=0x00000000 (disconnected) Mar 24 00:55:45 freebsd kernel: pcm0: Redirect output to: main Mar 24 00:55:45 freebsd kernel: hdaa0: Setting amplifier nid=33 index=0 out mute=1/1 vol=0/0 Mar 24 00:55:45 freebsd kernel: hdaa0: Setting amplifier nid=20 index=0 out mute=0/0 vol=0/0 Mar 24 00:55:45 freebsd kernel: pcm0: Playback channel set is: Front Left, Front Right, Mar 24 00:55:45 freebsd kernel: pcm0: Playback channel matrix is: 2.0 (unknown) -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219350-5956-1pk8mz98De>
