From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) by mx.groups.io with SMTP id smtpd.web10.991.1623178336251244581 for ; Tue, 08 Jun 2021 11:52:16 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sR8U498d; spf=pass (domain: gmail.com, ip: 209.85.208.48, mailfrom: harlydavidsen@gmail.com) Received: by mail-ed1-f48.google.com with SMTP id s6so25732144edu.10 for ; Tue, 08 Jun 2021 11:52:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=cs8UcAZ0rJVXNRAHgdF+XSBzyWo67Bi1is0IpOXzB7w=; b=sR8U498dI/bf3CsOhrAVjhwmFKVz7Q+PpH9kZmH6K2Jc9EycXj4xTWcwDA5gnGHCAq 6DOhHR/kGofkyoEKuCy5Ml0b1Gzc8qqapsN1JIREatxuDEQHpoCPX0s9CkHpkCIZeMbJ ij9uq23k6V9R6u6stxIimDXTnGroDBttSvBvhvb+lwHwCxjGPTZxC2GcGejz1U/JQtTq /lHjoYmuL7Uf0GbnFl05qMW751spmYJyAz2VYHz6zTWO6NRnpyv4WGRsWINpIaWlSylN Yo9CdUi6W130Uqrb2lB7Fc7BH5iFrbGSAq5yEIuyJcBUTZYVfaq3/UYYuj9t8W4qLQ5G dhAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=cs8UcAZ0rJVXNRAHgdF+XSBzyWo67Bi1is0IpOXzB7w=; b=o0AorT4AeT1/SW7wqPmP3ZdkxZS1YL0UvZi6bpVcXKMzqpprjz1mENPSJ0AwvJ0/I8 zF5A3GQ9ahI50VFyS2CNuUZn/X9UqanY0YVe1R90JwcCiCYror0eQ23vibxbSRPVTQC9 RhWvM+AJt9OCYZ1sWOn5q9exPe12fcYQiJwC6j1/yOwHlm43Ujq7qKsX+pLOWrVHxiHi emEi03uWEtVTVl7AuyA9Y8ymWjc+7Eiz6BUvzUQy9urWts5Fkez3sngN8qtVdvXG4PeF 7C9qAlbhspaTmQ4+eLk8D2yvcr+/sCU6/epo0xIlIITOrfd7DA++CoE219GERAoCSVL9 eWOw== X-Gm-Message-State: AOAM531wwHL27U7VTwNYOxiPa9WdzHrHqVBVhn7NpGF7QSTPHPk3+GJ6 Gnplkdodkm8PPSP0s0leIXYut779ofBKLL0ES3o= X-Google-Smtp-Source: ABdhPJyDeykTTGB0DkaNSjKUgGZMl3uzlddyArGAdhfYVF/+7GcuVIBwEjLUEwdRgHFvq3DEg95fmk6bn75Hs558k04= X-Received: by 2002:aa7:d3ca:: with SMTP id o10mr27382690edr.197.1623178334755; Tue, 08 Jun 2021 11:52:14 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:2490:0:0:0:0:0 with HTTP; Tue, 8 Jun 2021 11:52:14 -0700 (PDT) In-Reply-To: <20210607213349.zyqbavq2kqm726h3@leviathan> References: <74f2a141-fe7c-b25c-ab65-aea8989cc885@redhat.com> <20210607213349.zyqbavq2kqm726h3@leviathan> From: "Ethin Probst" Date: Tue, 8 Jun 2021 13:52:14 -0500 Message-ID: Subject: Re: [edk2-devel] VirtIO sound device in qemu? To: Leif Lindholm Cc: devel@edk2.groups.io, lersek@redhat.com, mcb30@ipxe.org Content-Type: text/plain; charset="UTF-8" So I just might have to go with USB audio (the basic audio device class) since no code in QEMU for VirtIO audio has actually been committed upstream. Perusing the qemu code (specifically this: https://github.com/qemu/qemu/blob/master/hw/usb/dev-audio.c) it appears that Qemu implements v. 1.0 of the ADC specification. Section 5.3.3.1.2 of the USB basic audio device specification (v. 1.0) confirms that the bcdADC field should be set to 0100h. Will doing this violate any rules of GSoC or anything like that? I can implement VirtIO, but I will have no way of testing it until Qemu actually adds it in (unless there's another emulator that implements it). :-( On 6/7/21, Leif Lindholm wrote: > On Mon, Jun 07, 2021 at 17:16:00 +0200, Laszlo Ersek wrote: >> On 06/07/21 13:40, Michael Brown wrote: >> > On 07/06/2021 05:41, Ethin Probst wrote: >> >> For my audio output protocol (I wonder if we should abbreviate it as >> >> AOP?) I need to get access to VirtIO devices in PCIe configuration >> >> space. However, I can't seem to find a way of telling QEMU to use this >> >> device for audio output. Is there something I missed, or something >> >> that does support this? >> > >> > Do you mean that you can't find a way to get QEMU to create a Virtio >> > audio device visible to the guest, or that you can't find a way to get >> > QEMU to connect this Virtio device to the host-side audio output? >> >> My latest (admittedly, quite old) information has been that QEMU does >> not implement a virtio-audio device yet. It's been work in progress. >> Best inquire on qemu-devel, CC'ing the audio subsys maintainers. > > An RFC sent out end of April has not yet seen a PATCH, but some > feedback: > https://lists.gnu.org/archive/html/qemu-devel/2021-04/msg06089.html > > / > Leif > -- Signed, Ethin D. Probst