From owner-freebsd-current@freebsd.org Tue Oct 2 19:15:10 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 F013810A90F4 for ; Tue, 2 Oct 2018 19:15:09 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6FA917827D for ; Tue, 2 Oct 2018 19:15:09 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 682a511b; Tue, 2 Oct 2018 21:15:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=i6Nbt9b5g3JhyITbrr/SmbzUi1A=; b=Yjo4uW2uJQC1n3c9aNovQNmiizBS wS+l/M54L8/vVD2rMNF4TL7xp8fExNwgcwKrSJ+d0cHNrBenftsUZLkBGUglsp/L brjV2nwDdWtArd7Oip4QQ4uXHtECD2Qis5jKW1Gat/a/0zPzIPMgYy+1KKbSdhMy +H6azZkwtsJQy20= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=HKzdwwa1JG5j40/UWwjXhbLiPtodXXu8NTNOAoOTJN/wNW5Y/y6gV8eK f43LFARpGCUx+9synVQwZsbNisKpKAGbdHCSthApwuHjM1MUXt+g0NoIfvK76K+B Yvy81uxLxSAfEMRspjhviHaC3wmdTLKc6h5ZmYfOlUpFwTiDU38= Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 7edfc583 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 2 Oct 2018 21:15:07 +0200 (CEST) Date: Tue, 2 Oct 2018 21:15:07 +0200 From: Emmanuel Vadot To: "Rodney W. Grimes" Cc: Jakob Alvermark , Johannes Lundberg , freebsd-current Subject: Re: Sound issues with Dell Latitude 7490 (kabylake) Message-Id: <20181002211507.3ea80849c38f238498de87fd@bidouilliste.com> In-Reply-To: <201810021903.w92J3oak097866@pdx.rh.CN85.dnsmgr.net> References: <0c23ed5d-c080-91b9-30f8-0e4a49a8e56b@alvermark.net> <201810021903.w92J3oak097866@pdx.rh.CN85.dnsmgr.net> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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:15:10 -0000 On Tue, 2 Oct 2018 12:03:50 -0700 (PDT) "Rodney W. Grimes" wrote: > > 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! Dude that's some serious shit ! Jacob, is this documented somewhere ? I haven't read the driver code but what does as/seq etc represent there ? What could we do to make this easier for users ? > > 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 > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" -- Emmanuel Vadot