mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
qemu: Correctly translate QEMU_AUDIO_DRV=wav
This, along with "pa", is the other case where the libvirt and QEMU names do not match. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
7627c96cdb
commit
9827614378
@ -3488,6 +3488,8 @@ qemuDomainDefSuggestDefaultAudioBackend(virQEMUDriver *driver,
|
|||||||
*/
|
*/
|
||||||
if (STREQ(audioenv, "pa")) {
|
if (STREQ(audioenv, "pa")) {
|
||||||
*audioBackend = VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO;
|
*audioBackend = VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO;
|
||||||
|
} else if (STREQ(audioenv, "wav")) {
|
||||||
|
*audioBackend = VIR_DOMAIN_AUDIO_TYPE_FILE;
|
||||||
} else {
|
} else {
|
||||||
if (((*audioBackend) = virDomainAudioTypeTypeFromString(audioenv)) < 0) {
|
if (((*audioBackend) = virDomainAudioTypeTypeFromString(audioenv)) < 0) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
|
Loading…
Reference in New Issue
Block a user