Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Oct 2018 14:39:49 +0100
From:      Johannes Lundberg <johalun0@gmail.com>
To:        Jakob Alvermark <jakob@alvermark.net>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: Sound issues with Dell Latitude 7490 (kabylake)
Message-ID:  <CAECmPws63Pn9J4uxrrvjfa%2B9f5JWp4eRxhB93V-FB1O1e3RU%2Bg@mail.gmail.com>
In-Reply-To: <a8f4cc37-8639-ab64-b3cb-4239127f9e43@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> <a8f4cc37-8639-ab64-b3cb-4239127f9e43@alvermark.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000051af6b0577532e27
Content-Type: text/plain; charset="UTF-8"

On Wed, Oct 3, 2018 at 2:30 PM Jakob Alvermark <jakob@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)
> >> @@ -5034,11 +5034,13 @@
> >>            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@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
@@ -58,11 +58,11 @@
 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
@@ -81,11 +81,11 @@
 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)
@@ -104,20 +104,20 @@
 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@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
>

--00000000000051af6b0577532e27
Content-Type: application/octet-stream; name="dev_hdaa_0.zip"
Content-Disposition: attachment; filename="dev_hdaa_0.zip"
Content-Transfer-Encoding: base64
Content-ID: <f_jmt769wv0>
X-Attachment-Id: f_jmt769wv0

UEsDBBQAAAAIABB0Q03I1JVn8wUAAEQqAAATABwAZGV2X2hkYWFfMF9vcmlnLnR4dFVUCQAD78S0
W+/EtFt1eAsAAQTpAwAABOkDAADtWltv4jgUfu+vOC8rUe10xnauoOWBKe2U3bYgmO5IW41GaWI6
USFmk9C5/Po9cRLIjVJoyO5KTaUmEPsc+/P3HR/bOPzx7VfHst6Stz63hTd17ztAjpz11/cL8SV9
Ufw+CK2QF7921+VJ94HzBdD4xuStVDgxQrqOG1h3M+5g+dUjWz0W6lX5Tt1OhW/zIOQ+F2/cR59P
NRLfzeROSfLwJvqXNeG5jqJ3wFo6roCAz7gdCv8IouuT69zzEGxrgY39TohCCCUUJh/PxmdDWaQX
BMJ2rdAVXgcotKJShB7H1ZNrOJl0YC48N7V7KjwPvWCdoAMsU/ZX+O0EsD1dasLtwkWTV64NrXP3
O3eOP0Mrbh0+5+rc9geT3vvLs/7nVfV2Uv3S9fiJWIbQuhYeRxPrskdFDLQUgzm687MlK7FgERZ3
WSwABt4CfVlzWcQk8QXzZci7FHB0Fl0CgfuT401MpwEP8aFF3hHn/XEZGH1LJ5madHKy4NYDtrii
j1ssaC+2oL/YgvFiCzjYd5HYvskR2la8klolMqj/MTJor2TYjwzFgVW+CN+9dz1rJkeOMUpx9MAK
ugyD3984BljBtXn3glvO4iu6DwCDrNf93bIfwA5/LHD43pkwE3b33BcekkDMhN99P4vez93A7pKy
z9XskHik08gjlR6pdgiXHZBAZky24vKR0eNqFquEaKYDo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fxT20+ma/xq4if9uz4Gbn47RK0J6eM/3VA0yiu
TqjSH0mVorf6GVUsWrfCDy+d5k/5XgpDviFqZi5whXbXNEnUNEcou0dRpU4dJCabMLcCW37lEykJ
zdCMnFowjQLY8IvWia69q9xUyPd1lw5W/iKjSqMt7Dm08N/+XGw4Lr8sLJ97YQfws22T/CsPde1U
dEBKQXSFFF/eBT/QxRw/UsJMYlI7VweFYhIm+QOw3DvHdx+5L11Z+Rc8sDsw5tYs5A/Quzxlmg49
OVbnS09mCvjgi+Xi6B9QSwECHgMUAAAACAAQdENNyNSVZ/MFAABEKgAAEwAYAAAAAAABAAAApIEA
AAAAZGV2X2hkYWFfMF9vcmlnLnR4dFVUBQAD78S0W3V4CwABBOkDAAAE6QMAAFBLAQIeAxQAAAAI
AIlzQ02qfBs+9gUAAFEqAAAWABgAAAAAAAEAAACkgUAGAABkZXZfaGRhYV8wX3BhdGNoZWQudHh0
VVQFAAPyw7RbdXgLAAEE6QMAAATpAwAAUEsFBgAAAAACAAIAtQAAAIYMAAAAAA==
--00000000000051af6b0577532e27--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAECmPws63Pn9J4uxrrvjfa%2B9f5JWp4eRxhB93V-FB1O1e3RU%2Bg>