From nobody Tue Dec 16 07:33:18 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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.133.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=1650874986; cv=none; d=zohomail.com; s=zohoarc; b=bhc5vJKZVQI0DeKKZgO6CwCK4BYfj8jsAAAHVfJBpJxhajt5FO1lfgJgLF0n7QYr8bWlh6GL1Rnb4acQ9a+fE2syT0jMReJ+FSg6dQSWKoZJo2gKxqa5yf0EF2VTK/ns98g6lMw9L3t1lStBq4Ynr2IV0NjLqf1WMMKQRNxXWGM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650874986; 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=u73kz9B6wJ0lq4eD98kOBj7vDwMC85uO0URBzEu5tl8=; b=j59MwmbRO4WK4vlfm8KphtoMqhAg5ckQq8CzIUb8VeHr1o/qsY66Zgu9FF2tGabXuhzTvc8aY7mfDJBhwZAUrrzB62OYoAuRjwuDZrgDfy5U1Enw1UQ0n4tW+CdJYCwe8eza49Yc27LfGchA/HNNaHSlbITgPRix5vtaSMJK0oo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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.133.124]) by mx.zohomail.com with SMTPS id 1650874986904952.2780908694037; Mon, 25 Apr 2022 01:23:06 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-647-4EE8c5_xOQ-tLB7P8fnRZw-1; Mon, 25 Apr 2022 04:22:18 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3E6F43C01D9F; Mon, 25 Apr 2022 08:22:12 +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 2AB9A42B630; Mon, 25 Apr 2022 08:22:12 +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 7505A193F6E7; Mon, 25 Apr 2022 08:22:09 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 148261947BBD for ; Mon, 25 Apr 2022 08:22:08 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 0610EC28117; Mon, 25 Apr 2022 08:22:08 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0216DC28115 for ; Mon, 25 Apr 2022 08:22:07 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (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 DBBD9833968 for ; Mon, 25 Apr 2022 08:22:07 +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-577-0_pgHKZIPieACN9nLdO6TA-1; Mon, 25 Apr 2022 04:22:06 -0400 Received: by mail-wr1-f72.google.com with SMTP id l11-20020adfc78b000000b0020abc1ce7e4so2424210wrg.1 for ; Mon, 25 Apr 2022 01:22:06 -0700 (PDT) Received: from wheatley.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id d6-20020a5d5386000000b0020a79c74bedsm8138594wrv.79.2022.04.25.01.22.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 01:22:04 -0700 (PDT) Received: from wheatley.redhat.com (wheatley.k8r.cz [127.0.0.1]) by wheatley.localdomain (Postfix) with ESMTP id 4EDAE67B1B5F; 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=1650874985; 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=u73kz9B6wJ0lq4eD98kOBj7vDwMC85uO0URBzEu5tl8=; b=LqO1KAEa70Y0Z4SDk8fKjQYGjloldSHecoCI/RKigKz3FkAjZxD9xfOy242ZviuWM5oeKr qQNzDstWXszg3Rr9WnIIp2OpQty0sbjA7LziHdGwGwD9/ygTpZXWRNDIx7RwJEA/xZ1UyI KkvqRwDSAXk9xcZSsKMqpScsLch13o4= X-MC-Unique: 4EE8c5_xOQ-tLB7P8fnRZw-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: 0_pgHKZIPieACN9nLdO6TA-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=u73kz9B6wJ0lq4eD98kOBj7vDwMC85uO0URBzEu5tl8=; b=FdAgombOFuSDInsQY3987sARLQVNXaeDU40p1F1RwzZ8Qr7CohlPSF4zjSvsQgWajs fiyg5nayfrHmhv61Si1knsGk2cyJYt/S5rGjgT1Yh82sIs+kaXxK3DQHc2shqF+BREhX aifnKt8Ne/FXz0J5EilJD2JMNrjF/W/bQ5/DP+nAoDyV92x8bHqj2AfD0p/GiyqEU696 kgEN5yaLicEVKU9amOlCNPGjmOf0MzCM7SacjyG/GDHCqhqBzmVljj4+PT2mmPFGmbOV EunO4MdKOIO6badVXWwmDoJnUYfC+YBeew5OvperAXEjmg2pwFVEiyVzkuyHOyHgNdvp 9IVw== X-Gm-Message-State: AOAM531y9UsAHnsqvYZ9ci/v1Pn7ywzU4zNFeioIdJRbxVF9Kw5GlQ1Z TYVbduWfm7rLKQE+QrBTbvAQD8utKMkaE/48rxqEd+18sgMVMNQhgLKNbp/lSM+76q47wpX3YsG GNfGPpbbADzI1X/8XXPw= X-Received: by 2002:a5d:50c4:0:b0:20a:c547:454a with SMTP id f4-20020a5d50c4000000b0020ac547454amr13706723wrt.16.1650874925385; Mon, 25 Apr 2022 01:22:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw0bKELAkGu9TNA01Os1ZFg2LxKt8OV9BWwBE3Cl1xW/eNTb5Mc+/9jUvoF2QleRh8GiV/AA== X-Received: by 2002:a5d:50c4:0:b0:20a:c547:454a with SMTP id f4-20020a5d50c4000000b0020ac547454amr13706690wrt.16.1650874925184; Mon, 25 Apr 2022 01:22:05 -0700 (PDT) From: Martin Kletzander To: qemu-devel@nongnu.org Subject: [PATCH 10/18] hw/input/tsc210x.c: Support machine-default audiodev with fallback Date: Mon, 25 Apr 2022 10:21:53 +0200 Message-Id: <0b13f27f5389d0a75b9e3046830f88fd37de54f2.1650874791.git.mkletzan@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 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.9 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: 1650874988514100009 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Martin Kletzander --- hw/input/tsc210x.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hw/input/tsc210x.c b/hw/input/tsc210x.c index f16a8090b7c7..f0b02bc72280 100644 --- a/hw/input/tsc210x.c +++ b/hw/input/tsc210x.c @@ -1098,6 +1098,14 @@ static void tsc210x_init(TSC210xState *s, =20 qemu_add_mouse_event_handler(tsc210x_touchscreen_event, s, 1, name); =20 + const char *audiodev_id =3D audio_maybe_init_dummy("tsc.defaudio"); + s->card.name =3D g_strdup(audiodev_id); + s->card.state =3D audio_state_by_name(s->card.name); + if (!s->card.state) { + error_setg(&error_fatal, "Cannot find audiodev with id '%s'", + s->card.name); + } + AUD_register_card(s->name, &s->card); =20 qemu_register_reset((void *) tsc210x_reset, s); --=20 2.35.1