Hi Johannes, I have been wanting the exact same thing on my laptop, so I have been digging around in the hda code. I have got to the point where I can use the headset mic, but I have to manually switch from the internal one. There is no configuration magic, I had to patch the driver. It seems nearly impossible to find docs on Realtek codecs, I have looked at what Linux does in their driver. They change some mysterious registers in the codec, so I my patch just does the same. Which codec do you have? I have the ALC283 ('cat /dev/sndstat' should tell you) Jakob On 3/18/19 4:02 PM, Johannes Lundberg wrote: > Hi > > On my Dell laptop the output audio switches to the headphones > automatically when plugged in, however, the same does not seem to be > true for the mic. Is there any configuration magic that can be done to > use the headphone mic instead of the internal one? > > Here's pin config: > > hdaa0: Dumping AFG pins: > hdaa0: nid 0x as seq device conn jack loc color misc > hdaa0: 18 90a60140 4 0 Mic Fixed Digital Internal Unknown 1 > hdaa0: Caps: IN > hdaa0: 19 40000000 0 0 Line-out None Unknown 0x00 Unknown > 0 DISA > hdaa0: Caps: IN > hdaa0: 20 90170110 1 0 Speaker Fixed Analog Internal Unknown 1 > hdaa0: Caps: OUT EAPD Sense: 0x00000000 (disconnected) > hdaa0: 24 411111f0 15 0 Speaker None 1/8 Rear Black > 1 DISA > hdaa0: Caps: IN VREF Sense: 0x00000000 (disconnected) > hdaa0: 25 411111f0 15 0 Speaker None 1/8 Rear Black > 1 DISA > hdaa0: Caps: IN VREF Sense: 0x80000000 (connected) > hdaa0: 26 411111f0 15 0 Speaker None 1/8 Rear Black > 1 DISA > hdaa0: Caps: IN VREF Sense: 0x00000000 (disconnected) > hdaa0: 27 411111f0 15 0 Speaker None 1/8 Rear Black > 1 DISA > hdaa0: Caps: IN OUT EAPD VREF Sense: 0x00000000 (disconnected) > hdaa0: 30 421212f2 15 2 Speaker None 1/4 Front Black > 2 DISA > hdaa0: Caps: OUT Sense: 0x00000000 (disconnected) > hdaa0: 33 0221101f 1 15 Headphones Jack 1/8 Front Black 0 > hdaa0: Caps: OUT HP EAPD Sense: 0x80000000 (connected) > hdaa0: NumGPIO=3 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1 > hdaa0: GPIO0: disabled > hdaa0: GPIO1: disabled > hdaa0: GPIO2: disabled > hdaa1: Dumping AFG pins: > hdaa1: nid 0x as seq device conn jack loc color misc > hdaa1: 3 18560010 1 0 Digital-out Jack Digital 0x18 Unknown 0 > hdaa1: Caps: OUT hdac0: Command timeout on address 2 > Sense: 0xffffffff (connected, ELD valid) > hdaa1: NumGPIO=0 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=0 > > And in /boot/loader.conf I have this (don't remember why I put it there > or if I need it - it might have been copied over from previous laptop) > > hint.hdaa.0.nid33.config="as=1 seq=15 device=Headphones" > > I'm assuming here that the headphone jack supports mic - it's a 2018 > laptop after all. > > Cheers > > /Johannes > > > _______________________________________________ > 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"Received on Mon Mar 18 2019 - 14:54:29 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:20 UTC