From nobody Mon Feb 9 13:35:21 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1642434836; cv=none; d=zohomail.com; s=zohoarc; b=JAvf6r4Ovkc2OdYQthNodnWz0u5F7u8paPWupJCuVuRcxzjoOr7kK8yg8tMBbNzrsQceQyvftCF7ZJ5Frg8ucDwY7QCp0Flbkg8u/16omIOgx1lKGv7EThR1WwgM+Od6x1+Hnf5OKOsSXKOyE2Z3pbHzLCi4cSxsWrOD8zWzZM0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1642434836; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=trvVVLiIYMlDOMVrQYZ10n5l0EbQxmAPinGezOlbK8M=; b=la/K/ZKkN/noWzfi0J5ehUMsKuLzw8AylV1jI2uXsKABG4Py0EiZY73kz7cQT/jOQ4VLiaOJiNgBP0/UYeQLBQc9jAH0QGdQpScwetDixhinTVXBqe/zrtUjUr3iZLA7nDLRs+uWzkXCXe1tVWNlG2In+mx/87Hh5di1qEJ716Q= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1642434836711482.5747057225133; Mon, 17 Jan 2022 07:53:56 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-479-6qOIw6G9NbWvvkv7FuVCQw-1; Mon, 17 Jan 2022 10:53:53 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6C66987498C; Mon, 17 Jan 2022 15:53:27 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1815210A48B0; Mon, 17 Jan 2022 15:53:27 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id C78561806D1C; Mon, 17 Jan 2022 15:53:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20HFooSB002388 for ; Mon, 17 Jan 2022 10:50:51 -0500 Received: by smtp.corp.redhat.com (Postfix) id EFA6210A48B0; Mon, 17 Jan 2022 15:50:50 +0000 (UTC) Received: from harajuku.usersys.redhat.com.homenet.telecomitalia.it (unknown [10.40.195.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5DFED10A48B2 for ; Mon, 17 Jan 2022 15:50:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1642434835; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=trvVVLiIYMlDOMVrQYZ10n5l0EbQxmAPinGezOlbK8M=; b=XpFM2ewOS2iTr4No5XK1UogNsOU8epD3nIRJME2UWgerdu3fYxuCR884lrndtd+davC4YG RE6ywSXfNOiDVVDUkLRnbgIPLmJnTaEH/4Bo/9TRZTMh4rsvEebwcPS12c43NYZ8JT/a8s AHiCxw8xkP9IK8IvqQmVvVykX9yKMrI= X-MC-Unique: 6qOIw6G9NbWvvkv7FuVCQw-1 From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 1/2] qemu: Correctly translate QEMU_AUDIO_DRV=wav Date: Mon, 17 Jan 2022 16:50:46 +0100 Message-Id: <20220117155047.119252-2-abologna@redhat.com> In-Reply-To: <20220117155047.119252-1-abologna@redhat.com> References: <20220117155047.119252-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1642434838217100001 Content-Type: text/plain; charset="utf-8" This, along with "pa", is the other case where the libvirt and QEMU names do not match. Signed-off-by: Andrea Bolognani --- 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 =3D VIR_DOMAIN_AUDIO_TYPE_PULSEAUDIO; + } else if (STREQ(audioenv, "wav")) { + *audioBackend =3D VIR_DOMAIN_AUDIO_TYPE_FILE; } else { if (((*audioBackend) =3D virDomainAudioTypeTypeFromString(= audioenv)) < 0) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, --=20 2.34.1