Lenovo Ideapad 3i (Realtek ALC257) without sound and mic

I've already tried every possible way to make my laptop's audio and microphone work, configuring /boot/loader.conf with these lines >
Code:
hint.hdaa.0.nid33.config="as=0"
hint.hdaa.0.nid25.config="as=4"
I managed to make the audio work, nid33, but the mic didn't work, I tested other values for "as" and when I restarted the machine the option simply disappeared. selecting the microphone, the only successful attempt was when I left only the microphone line, but I had no audio. Can someone help me?
Code:
mpac@freeBSD:~ % cat /dev/sndstat  
Installed devices:
pcm0: <Realtek ALC257 (Right Analog)> (play/rec) default
pcm1: <Intel Tiger Lake (HDMI/DP 8ch)> (play)
Installed devices from userspace:
dsp: <Virtual OSS> (play/rec)
mpac@freeBSD:~ %  

# dmesg | grep hda
hdac0: <Intel Tiger Lake HDA Controller> mem 0x6003238000-0x600323bfff,0x6003000000-0x60030fffff at device 31.
3 on pci0
hdacc0: <Realtek ALC257 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC257 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC257 (Right Analog)> at nid 33 and 25 on hdaa0
hdacc1: <Intel Tiger Lake HDA CODEC> at cad 2 on hdac0
hdaa1: <Intel Tiger Lake Audio Function Group> at nid 1 on hdacc1
pcm1: <Intel Tiger Lake (HDMI/DP 8ch)> at nid 4 on hdaa1
hdac0: <Intel Tiger Lake HDA Controller> mem 0x6003238000-0x600323bfff,0x6003000000-0x60030fffff at device 31.
3 on pci0
hdacc0: <Realtek ALC257 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC257 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC257 (Right Analog)> at nid 33 and 25 on hdaa0
hdacc1: <Intel Tiger Lake HDA CODEC> at cad 2 on hdac0
hdaa1: <Intel Tiger Lake Audio Function Group> at nid 1 on hdacc1
pcm1: <Intel Tiger Lake (HDMI/DP 8ch)> at nid 4 on hdaa1
#
# dmesg | grep pcm
pcm0: <Realtek ALC257 (Right Analog)> at nid 33 and 25 on hdaa0
pcm1: <Intel Tiger Lake (HDMI/DP 8ch)> at nid 4 on hdaa1
pcm0: <Realtek ALC257 (Right Analog)> at nid 33 and 25 on hdaa0
pcm1: <Intel Tiger Lake (HDMI/DP 8ch)> at nid 4 on hdaa1
#
 
Back
Top