Re: Sound issues with Dell Latitude 7490 (kabylake)

From: Oliver Pinter <oliver.pinter_at_hardenedbsd.org>
Date: Tue, 16 Oct 2018 21:43:07 +0200
On 10/16/18, Oliver Pinter <oliver.pinter_at_hardenedbsd.org> wrote:
> On 10/6/18, David Wolfskill <david_at_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
>> _at__at_ -1,4 +1,4 _at__at_
>> -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_at_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_at_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
>> _at__at_ -111,7 +111,7 _at__at_
>>       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]
>>
>> _at__at_ -134,7 +134,7 _at__at_
>>       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
>> _at__at_ -147,7 +147,7 _at__at_
>>       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_at_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.
>>
>
Received on Tue Oct 16 2018 - 17:43:09 UTC

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