Page 1 of 1

[Solved] No USB Sound 2.1 kit

Posted: Sat Nov 23, 2019 2:17 pm
by vandykmarsu
Hello GhostBSD User's

I am currently having a problem running my 2.1 kit on GhostBSD 19.10.

I went through FreeBSD forums and tutorials with no results.

I'll come back to you if you can enlighten me please.

Re: No USB Sound 2.1 kit

Posted: Mon Mar 02, 2020 12:37 pm
by vandykmarsu
I share here a find to use a 2.1 speaker kit USB plugged.

Adding USB Driver.


Add driver snd_uaudio to rc.conf:

Code: Select all

sudo nano /etc/rc.conf
Paste:

Code: Select all

snd_uaudio="YES"

Automating boot:

Code: Select all

sudo nano /boot/loader.conf
Paste:

Code: Select all

snd_uaudio_load="YES"
Loading the driver:

Code: Select all

kldload snd_driver

Output configuration.


How to know his output device:

Code: Select all

cat /dev/sndstat
We configure a file in devd:

Code: Select all

sudo nano /etc/devd/usb_hp.conf
Paste the lines and configure pcm unit/number with the output:

Code: Select all

# /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";
};
Paste this line in sysctl with the right pcm:

Code: Select all

sudo nano /etc/sysctl.conf
Then paste:

Code: Select all

hw.snd.default_unit=?

Reboot, after boot 2.1 Kit are singing well