From owner-freebsd-current@freebsd.org Tue Oct 2 19:04:03 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6A1F210A8B70 for ; Tue, 2 Oct 2018 19:04:03 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DC59D77C04 for ; Tue, 2 Oct 2018 19:04:02 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id w92J3pBf097867; Tue, 2 Oct 2018 12:03:51 -0700 (PDT) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id w92J3oak097866; Tue, 2 Oct 2018 12:03:50 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201810021903.w92J3oak097866@pdx.rh.CN85.dnsmgr.net> Subject: Re: Sound issues with Dell Latitude 7490 (kabylake) In-Reply-To: <0c23ed5d-c080-91b9-30f8-0e4a49a8e56b@alvermark.net> To: Jakob Alvermark Date: Tue, 2 Oct 2018 12:03:50 -0700 (PDT) CC: Johannes Lundberg , freebsd-current X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2018 19:04:03 -0000 > 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