I'm having an odd problem running QEMU with sound.
My system has JACK installed and used by most of my other applications. Applications that use ALSA are redirected to JACK as follows:
Code:
pcm.jack {
type jack
playback_ports {
0 system:playback_1
1 system:playback_2
}
capture_ports {
0 system.capture_1
1 system.capture_2
}
}
pcm.jackplug {
type plug
slave.pcm "jack"
hint.description "JACK Audio Connection Kit"
}
pcm.!default {
type plug
slave { pcm "jack" }
}
While any other ALSA aplication works fine, and shows up in QJackCtl as connected to the system playback, when I run QEMU, the plug shows up in QJackCtl but it doesn't connect to system playback. When I try to connect, it fails, and when I use Patchage, I get the message:
Code:
JACK Unable to connect alsa-jack.jackP.8249.0:out_000 -> system:playback_1
I found that I can set QEMU_AUDIO_DRV=sdl, then set SDL_AUDIODRIVER=alsa to get it to work, the plug shows up in QJackCtl and connects, but this way I don't have audio input for the guest, only audio output.
My question is, when I use ALSA directly from QEMU, why doesn't the alsa-jack plug in QJackCtl connect to system playback when any other application's alsa-jack plug does?