[libvirt PATCH 1/2] qemu: Correctly translate QEMU_AUDIO_DRV=wav

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This, along with "pa", is the other case where the libvirt and
QEMU names do not match.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 src/qemu/qemu_domain.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index a8401bac30..1f7d71bf0f 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -3496,6 +3496,8 @@ qemuDomainDefSuggestDefaultAudioBackend(virQEMUDriver *driver,
              */
             if (STREQ(audioenv, "pa")) {
                 *audioBackend = VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO;
+            } else if (STREQ(audioenv, "wav")) {
+                *audioBackend = VIR_DOMAIN_AUDIO_TYPE_FILE;
             } else {
                 if (((*audioBackend) = virDomainAudioTypeTypeFromString(audioenv)) < 0) {
                     virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
-- 
2.34.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux