Skip site navigation (1)Skip section navigation (2)
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=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: <Realtek ALC256 (Analog 2.0+HP/2.0)> on hdaa0  (1p:1v/1r:1v) default
        snddev flags=3D0x2e2<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=3D0x2100<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/819=
2/2]
        channel flags=3D0x10001154<RUNNING,NOTRIGGER,NBIO,BUSY,HAS_SIZE,VIR=
TUAL>
        {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<BUSY,HAS_VCHAN>
        {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<VIRTUAL>
        {hardware} -> feeder_root(0x00000000) -> {userland}
pcm1: <Intel Kabylake (HDMI/DP 8ch)> on hdaa1  (1p:1v/0r:0v)
        snddev
flags=3D0x2e7<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=3D0x6100<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=3D0x10000000<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=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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219350-5956-1pk8mz98De>