I’ve recently purchased a C-Media USB Headphone Set USB sound card. And am able to play MPD through it. I can’t however play a second sound when mopidy is playing a stream. If a play a file with aplay I get the following error:
aplay: main:722: audio open error: Device or resource busy
How can I configure Mopidy so that it uses mixing and doesn’t ‘claim’ the device? I’m relatively new to Raspbian. And I’m using raspbian Jessie latest release.
Much obliged
p.s. Thanx for creating this great music player. I already used Pi MusicBox for a long time. But decided to try Mopidy without Wouter’s add ons.
The link you’ve provided helped me out a lot. But I had to add some permissions (ipc_perm). So for anyone who comes across the same problem. Here’s my /etc/asound.conf
This week I received a mini Hifiberry. And a hard time getting it to work with ALSA. The previous config worked perfectly for a cheap USB sound card. But the hifiberry mini also needs a soft volume. After searching around I came accross this simple asound.conf which works perfect and is much more simple.
pcm.!default {
type plug
slave.pcm “softvol” #make use of softvol
}
pcm.softvol {
type softvol
slave {
pcm “dmix” #redirect the output to dmix (instead of “hw:0,0”)
}
control {
name “PCM” #override the PCM slider to set the softvol volume level globally
card 0
}
}