You are not logged in.
Hello everybody,
I have the following problem with MPD: I have two sound cards and switch between them by muting one or the other. Therefore, I configured ALSA to play sound on both cards simultaniously and only control the volume.
My .asoundrc looks like this:
pcm.!default plug:both
ctl.!default {
type hw
card PCH
}
pcm.both {
type route;
slave.pcm {
type multi;
slaves.a.pcm "intel";
slaves.b.pcm "nubert";
slaves.a.channels 2;
slaves.b.channels 2;
bindings.0.slave a;
bindings.0.channel 0;
bindings.1.slave a;
bindings.1.channel 1;
bindings.2.slave b;
bindings.2.channel 0;
bindings.3.slave b;
bindings.3.channel 1;
}
slave.channels 4;
ttable.0.0 1;
ttable.1.1 1;
ttable.0.2 1;
ttable.1.3 1;
}
ctl.both {
type hw;
card PCH;
}
pcm.intel {
type dmix
ipc_key 1024
slave.pcm {
type hw
card PCH
}
}
pcm.nubert {
type dmix
ipc_key 2048
slave.pcm {
type hw
card UAC3556B
}
}
ctl.intel {
type hw
card PCH
}
ctl.nubert {
type hw
card UAC3556B
}Unfortunately, in contrast to ALL other software I am using, MPD does not like this. When I use the following output configuration, I can only hear something on the pcm.intel card, but it won't work with the pcm.nubert.
audio_output {
type "alsa"
name "MPD ALSA"
mixer_type "software"
mixer_device "default"
mixer_control "PCM"
}What am I doing wrong? Why does MPD differ between the devices at all?
---- EDIT
Stupid me, I am running mpd as root and it therefore doesn't know my .asoundrc. Copying .asoundrc to /etc/asound.conf does solve my issues.
Last edited by janoliver (2013-08-03 21:41:24)
Offline