[Solved] No USB Sound 2.1 kit

Support with sound and multimedia cards on GhostBSD
Post Reply
vandykmarsu
Posts: 6
Joined: Sat Nov 23, 2019 1:53 pm

[Solved] No USB Sound 2.1 kit

Post 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.
Last edited by vandykmarsu on Mon Mar 02, 2020 12:39 pm, edited 1 time in total.
vandykmarsu
Posts: 6
Joined: Sat Nov 23, 2019 1:53 pm

Re: No USB Sound 2.1 kit

Post 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
wb7odyfred
Posts: 175
Joined: Sat Nov 12, 2016 5:44 pm

Re: [Solved] No USB Sound 2.1 kit

Post by wb7odyfred »

Thank you for this detailed setup. I am testing on GhostBSD-Arm64 on Raspberry Pi 4B with 8gb dram.
wb7odyfred
Posts: 175
Joined: Sat Nov 12, 2016 5:44 pm

Re: [Solved] No USB Sound 2.1 kit

Post by wb7odyfred »

Thank you for this detailed setup. I am testing on GhostBSD-Arm64 on Raspberry Pi 4B with 8gb dram.Ghostbsd-Arm64.blogspot.com
T.me/Arm_Open-Source
wb7odyfred
Posts: 175
Joined: Sat Nov 12, 2016 5:44 pm

Re: [Solved] No USB Sound 2.1 kit

Post by wb7odyfred »

Thank you for this detailed setup. I am testing USB Headphone headset Logitech H390 on GhostBSD-Arm64 on Raspberry Pi 4B with 8gb dram.Ghostbsd-Arm64.blogspot.com
T.me/Arm_Open-Source
Post Reply