Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2018 21:43:07 +0200
From:      Oliver Pinter <oliver.pinter@hardenedbsd.org>
To:        current@freebsd.org, Jakob Alvermark <jakob@alvermark.net>
Cc:        freebsd-current <freebsd-current@freebsd.org>, emaste@freebsd.org
Subject:   Re: Sound issues with Dell Latitude 7490 (kabylake)
Message-ID:  <CAPQ4ffvKe6dcyQvRHB=6016c=c1j505NvhFqVf6XrqKzGpznjg@mail.gmail.com>
In-Reply-To: <CAPQ4fftd--WZ5c0tBTPEndT51VMLtpU%2BWu5CRVhdBX6cjOVAXQ@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> <a8f4cc37-8639-ab64-b3cb-4239127f9e43@alvermark.net> <20181006120427.GM1118@albert.catwhisker.org> <CAPQ4fftd--WZ5c0tBTPEndT51VMLtpU%2BWu5CRVhdBX6cjOVAXQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/16/18, Oliver Pinter <oliver.pinter@hardenedbsd.org> wrote:
> On 10/6/18, David Wolfskill <david@catwhisker.org> wrote:
>> On Wed, Oct 03, 2018 at 03:28:45PM +0200, Jakob Alvermark wrote:
>>> ...
>>> 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?
>>> .....
>>
>> I have run:
>>
>> 	uname -a && sysctl dev.pcm dev.hdaa
>>
>> for each of stable/11 and head, both unpatched and patched.  (The
>> "unpatched" versions were a bit older -- almost a week, for stable/11;
>> from back in August, for head -- but that does not appear to be
>> significant in the present case.)
>>
>> The files are accessible from
>> <http://www.catwhisker.org/~david/FreeBSD/m4800/sound/>.
>>
>> The sysctl output is the same for stable/11 & head:
>>
>> g1-215(11.2-S)[9] foreach f ( sound_info_* )
>> foreach? echo -n "${f}: " && tail +2 $f | md5
>> foreach? end
>> sound_info_11_patched: 90c26fbae2031174656207f66e1a39ec
>> sound_info_11_unpatched: cb9239fb33901086f56527c22576097f
>> sound_info_12_patched: 90c26fbae2031174656207f66e1a39ec
>> sound_info_12_unpatched: cb9239fb33901086f56527c22576097f
>> g1-215(11.2-S)[12]
>>
>> A unidiff for the "head" versions:
>>
>> g1-215(11.2-S)[12] diff -u sound_info_12_{un,}patched
>> --- sound_info_12_unpatched     2018-10-06 04:04:36.041741000 -0700
>> +++ sound_info_12_patched       2018-10-06 04:00:26.681350000 -0700
>> @@ -1,4 +1,4 @@
>> -FreeBSD g1-215.catwhisker.org 12.0-ALPHA2 FreeBSD 12.0-ALPHA2 #276
>> r338043M/338043:1200078: Sun Aug 19 04:32:07 PDT 2018
>> root@g1-215.catwhisker.org:/common/S3/obj/usr/src/amd64.amd64/sys/CANARY
>> amd64
>> +FreeBSD g1-215.catwhisker.org 12.0-ALPHA8 FreeBSD 12.0-ALPHA8 #131
>> r339212M/339212: Sat Oct  6 03:52:20 PDT 2018
>> root@g1-215.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY
>> amd64
>>  dev.pcm.3.bitperfect: 0
>>  dev.pcm.3.buffersize: 65536
>>  dev.pcm.3.rec.vchanformat: s16le:2.0
>> @@ -111,7 +111,7 @@
>>       Widget cap: 0x00400781 PWR DIGITAL UNSOL STEREO
>>          Pin cap: 0x00000014 PDC OUT
>>       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: 0x00000040 OUT
>>      Connections: 1
>>            + <- nid=6 [audio output] [DISABLED]
>>
>> @@ -134,7 +134,7 @@
>>       Widget cap: 0x0040058f PWR UNSOL STEREO
>>          Pin cap: 0x00003734 PDC OUT 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
>>       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
>> @@ -147,7 +147,7 @@
>>       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.1.nid25_original: 0x01a1903e as=3 seq=14 device=Mic conn=Jack
>> ctype=1/8 loc=Rear color=Pink misc=0
>> g1-215(11.2-S)[13]
>>
>> Peace,
>> david
>
> Is there any chance to get these workarounds / fixes for dell machines
> in the main tree?

With Jakob's workaround - to comment out the cleaning of hda pin
states - my laptop's sound started to work.
It's a Dell E5440. So thanks Jakob! :)

>
>
>> --
>> David H. Wolfskill				david@catwhisker.org
>> Women (and decent men): vote against supporters of Trump's misogyny!
>>
>> See http://www.catwhisker.org/~david/publickey.gpg for my public key.
>>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPQ4ffvKe6dcyQvRHB=6016c=c1j505NvhFqVf6XrqKzGpznjg>