From nobody Tue Dec 16 07:41:27 2025 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=1650874995; cv=none; d=zohomail.com; s=zohoarc; b=XKKAKAnCo2P14dQWhOkrBlH7kvlji35O4wMrJ8oWcY7jcfaT5x8oWb+8i74D8Z/tu/mNp0amX5lHhhgFPglGegVtuE7tjF+xVK2Fzsl/gd8MzhqUf00ybth+R1pSIX9uYmIa6KVR/ugLhlFcAdoLKuGCNyR0OcsYRo+KKtGB89I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650874995; h=Content-Type:Content-Transfer-Encoding:Cc: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=bwBj2TaBRASZZSGjsc9HqXLMt7MyjxjnAoNllDw6MNM=; b=QUu3zjEatERzjV8hMzkxtPmCcFWx8cCPn7nNxOxTGE24ig3lqEUX537Yp3pQBU2wUdLiezr4jRa+e7Haaea5Pyc1xDoOS1edL7xU8tVJjTtFILOBCEHyE6177SOn8B7nllSPfcGb09SLFnM8xqzHpJwbjo1csz12tDlA15WfACg= 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 1650874995618213.46955544905154; Mon, 25 Apr 2022 01:23:15 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-644-3SVikKFHPvG_AkFnP-kzvg-1; Mon, 25 Apr 2022 04:22:27 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4E66D18E52A5; Mon, 25 Apr 2022 08:22:16 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 08DAFC44CC2; Mon, 25 Apr 2022 08:22:16 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9E5DB193F50C; Mon, 25 Apr 2022 08:22:13 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id A54391940352 for ; Mon, 25 Apr 2022 08:22:11 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 789B342B939; Mon, 25 Apr 2022 08:22:11 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 750A742B931 for ; Mon, 25 Apr 2022 08:22:11 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5BD73805F6D for ; Mon, 25 Apr 2022 08:22:11 +0000 (UTC) Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-227-6MpJ_xTFNhi4XT594WegkA-1; Mon, 25 Apr 2022 04:22:07 -0400 Received: by mail-wr1-f72.google.com with SMTP id s14-20020adfa28e000000b0020ac7532f08so1766552wra.15 for ; Mon, 25 Apr 2022 01:22:07 -0700 (PDT) Received: from wheatley.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id v6-20020a056000144600b0020a9a1627e2sm8374495wrx.15.2022.04.25.01.22.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 01:22:05 -0700 (PDT) Received: from wheatley.redhat.com (wheatley.k8r.cz [127.0.0.1]) by wheatley.localdomain (Postfix) with ESMTP id 6890067B1B61; Mon, 25 Apr 2022 10:22:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650874994; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=bwBj2TaBRASZZSGjsc9HqXLMt7MyjxjnAoNllDw6MNM=; b=cYysisP1dQ/LCk/V1cT77gAUfgLwTx4xVISMCeyrtM3Tj78d462dy0jTVzN18X3mmLEzzk iH5d2lPttsXT2ZDOfyxLlw7ek4wItabemKXP0AC3rvxjXij73w6D0oSZ3ErkR8n5bd4Wis rsuPEDJ1coOfW8LPYazJH9iXscJzQoo= X-MC-Unique: 3SVikKFHPvG_AkFnP-kzvg-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: 6MpJ_xTFNhi4XT594WegkA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bwBj2TaBRASZZSGjsc9HqXLMt7MyjxjnAoNllDw6MNM=; b=xINzsutc8q5M+5WGmtKFX12b4gJWRwKZlq12RgHNfqoQDOeUrG/R8H/cTSLRrL2dDw P8AaAjzIx5QHSFdvGzw87XUI4uX4BPFBH9/73W3kODOu8PRFv9TfyrfmF7XWOG6sODPZ /My/0XXdrKJjvMjz3Y5p++1jwZ7Ue+YH3LmFZwsgtPQ996vCK+BM6wuVXxh7SqZh+UTU bZ6aZ4i0G/ksD/QZ6H6uuMNk8ByUxx9JLlBGnEd1YfENBefqzGdjmBPNYfTolMKVxRmN I3K5pqHVIxz9Kz2B6XtZSmEulBcPlcWHecyKAQE8zCXMMfdzMCC6ta+eBOGfBrgcL89w M6gQ== X-Gm-Message-State: AOAM531BVVoA2dnBqtS7Gnn9cQzZZ9exBAMVq+AS6CbHTIvMDcWtlSiI GxCAb3golB5ZnJ/qi9bjjzt37CzQHEZxuLALAXF6KJ+a+qujEbQMKzWJZ+iQSWMoNuDbOk4qiVG tBo3Wbv6tlE3zKsDgrAE= X-Received: by 2002:a05:6000:1686:b0:20a:96e0:9bbe with SMTP id y6-20020a056000168600b0020a96e09bbemr13086395wrd.635.1650874926175; Mon, 25 Apr 2022 01:22:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw86C2gO2mMfKjeVrOKrDA/Qz/F6XRAJwprg6q1Fd+mFJa4HUgm+acUIsw2U/W4vncKhcrY0w== X-Received: by 2002:a05:6000:1686:b0:20a:96e0:9bbe with SMTP id y6-20020a056000168600b0020a96e09bbemr13086362wrd.635.1650874925990; Mon, 25 Apr 2022 01:22:05 -0700 (PDT) From: Martin Kletzander To: qemu-devel@nongnu.org Subject: [PATCH 12/18] hw/ppc: Support machine-default audiodev with fallback Date: Mon, 25 Apr 2022 10:21:55 +0200 Message-Id: <9e9864dfe1cea988e7fdca14a1425d80e5895094.1650874791.git.mkletzan@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Stefan Hajnoczi , libvir-list@redhat.com, Christian Schoenebeck , Yanan Wang , Gerd Hoffmann , "Edgar E. Iglesias" , Qiuhao Li , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Marcel Apfelbaum , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Laurent Vivier , Thomas Huth , Alistair Francis , Alexander Bulekov , Bandan Das , qemu-arm@nongnu.org, Jan Kiszka , Pavel Dovgalyuk , Eduardo Habkost , Darren Kenny , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-ppc@nongnu.org, Paolo Bonzini Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 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: 1650874996697100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Martin Kletzander --- hw/ppc/prep.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c index bf622aa38fab..52d801afb307 100644 --- a/hw/ppc/prep.c +++ b/hw/ppc/prep.c @@ -46,6 +46,7 @@ #include "elf.h" #include "qemu/units.h" #include "kvm_ppc.h" +#include "audio/audio.h" =20 /* SMP is not enabled, for now */ #define MAX_CPUS 1 @@ -304,6 +305,9 @@ static void ibm_40p_init(MachineState *machine) dev =3D DEVICE(isa_dev); qdev_prop_set_uint32(dev, "iobase", 0x830); qdev_prop_set_uint32(dev, "irq", 10); + + qdev_prop_set_string(dev, "audiodev", + audio_maybe_init_dummy("ppc.defaudio")); isa_realize_and_unref(isa_dev, isa_bus, &error_fatal); =20 isa_dev =3D isa_new("pc87312"); --=20 2.35.1