Re: Sound issues with Dell Latitude 7490 (kabylake)

From: Johannes Lundberg <johalun0_at_gmail.com>
Date: Wed, 3 Oct 2018 14:39:49 +0100
On Wed, Oct 3, 2018 at 2:30 PM Jakob Alvermark <jakob_at_alvermark.net> wrote:

> On 10/3/18 3:06 PM, David Wolfskill wrote:
> > 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
> >> ===================================================================
> >> --- sys/dev/sound/pci/hda/hdaa.c    (revision 339076)
> >> +++ sys/dev/sound/pci/hda/hdaa.c    (working copy)
> >> _at__at_ -5034,11 +5034,13 _at__at_
> >>            pincap = w->wclass.pin.cap;
> >>
> >>            /* Disable everything. */
> >> +        /*
> >>            w->wclass.pin.ctrl &= ~(
> >>                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 == 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=200526
> > -- now updated to reflect the fix.
>
>
> That's great! Glad to hear it helped.
>
> This is probably not a proper fix, but it helps to understand the problem.
>
> Could you post the output of 'sysctl dev.hdaa' with and without the
> patch so we can see what's different?
>
>
Hi Jakob

Here's my diff from orig to patched (full output zipped and attached)

johannes_at_jm:~ % diff -u -U5 tmp/dev_hdaa_0_orig.txt
tmp/dev_hdaa_0_patched.txt
--- tmp/dev_hdaa_0_orig.txt    2018-10-03 14:32:31.264778000 +0100
+++ tmp/dev_hdaa_0_patched.txt    2018-10-03 14:28:18.767561000 +0100
_at__at_ -58,11 +58,11 _at__at_
 dev.hdaa.0.nid30_config: 0x421212f2 as=15 seq=2 device=Speaker conn=None
ctype=1/4 loc=Front color=Black misc=2
 dev.hdaa.0.nid30: pin: Speaker (None) [DISABLED]
      Widget cap: 0x00400781 PWR DIGITAL UNSOL STEREO
         Pin cap: 0x00000014 PDC OUT
      Pin config: 0x421212f2 as=15 seq=2 device=Speaker conn=None ctype=1/4
loc=Front color=Black misc=2
-    Pin control: 0x00000000
+    Pin control: 0x00000040 OUT
     Connections: 1
           + <- nid=6 [audio output] [DISABLED]

 dev.hdaa.0.nid29_original: 0x40700001 as=0 seq=1 device=Modem-handset
conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
 dev.hdaa.0.nid29_config: 0x40700001 as=0 seq=1 device=Modem-handset
conn=None ctype=Unknown loc=0x00 color=Unknown misc=0
_at__at_ -81,11 +81,11 _at__at_
 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
+    Pin control: 0x00000020 IN
            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)
_at__at_ -104,20 +104,20 _at__at_
 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
+    Pin control: 0x00000020 IN
       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
+    Pin control: 0x00000020 IN
       Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)

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




> Jakob
>
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>

Received on Wed Oct 03 2018 - 11:40:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:18 UTC