Monday, December 17, 2007

OpenBSD and USB audio cards

If you have a USB audio card - uaudio(4) you must configure OpenBSD to use the proper sound device:


$ tail -f /var/log/messages

Plug in your USB audio card...

Use usbdevs(8) and dmesg(8) to figure out what audio devices it uses...

Configure /dev/audio, /dev/audioctl, /dev/mixer to point to /dev/audio1 or whatever dmesg reports as your new audio card and check if everything is OK;

$ ls -l /dev/audio* /dev/audioctl* /dev/mixer* /dev/sound* && audioctl -a && mixerctl -a"

Test your sound:

"cat /dev/urandom > /dev/audio"
Enjoy.

1 comments:

minoche said...

Sometimes one has to create the audio1 device, even if it's mentioned in the dmesg traces.
#sh MAKEDEV /dev/audio1
will do the trick.
I hope the others are then luckier than I am. I get no sound and a warning saytin that opening a low/full speed isochronous device, does not work yet on the console.
After searching quite extensively, http://info.iet.unipi.it/~luigi/FreeBSD/linux_bsd_kld.html is actually making me think that the usb audio incorporated inside my eizo screen is a lame usb 1.0 device ! And connecting it to the usb 2 of my machine would be explaining why I get such a lousy sound quality on linux, and that openBSD refuses to run the thing altogether. I don't explain to myself the quality of the sound under windows :'( any ideas anyone ?