From owner-freebsd-multimedia@freebsd.org Fri Mar 23 23:56:36 2018 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A1ADAF57B8B for ; Fri, 23 Mar 2018 23:56:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3B72E6C036 for ; Fri, 23 Mar 2018 23:56:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 748381CE0F for ; Fri, 23 Mar 2018 23:56:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w2NNuZec070812 for ; Fri, 23 Mar 2018 23:56:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w2NNuZkA070811 for freebsd-multimedia@FreeBSD.org; Fri, 23 Mar 2018 23:56:35 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-multimedia@FreeBSD.org Subject: [Bug 219350] [snd_hda] ALC256: no sound out off headphones jack Date: Fri, 23 Mar 2018 23:56:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marc.priggemeyer@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-multimedia@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2018 23:56:36 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219350 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=3D1 for nid33 disables sensing and leaves the output of sound = on the headphones enabled, but that also means that the internal speaker stays act= ive. hint.hdac.0.cad0.nid20.config=3D"as=3D1 seq=3D0" hint.hdac.0.cad0.nid33.config=3D"as=3D1 seq=3D15 misc=3D1" 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 mentio= ned 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=3D0 step=3D87 size=3D2 offset=3D87 (-65/0d= B) 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=3D1 seq=3D0 device=3DSpeaker conn=3DFixed ct= ype=3DAnalog loc=3DInternal color=3DUnknown misc=3D1 Pin control: 0x00000040 OUT EAPD: 0x00000002 EAPD Output amp: 0x80000000 mute=3D1 step=3D0 size=3D0 offset=3D0 (0/0dB) Connections: 1 + <- nid=3D2 [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=3D1 seq=3D15 device=3DHeadphones conn=3DJack= ctype=3D1/8 loc=3DFront color=3DBlack misc=3D0 Pin control: 0x000000c0 HP OUT EAPD: 0x00000002 EAPD Output amp: 0x80000000 mute=3D1 step=3D0 size=3D0 offset=3D0 (0/0dB) Connections: 2 + <- nid=3D2 [audio output] (selected) + [DISABLED] <- nid=3D3 [audio output] [DISABLED] ################## FreeBSD Audio Driver (64bit 2009061500/amd64) Installed devices: pcm0: on hdaa0 (1p:1v/1r:1v) default snddev flags=3D0x2e2 [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=3D0x2100 {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/819= 2/2] channel flags=3D0x10001154 {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=3D0x2100 {hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland} pcm0:record:dsp0.r0[pcm0:virtual:dsp0.vr0]: spd 8000, fmt 0x0010000= 8, flags 0x10000000, 0x00000000 interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 [b:0/0/0|bs:0/0/= 0] channel flags=3D0x10000000 {hardware} -> feeder_root(0x00000000) -> {userland} pcm1: on hdaa1 (1p:1v/0r:0v) snddev flags=3D0x2e7 [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=3D0x6100 {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=3D0x10000000 {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=3D33 sense=3D0x800000= 00 (connected) Mar 24 00:55:41 freebsd kernel: pcm0: Redirect output to: headphones Mar 24 00:55:41 freebsd kernel: hdaa0: Setting amplifier nid=3D33 index=3D0= out mute=3D0/0 vol=3D0/0 Mar 24 00:55:41 freebsd kernel: hdaa0: Setting amplifier nid=3D20 index=3D0= out mute=3D1/1 vol=3D0/0 Mar 24 00:55:41 freebsd kernel: pcm0: Playback channel set is: Front Left, Front Right,=20 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=3D33 sense=3D0x000000= 00 (disconnected) Mar 24 00:55:45 freebsd kernel: pcm0: Redirect output to: main Mar 24 00:55:45 freebsd kernel: hdaa0: Setting amplifier nid=3D33 index=3D0= out mute=3D1/1 vol=3D0/0 Mar 24 00:55:45 freebsd kernel: hdaa0: Setting amplifier nid=3D20 index=3D0= out mute=3D0/0 vol=3D0/0 Mar 24 00:55:45 freebsd kernel: pcm0: Playback channel set is: Front Left, Front Right,=20 Mar 24 00:55:45 freebsd kernel: pcm0: Playback channel matrix is: 2.0 (unkn= own) --=20 You are receiving this mail because: You are the assignee for the bug.=