I followed these instructions to geta USB audio adapter working so I could use headphones on my Thinkpad T480s laptop. As a novice, I wasn't sure where this was supposed to be pasted:
Also, I think this may have a typo?
I guessed it was part of what was to be added here:Loading the driver:
CODE: SELECT ALL
kldload snd_driver
and that turned out to be correct.sudo nano /boot/loader.conf
Also, I think this may have a typo?
Should that last line "sysctl hw.snd.default_unit=0" be "sysctl hw.snd.default_unit=?" with a question mark instead of a zero? My USB audio adapter is pcm3, so I changed all the question marks to 3's, and I used "sysctl hw.snd.default_unit=3" and that seems to have worked.# /etc/devd/usb_hp.conf
attach 100 {
device-name "pcm?";
action "sysctl hw.snd.default_unit=?";
};
detach 100 {
device-name "pcm?";
action "sysctl hw.snd.default_unit=0";
};
Statistics: Posted by v9n7p — Sat Jan 13, 2024 9:23 pm