Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Oct 2018 14:39:47 -0300
From:      Mario Lobo <lobo@bsd.com.br>
To:        jakob@alvermark.net, freebsd-current@freebsd.org
Subject:   Re: Sound issues with Dell Latitude 7490 (kabylake)
Message-ID:  <CA%2ByoEx8YK2xG7k6sfEgvLvTtCv64=eJ8icei6y8W=36PgOYjdw@mail.gmail.com>
In-Reply-To: <934ea591-3c39-7fa5-f77e-07e35c9bb402@alvermark.net>
References:  <CAECmPws%2BqW0-zy0ucN0JSDEX=JLpAHm=AbXJYRJ-Mejnoy4ecA@mail.gmail.com> <85518f55-20a8-f534-7266-a9e847912afc@alvermark.net> <CAECmPwvqaWbWDu7TVpYxxTr7-Zr=RWnUWi1C=8S=TOmrBKdpZg@mail.gmail.com> <596a89fa-d7a3-1d39-d296-e07359cb487f@alvermark.net> <20181003130645.GH1118@albert.catwhisker.org> <CA%2ByoEx-vQv8U1so-UyMZffMWMZF5JGtegwoKnJ78a8NHQ=Am-A@mail.gmail.com> <934ea591-3c39-7fa5-f77e-07e35c9bb402@alvermark.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Em qua, 3 de out de 2018 =C3=A0s 14:03, Jakob Alvermark <jakob@alvermark.ne=
t>
escreveu:

> On 10/3/18 6:19 PM, Mario Lobo wrote:
>
> Em qua, 3 de out de 2018 =C3=A0s 10:10, David Wolfskill <david@catwhisker=
.org>
> escreveu:
>
>> On Mon, Oct 01, 2018 at 11:12:25PM +0200, Jakob Alvermark wrote:
>> > ....
>> > Do the headphones work with this patch?
>> >
>> > Index: sys/dev/sound/pci/hda/hdaa.c
>> > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>> > --- sys/dev/sound/pci/hda/hdaa.c    (revision 339076)
>> > +++ sys/dev/sound/pci/hda/hdaa.c    (working copy)
>> > @@ -5034,11 +5034,13 @@
>> >           pincap =3D w->wclass.pin.cap;
>> >
>> >           /* Disable everything. */
>> > +        /*
>> >           w->wclass.pin.ctrl &=3D ~(
>> >               HDA_CMD_SET_PIN_WIDGET_CTRL_HPHN_ENABLE |
>> >               HDA_CMD_SET_PIN_WIDGET_CTRL_OUT_ENABLE |
>> >               HDA_CMD_SET_PIN_WIDGET_CTRL_IN_ENABLE |
>> >               HDA_CMD_SET_PIN_WIDGET_CTRL_VREF_ENABLE_MASK);
>> > +        */
>> >
>> >           if (w->enable =3D=3D 0) {
>> >               /* Pin is unused so left it disabled. */
>> > ....
>>
>> Thank you!  This addressed the long-standing (Reported:  2015-05-29
>> 21:15 UTC) issue I have had with my laptop (Dell Precision M4800), as
>> documented in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D200526
>> -- now updated to reflect the fix.
>>
>> Peace,
>> david
>> --
>> David H. Wolfskill                              david@catwhisker.org
>> Trump is gaslighting us:
>> https://www.bbc.com/news/world-us-canada-44959300
>>
>> See http://www.catwhisker.org/~david/publickey.gpg for my public key.
>>
>
> Thank you #2 !! The patch fixed my weird headphone sound too on
> 11.2-STABLE!
>
> I still can't make the plugging-in switch work but it's ok. I created
> scripts for that with
>
>
> Can you send the output from 'sysctl dev.hdaa'?
>
>
> Jakob
>
By the way, my note is ACER Aspire 5 A515-51G

Here it is:

[~]>sysctl dev.hdaa
dev.hdaa.1.reconfig: 0
dev.hdaa.1.gpo_config:
dev.hdaa.1.gpo_state:
dev.hdaa.1.gpio_config:
dev.hdaa.1.gpio_state:
dev.hdaa.1.gpi_state:
dev.hdaa.1.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref
dev.hdaa.1.nid3_original: 0x18560010 as=3D1 seq=3D0 device=3DDigital-out
conn=3DJack ctype=3DDigital loc=3D0x18 color=3DUnknown misc=3D0
dev.hdaa.1.nid3_config: 0x18560010 as=3D1 seq=3D0 device=3DDigital-out conn=
=3DJack
ctype=3DDigital loc=3D0x18 color=3DUnknown misc=3D0
dev.hdaa.1.nid3: pin: Digital-out (Jack)
     Widget cap: 0x0040778d PWR DIGITAL UNSOL 8CH
    Association: 0 (0x0001)
        Pin cap: 0x09000094 PDC OUT HDMI DP HBR
     Pin config: 0x18560010 as=3D1 seq=3D0 device=3DDigital-out conn=3DJack
ctype=3DDigital loc=3D0x18 color=3DUnknown misc=3D0
    Pin control: 0x00000040 OUT
     Output amp: 0x80000000 mute=3D1 step=3D0 size=3D0 offset=3D0 (0/0dB)
    Connections: 1
          + <- nid=3D2 [audio output]

dev.hdaa.1.nid2: audio output
     Widget cap: 0x00006611 PWR DIGITAL 8CH
    Association: 0 (0x0001)
            OSS: pcm (pcm)
     Stream cap: 0x00000005 AC3 PCM
        PCM cap: 0x001a07f0 16 24 32 bits, 32 44 48 88 96 176 192 KHz

dev.hdaa.1.%parent: hdacc1
dev.hdaa.1.%pnpinfo: type=3D0x01 subsystem=3D0x80860101
dev.hdaa.1.%location: nid=3D1
dev.hdaa.1.%driver: hdaa
dev.hdaa.1.%desc: Intel Kabylake Audio Function Group
dev.hdaa.0.reconfig: 0
dev.hdaa.0.gpo_config:
dev.hdaa.0.gpo_state:
dev.hdaa.0.gpio_config: 0=3Dset 1=3Dkeep 2=3Dkeep
dev.hdaa.0.gpio_state: 0=3Doutput(1) 1=3Ddisabled 2=3Ddisabled
dev.hdaa.0.gpi_state:
dev.hdaa.0.config:
forcestereo,ivref50,ivref80,ivref100,ivref,vref

dev.hdaa.0.nid35: audio
mixer

     Widget cap: 0x0020010b
STEREO

    Association: 2 (0x0001)
            OSS: speaker, monitor
      Input amp: 0x80000000 mute=3D1 step=3D0 size=3D0 offset=3D0 (0/0dB)
    Connections: 7
          + [DISABLED] <- nid=3D24 [pin: Speaker (None)] [DISABLED]
          + [DISABLED] <- nid=3D25 [pin: Speaker (None)] [DISABLED]
          + [DISABLED] <- nid=3D26 [pin: Speaker (None)] [DISABLED]
          + [DISABLED] <- nid=3D27 [pin: Speaker (None)] [DISABLED]
          + <- nid=3D29 [beep widget]
          + <- nid=3D11 [audio mixer]
          + <- nid=3D18 [pin: Mic (Fixed)]

dev.hdaa.0.nid34: audio mixer [DISABLED]
     Widget cap: 0x0020010b STEREO
      Input amp: 0x80000000 mute=3D1 step=3D0 size=3D0 offset=3D0 (0/0dB)
    Connections: 6
          + [DISABLED] <- nid=3D24 [pin: Speaker (None)] [DISABLED]
          + [DISABLED] <- nid=3D25 [pin: Speaker (None)] [DISABLED]
          + [DISABLED] <- nid=3D26 [pin: Speaker (None)] [DISABLED]
          + [DISABLED] <- nid=3D27 [pin: Speaker (None)] [DISABLED]
          + [DISABLED] <- nid=3D29 [beep widget]
          + [DISABLED] <- nid=3D11 [audio mixer]

dev.hdaa.0.nid33_original: 0x02211030 as=3D3 seq=3D0 device=3DHeadphones
conn=3DJack ctype=3D1/8 loc=3DFront color=3DBlack misc=3D0
dev.hdaa.0.nid33_config: 0x02211030 as=3D3 seq=3D0 device=3DHeadphones conn=
=3DJack
ctype=3D1/8 loc=3DFront color=3DBlack misc=3D0
dev.hdaa.0.nid33: pin: Headphones (Black Jack)
     Widget cap: 0x0040058d PWR UNSOL STEREO
    Association: 1 (0x0001)
        Pin cap: 0x0001001c PDC HP OUT EAPD
     Pin config: 0x02211030 as=3D3 seq=3D0 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
          + [DISABLED] <- nid=3D12 [audio mixer]
          + <- nid=3D13 [audio mixer] (selected)

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=3D15 seq=3D0 device=3DSpeaker conn=
=3DNone
ctype=3D1/8 loc=3DRear color=3DBlack misc=3D1
dev.hdaa.0.nid30_config: 0x411111f0 as=3D15 seq=3D0 device=3DSpeaker conn=
=3DNone
ctype=3D1/8 loc=3DRear color=3DBlack misc=3D1
dev.hdaa.0.nid30: pin: Speaker (None) [DISABLED]
     Widget cap: 0x00400781 PWR DIGITAL UNSOL STEREO
        Pin cap: 0x00000014 PDC OUT
     Pin config: 0x411111f0 as=3D15 seq=3D0 device=3DSpeaker conn=3DNone ct=
ype=3D1/8
loc=3DRear color=3DBlack misc=3D1
    Pin control: 0x00000040 OUT
    Connections: 1
          + <- nid=3D6 [audio output] [DISABLED]

dev.hdaa.0.nid29_original: 0x40700001 as=3D0 seq=3D1 device=3DModem-handset
conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
dev.hdaa.0.nid29_config: 0x40700001 as=3D0 seq=3D1 device=3DModem-handset
conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
dev.hdaa.0.nid29: beep widget
     Widget cap: 0x00700400 PWR
    Association: -2 (0x0000)
            OSS: speaker (speaker)
        Pin cap: 0x00000020 IN
     Pin config: 0x40700001 as=3D0 seq=3D1 device=3DModem-handset conn=3DNo=
ne
ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
    Pin control: 0x00000020 IN

dev.hdaa.0.nid28: vendor widget [DISABLED]
     Widget cap: 0x00f00000

dev.hdaa.0.nid27_original: 0x411111f0 as=3D15 seq=3D0 device=3DSpeaker conn=
=3DNone
ctype=3D1/8 loc=3DRear color=3DBlack misc=3D1
dev.hdaa.0.nid27_config: 0x411111f0 as=3D15 seq=3D0 device=3DSpeaker conn=
=3DNone
ctype=3D1/8 loc=3DRear color=3DBlack misc=3D1
dev.hdaa.0.nid27: pin: Speaker (None) [DISABLED]
     Widget cap: 0x0040058f PWR UNSOL STEREO
        Pin cap: 0x0001373c PDC HP OUT IN VREF[ 50 80 100 GROUND HIZ ] EAPD
     Pin config: 0x411111f0 as=3D15 seq=3D0 device=3DSpeaker conn=3DNone ct=
ype=3D1/8
loc=3DRear color=3DBlack misc=3D1
    Pin control: 0x00000020 IN
           EAPD: 0x00000002 EAPD
     Output amp: 0x80000000 mute=3D1 step=3D0 size=3D0 offset=3D0 (0/0dB)
      Input amp: 0x00270300 mute=3D0 step=3D3 size=3D39 offset=3D0 (0/30dB)
    Connections: 2
          + [DISABLED] <- nid=3D12 [audio mixer] (selected)
          + <- nid=3D13 [audio mixer]

dev.hdaa.0.nid26_original: 0x411111f0 as=3D15 seq=3D0 device=3DSpeaker conn=
=3DNone
ctype=3D1/8 loc=3DRear color=3DBlack misc=3D1
dev.hdaa.0.nid26_config: 0x411111f0 as=3D15 seq=3D0 device=3DSpeaker conn=
=3DNone
ctype=3D1/8 loc=3DRear color=3DBlack misc=3D1
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=3D15 seq=3D0 device=3DSpeaker conn=3DNone ct=
ype=3D1/8
loc=3DRear color=3DBlack misc=3D1
    Pin control: 0x00000000
      Input amp: 0x00270300 mute=3D0 step=3D3 size=3D39 offset=3D0 (0/30dB)

dev.hdaa.0.nid25_original: 0x411111f0 as=3D15 seq=3D0 device=3DSpeaker conn=
=3DNone
ctype=3D1/8 loc=3DRear color=3DBlack misc=3D1
dev.hdaa.0.nid25_config: 0x411111f0 as=3D15 seq=3D0 device=3DSpeaker conn=
=3DNone
ctype=3D1/8 loc=3DRear color=3DBlack misc=3D1
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=3D15 seq=3D0 device=3DSpeaker conn=3DNone ct=
ype=3D1/8
loc=3DRear color=3DBlack misc=3D1
    Pin control: 0x00000020 IN
      Input amp: 0x00270300 mute=3D0 step=3D3 size=3D39 offset=3D0 (0/30dB)

dev.hdaa.0.nid24_original: 0x411111f0 as=3D15 seq=3D0 device=3DSpeaker conn=
=3DNone
ctype=3D1/8 loc=3DRear color=3DBlack misc=3D1
dev.hdaa.0.nid24_config: 0x411111f0 as=3D15 seq=3D0 device=3DSpeaker conn=
=3DNone
ctype=3D1/8 loc=3DRear color=3DBlack misc=3D1
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=3D15 seq=3D0 device=3DSpeaker conn=3DNone ct=
ype=3D1/8
loc=3DRear color=3DBlack misc=3D1
    Pin control: 0x00000020 IN
      Input amp: 0x00270300 mute=3D0 step=3D3 size=3D39 offset=3D0 (0/30dB)

dev.hdaa.0.nid23_original: 0x40000000 as=3D0 seq=3D0 device=3DLine-out conn=
=3DNone
ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
dev.hdaa.0.nid23_config: 0x40000000 as=3D0 seq=3D0 device=3DLine-out conn=
=3DNone
ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
dev.hdaa.0.nid23: pin: Line-out (None) [DISABLED]
     Widget cap: 0x0040050c PWR
        Pin cap: 0x00000010 OUT
     Pin config: 0x40000000 as=3D0 seq=3D0 device=3DLine-out conn=3DNone
ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
    Pin control: 0x00000000
     Output amp: 0x80000000 mute=3D1 step=3D0 size=3D0 offset=3D0 (0/0dB)
    Connections: 1
          + [DISABLED] <- nid=3D15 [audio mixer] [DISABLED]

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: 0x90171120 as=3D2 seq=3D0 device=3DSpeaker conn=
=3DFixed
ctype=3DAnalog loc=3DInternal color=3DBlack misc=3D1
dev.hdaa.0.nid20_config: 0x90171120 as=3D2 seq=3D0 device=3DSpeaker conn=3D=
Fixed
ctype=3DAnalog loc=3DInternal color=3DBlack misc=3D1
dev.hdaa.0.nid20: pin: Speaker (Fixed)
     Widget cap: 0x0040058d PWR UNSOL STEREO
    Association: 0 (0x0001)
        Pin cap: 0x00010014 PDC OUT EAPD
     Pin config: 0x90171120 as=3D2 seq=3D0 device=3DSpeaker conn=3DFixed
ctype=3DAnalog loc=3DInternal color=3DBlack misc=3D1
    Pin control: 0x00000040 OUT
           EAPD: 0x00000000
     Output amp: 0x80000000 mute=3D1 step=3D0 size=3D0 offset=3D0 (0/0dB)
    Connections: 1
          + <- nid=3D12 [audio mixer]

dev.hdaa.0.nid19: vendor widget [DISABLED]
     Widget cap: 0x00f00000

dev.hdaa.0.nid18_original: 0x90a60140 as=3D4 seq=3D0 device=3DMic conn=3DFi=
xed
ctype=3DDigital loc=3DInternal color=3DUnknown misc=3D1
dev.hdaa.0.nid18_config: 0x90a60140 as=3D4 seq=3D0 device=3DMic conn=3DFixe=
d
ctype=3DDigital loc=3DInternal color=3DUnknown misc=3D1
dev.hdaa.0.nid18: pin: Mic (Fixed)
     Widget cap: 0x0040040b PWR STEREO
    Association: 2 (0x0001)
            OSS: monitor (monitor)
        Pin cap: 0x00000020 IN
     Pin config: 0x90a60140 as=3D4 seq=3D0 device=3DMic conn=3DFixed ctype=
=3DDigital
loc=3DInternal color=3DUnknown misc=3D1
    Pin control: 0x00000020 IN
      Input amp: 0x00270300 mute=3D0 step=3D3 size=3D39 offset=3D0 (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: audio mixer [DISABLED]
     Widget cap: 0x0020010a
      Input amp: 0x80000000 mute=3D1 step=3D0 size=3D0 offset=3D0 (0/0dB)
    Connections: 1
          + [DISABLED] <- nid=3D13 [audio mixer]

dev.hdaa.0.nid14: vendor widget [DISABLED]
     Widget cap: 0x00f00000

dev.hdaa.0.nid13: audio mixer
     Widget cap: 0x0020010b STEREO
    Association: 1 (0x0001)
            OSS: pcm, speaker
      Input amp: 0x80000000 mute=3D1 step=3D0 size=3D0 offset=3D0 (0/0dB)
    Connections: 2
          + <- nid=3D3 [audio output]
          + <- nid=3D11 [audio mixer]

dev.hdaa.0.nid12: audio mixer
     Widget cap: 0x0020010b STEREO
    Association: 0 (0x0001)
            OSS: pcm, speaker
      Input amp: 0x80000000 mute=3D1 step=3D0 size=3D0 offset=3D0 (0/0dB)
    Connections: 2
          + <- nid=3D2 [audio output]
          + <- nid=3D11 [audio mixer]

dev.hdaa.0.nid11: audio mixer
     Widget cap: 0x0020010b STEREO
    Association: -2 (0x0000)
            OSS: speaker
      Input amp: 0x80051f17 mute=3D1 step=3D31 size=3D5 offset=3D23 (-34/12=
dB)
    Connections: 5
          + [DISABLED] <- nid=3D24 [pin: Speaker (None)] [DISABLED]
          + [DISABLED] <- nid=3D25 [pin: Speaker (None)] [DISABLED]
          + [DISABLED] <- nid=3D26 [pin: Speaker (None)] [DISABLED]
          + [DISABLED] <- nid=3D27 [pin: Speaker (None)] [DISABLED]
          + <- nid=3D29 [beep widget]

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=3D1 step=3D63 size=3D2 offset=3D23 (-17/30=
dB)
    Connections: 1
          + [DISABLED] <- nid=3D34 [audio mixer] [DISABLED]

dev.hdaa.0.nid8: audio input
     Widget cap: 0x0010051b PWR STEREO
    Association: 2 (0x0001)
     Stream cap: 0x00000001 PCM
        PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz
      Input amp: 0x80023f17 mute=3D1 step=3D63 size=3D2 offset=3D23 (-17/30=
dB)
    Connections: 1
          + <- nid=3D35 [audio mixer]

dev.hdaa.0.nid7: vendor widget [DISABLED]
     Widget cap: 0x00f00000

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
     Widget cap: 0x0000041d PWR STEREO
    Association: 1 (0x0001)
            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.nid2: audio output
     Widget cap: 0x0000041d PWR STEREO
    Association: 0 (0x0001)
            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.%parent: hdacc0
dev.hdaa.0.%pnpinfo: type=3D0x01 subsystem=3D0x10251193
dev.hdaa.0.%location: nid=3D1
dev.hdaa.0.%driver: hdaa
dev.hdaa.0.%desc: Realtek ALC255 Audio Function Group
dev.hdaa.%parent:

Thanks!

--=20
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2ByoEx8YK2xG7k6sfEgvLvTtCv64=eJ8icei6y8W=36PgOYjdw>