On Tue, 2 Oct 2018 12:03:50 -0700 (PDT) "Rodney W. Grimes" <freebsd-rwg_at_pdx.rh.CN85.dnsmgr.net> 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: > > > _at_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_at_freebsd.org > _______________________________________________ > freebsd-current_at_freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org" -- Emmanuel Vadot <manu_at_bidouilliste.com> <manu_at_freebsd.org>Received on Tue Oct 02 2018 - 17:15:10 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:18 UTC