Date: Thu, 4 Oct 2018 15:27:08 +0200 From: Jakob Alvermark <jakob@alvermark.net> To: Mario Lobo <lobo@bsd.com.br>, freebsd-current@freebsd.org Subject: Re: Sound issues with Dell Latitude 7490 (kabylake) Message-ID: <d4441a51-9c8e-2328-c795-15b0b4154eb3@alvermark.net> In-Reply-To: <CA%2ByoEx9ZV_D-8beYYXhcyh_89BOyMko9uU%2Bo22-850q216YCVQ@mail.gmail.com> 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> <CA%2ByoEx8YK2xG7k6sfEgvLvTtCv64=eJ8icei6y8W=36PgOYjdw@mail.gmail.com> <0d30cccd-352f-00cf-def6-94934be7a2ed@alvermark.net> <CA%2ByoEx9ZV_D-8beYYXhcyh_89BOyMko9uU%2Bo22-850q216YCVQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10/4/18 2:24 PM, Mario Lobo wrote: > Sorry for the delay, Jakob. Here it is: > > [~]>sysctl dev.pcm > Em qua, 3 de out de 2018 às 18:32, Jakob Alvermark > <jakob@alvermark.net <mailto:jakob@alvermark.net>> escreveu: > > On 10/3/18 7:39 PM, Mario Lobo wrote: > > Em qua, 3 de out de 2018 às 14:03, Jakob Alvermark > <jakob@alvermark.net <mailto:jakob@alvermark.net>> > > escreveu: > > > >> On 10/3/18 6:19 PM, Mario Lobo wrote: > >> > >> Em qua, 3 de out de 2018 às 10:10, David Wolfskill > <david@catwhisker.org <mailto: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 > >>>> > =================================================================== > >>>> --- 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. > >>> > >>> Peace, > >>> david > >>> -- > >>> David H. Wolfskill david@catwhisker.org > <mailto: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 > > > Could you send me the output of 'sysctl dev.pcm' as well? > > Thanks, > > Jakob > Ok, try this: sysctl dev.hdaa.0.nid33_config="as=2 seq=15" sysctl dev.hdaa.0.reconfig=1 It should make it auto-switch when you plug in headphones. If it works put this in /boot/loader.conf to make it default on boot: hint.hdaa.0.nid33.config="as=2 seq=15" Jakob
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d4441a51-9c8e-2328-c795-15b0b4154eb3>