From nobody Mon Feb 9 13:37:00 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1614795558; cv=none; d=zohomail.com; s=zohoarc; b=LuJka/3AVMEhS5kOBrMAuxgXVjYr2edWwH605d/qqlTfcwPf+zWwJMIb/CSgAsKbph8BJK/NRsuZdl6bDT/PUs6vNa4wGpjnL2l1qPlqjOW7X6murbD8im56OPKU1WBvYh4ae4dIRzYj8Y75iHKbeYlnKJpeS/EEwNVpGi85Rck= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614795558; 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=hvmcjSl59dwjRa+LxkLMGYdzRgmI7QF0qb4z0phDx4s=; b=ad0N9dWTSnPWdgxNcB6UkBltBpwC0bPUoaNt/aOuF9wEuvudO31nuSnIvldS0+6jYqxLcshUzGvqykNgYUxU65FtQu3xex/LSyoqbRq3D6vUyCeLFm1SlutNh0g9r31tRIdYLihk2cOjIxS8RnNzdWY9EK33S3MVwtDohqgN3Zs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1614795558899535.90350579027; Wed, 3 Mar 2021 10:19:18 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-464-ZhW5InhKNYqGfa8DEC9Jbg-1; Wed, 03 Mar 2021 13:19:14 -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 EE0DB85B668; Wed, 3 Mar 2021 18:19:07 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C402C100164C; Wed, 3 Mar 2021 18:19:07 +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 859C150032; Wed, 3 Mar 2021 18:19:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 123IIqFq032383 for ; Wed, 3 Mar 2021 13:18:52 -0500 Received: by smtp.corp.redhat.com (Postfix) id 066CC60C13; Wed, 3 Mar 2021 18:18:52 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-115-145.ams2.redhat.com [10.36.115.145]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4967A60BFA; Wed, 3 Mar 2021 18:18:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614795557; 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=hvmcjSl59dwjRa+LxkLMGYdzRgmI7QF0qb4z0phDx4s=; b=DDjZNMnOIvPcB6B7zMt3WwUGD0Ilu01r+UCXDOzMIV6oiT63e5ADUrnLM1ATjmCDsoYUHa Qqu/B2N8z3qHwZI3edRN3JaNVqR18RN3jzwF7LLjhXpylv96MNUSUZofKukG4TNWLsRqAi WyM7gE+plox/8dfDSZR+Y9SEOEgT+p8= X-MC-Unique: ZhW5InhKNYqGfa8DEC9Jbg-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH 05/18] conf: add missing iteration over audio backends Date: Wed, 3 Mar 2021 18:18:21 +0000 Message-Id: <20210303181834.1578756-6-berrange@redhat.com> In-Reply-To: <20210303181834.1578756-1-berrange@redhat.com> References: <20210303181834.1578756-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Fixes 9375bc7373caddd31f1ac5c14a69eac5096ea416 Signed-off-by: Daniel P. Berrang=C3=A9 --- src/conf/domain_conf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 2837ad67a7..34d1673546 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -4411,6 +4411,12 @@ virDomainDeviceInfoIterateFlags(virDomainDefPtr def, if ((rc =3D cb(def, &device, NULL, opaque)) !=3D 0) return rc; } + device.type =3D VIR_DOMAIN_DEVICE_AUDIO; + for (i =3D 0; i < def->naudios; i++) { + device.data.audio =3D def->audios[i]; + if ((rc =3D cb(def, &device, NULL, opaque)) !=3D 0) + return rc; + } device.type =3D VIR_DOMAIN_DEVICE_LEASE; for (i =3D 0; i < def->nleases; i++) { device.data.lease =3D def->leases[i]; --=20 2.29.2