|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
MPD, USB DAC and raw audio device configuration
For over a decade I'd been running Linux (Debian based Voyage Linux) on a PC Engines ALIX boards as a silent and headless MPD server for my 2 channel audiophile setup. USB UAC2 drivers came to Linux first, and I was able to use 24 bit 192Khz DACs without issue.
Yesterday I installed OpenBSD 7.0 on and APU2 without issue; installed MPD, pointed it to my NFS music share and was able to use 2 of my USB DACS without issues via sndio: an Ayre QB-9 24bit/192Khz (UAC2) and a NAD D 3020 24bit/96Khz (UAC1). MPD output section: audio_output { type "sndio" name "USB Audio" # device "rsnd/0" mixer_type "disabled" } MPD is running as a normal user: user "nick" No group: #group "nogroup" This works fine via sndio, but resamples all audio to 48Khz; the display on the Ayre (which shows sample rates) confirms as such. When I enable device "rsnd/0" mpd will fail and complain that sndio cannot open output. As per Alexandre Ratchov, using "rsnd/0" should work: "This is the Linux equivalent of bypassing sndiod. This will avoid resampling and format conversions. The OpenBSD syntax is: device "rsnd/0" mixer_type "disabled" From dmesg" assuming the device shows in dmesg as "audio0 at ..."audio0 detached uaudio0 detached uaudio0 at uhub0 port 4 configuration 1 interface 1 "Ayre Acoustics Ayre USB Interface" rev 2.00/1.74 addr 2 uaudio0: class v2, high-speed, async, channels: 2 play, 0 rec, 0 ctls audio0 at uaudio0 ugen0 at uhub0 port 4 configuration 1 "Ayre Acoustics Ayre USB Interface" rev 2.00/1.74 addr 2 I fell like I'm missing something real simple. Any ideas? I've looked high and low on Google for a similar configuration to no avail. |
|
|||
I forgot to add that the APU2 has no on board audio, so there should not be any conflicts with other devices.
|
|
|||
Quote:
Perhaps I'm better off installing Diet Pi on the APU2 for the time being until sndio matures. |
|
|||
Quote:
"Funny, few days ago I sent a diff on tech@ to switch sndiod to 24-bit precision. With this change, you can try: sndiod_flags="-e 24 -r 192000" and you'll get bit-perfect quality for 192kHz files. 96kHz files will be resampled but given the huge filtering margin we've at 192kHz, quality will be preserved." With Linux and Alsa, using the mpd flag, device "hw:0,0" passes audio at native bit rates and sampling rates unmolested to the DAC without resampling. It would be nice to see sndio mimic this behaviour. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mount_ext2fs: /dev/sd1i on /mnt: specified device does not match mounted device | Zielonykid123 | OpenBSD General | 4 | 26th November 2021 01:18 PM |
no audio. | invicta | OpenBSD General | 10 | 27th July 2021 11:03 AM |
Network configuration for a USB broadband device | PapaParrot | OpenBSD General | 50 | 16th April 2018 08:28 PM |
azalia Intel SCH HD Audio strange audio issues | tehsean | OpenBSD General | 3 | 26th August 2012 12:21 AM |
identifying device associated with USB device? | spiderpig | OpenBSD General | 2 | 7th July 2008 05:18 AM |