Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Oct 2018 12:03:50 -0700 (PDT)
From:      "Rodney W. Grimes" <freebsd-rwg@pdx.rh.CN85.dnsmgr.net>
To:        Jakob Alvermark <jakob@alvermark.net>
Cc:        Johannes Lundberg <johalun0@gmail.com>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: Sound issues with Dell Latitude 7490 (kabylake)
Message-ID:  <201810021903.w92J3oak097866@pdx.rh.CN85.dnsmgr.net>
In-Reply-To: <0c23ed5d-c080-91b9-30f8-0e4a49a8e56b@alvermark.net>

next in thread | previous in thread | raw e-mail | index | archive | help
> On 10/2/18 6:27 PM, Rodney W. Grimes wrote:
> >> On 10/1/18 6:43 PM, Rodney W. Grimes wrote:
> >>>> Hi
> >>>>
> >>>> While sound work out of the box (with headphone switching) on the 1-2 year
> >>>> older Latitude 7270, it does not on my new machine.
> >>>>
> >>>> The internal speaker works fine. If I plug in external speakers in the
> >>>> headphone jack, sound still goes to the internal speaker while a very load
> >>>> buzz comes from the external speakers.
> >>>>
> >>>> Do we have a solution for this?
> >>> I do not believe we have anything that detects stuff plugged into
> >>> and removed from the newer sound stuff that needs switching to
> >>> change from internal to external speakers.
> >>>
> >>> I think you need to do what I have to do when I plug in external
> >>> speakers on my thinkpad x230:
> >>> sysctl hw.snd.default_unit=1
> >>>
> >>> And when I unplug them I have to do:
> >>> sysctl hw.snd.default_unit=0
> >>>
> >>> to switch back to the internal speakers.
> >>
> >> Hi Rod,
> >>
> >>
> >> Can you post the output of 'sysctl dev.pcm' and 'sysctl dev.hdaa'
> > Sure:
> > @x230a:~ # sysctl dev.pcm
> > dev.pcm.4.bitperfect: 0
...
...
> 
> Thanks. So if you try this:
> 
> sysctl dev.hdaa.0.nid24_config="as=4 seq=15"
> sysctl dev.hdaa.0.nid21_config="as=1 seq=15"
> sysctl dev.hdaa.0.reconfig=1

Works, thank you!

> That should make pcm0 and pcm1 "merge" into pcm0 and enable 
> auto-switching when plugging something
> 
> in the headphones jack.
> 
> If it works you might want to put the following two lines in 
> /boot/loader.conf
> 
> hint.hdaa.0.nid24.config="as=4 seq=15"
> hint.hdaa.0.nid21.config="as=1 seq=15"


-- 
Rod Grimes                                                 rgrimes@freebsd.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810021903.w92J3oak097866>