All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	qemu-devel@nongnu.org, "Eduardo Habkost" <ehabkost@redhat.com>
Subject: Re: [PATCH 00/12] audio: deprecate -soundhw
Date: Thu, 30 Apr 2020 10:03:46 +0200	[thread overview]
Message-ID: <99d3334a-1b14-b0d3-9955-71e27d739c3a@redhat.com> (raw)
In-Reply-To: <20200430074108.pxgbu3uyvk77vivd@sirius.home.kraxel.org>

On 4/30/20 9:41 AM, Gerd Hoffmann wrote:
> On Wed, Apr 29, 2020 at 06:54:08PM +0200, Philippe Mathieu-Daudé wrote:
>> Hi Gerd,
>>
>> On 4/29/20 1:02 PM, Gerd Hoffmann wrote:
>>>
>>>
>>> Gerd Hoffmann (12):
>>>     stubs: add isa_create_simple
>>>     stubs: add pci_create_simple
>>>     audio: add deprecated_register_soundhw
>>>     audio: deprecate -soundhw ac97
>>>     audio: deprecate -soundhw es1370
>>>     audio: deprecate -soundhw adlib
>>>     audio: deprecate -soundhw cs4231a
>>>     audio: deprecate -soundhw gus
>>>     audio: deprecate -soundhw sb16
>>>     audio: deprecate -soundhw hda
>>>     audio: deprecate -soundhw pcspk
>>>     [RFC] audio: try use onboard audiodev for pcspk
>>
>> I don't understand what you are trying to fix with this series.
> 
> Almost nothing.  I'm just deprecating -soundhw, and I don't feel like
> putting too much effort into code which I want remove anyway.
> 
> The new deprecated_register_soundhw() is there to allow removing the
> init callback for most hardware and have common code handle the simple
> cases.  Alternatively I could leave things as-is and just copy&paste the
> deprecation warning into each init callback.
> 
> The only functional change (beside the added deprecation warnings) is
> that the pcspk realize function initializes audio in case audiodev is
> set, so "-global isa-pcspk.audiodev=<something>" is enough to activate
> the speaker.  The need to also have "-soundhw pcspk" on the command line
> is gone.
> 
>> I suppose there is a problem with the pcspk, as I had a problem when I tried
>> to make the soundhw more QOM-friendly.
> 
> I see your patch adds a deprecation warning for -soundhw too.  I'm
> wondering why you want convert this to QOM now just to throw away the
> code in a few months?

Well I didn't know you planed to throw them away. I started looking at 
the hw/audio/ files for the Arduino GSoC project because we want the ADC 
to sample data from a stream of floats (then opposite with PWM). Using 
.wav file seemed to make things simpler, then I noticed the AUD API. 
Then I started to have a cleaner producer/consumer API (i.e. the 8042 
PIT is a dsp stream producer, the pcspkr is a dsp stream consumer). To 
to that it was simpler to implement the producer/consumer interface 
split with the QOM API. The you know the NeverEnding Story... The 
-soundhw cleanup was part of it, as it was simple/contained I extracted it.

> 
> cheers,
>    Gerd
> 



      reply	other threads:[~2020-04-30  8:05 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-29 11:02 [PATCH 00/12] audio: deprecate -soundhw Gerd Hoffmann
2020-04-29 11:02 ` [PATCH 01/12] stubs: add isa_create_simple Gerd Hoffmann
2020-04-30  7:12   ` Philippe Mathieu-Daudé
2020-04-29 11:02 ` [PATCH 02/12] stubs: add pci_create_simple Gerd Hoffmann
2020-04-30  7:12   ` Philippe Mathieu-Daudé
2020-04-29 11:02 ` [PATCH 03/12] audio: add deprecated_register_soundhw Gerd Hoffmann
2020-04-29 11:02 ` [PATCH 04/12] audio: deprecate -soundhw ac97 Gerd Hoffmann
2020-04-29 11:02 ` [PATCH 05/12] audio: deprecate -soundhw es1370 Gerd Hoffmann
2020-04-29 11:02 ` [PATCH 06/12] audio: deprecate -soundhw adlib Gerd Hoffmann
2020-04-29 11:02 ` [PATCH 07/12] audio: deprecate -soundhw cs4231a Gerd Hoffmann
2020-04-29 11:02 ` [PATCH 08/12] audio: deprecate -soundhw gus Gerd Hoffmann
2020-04-29 11:02 ` [PATCH 09/12] audio: deprecate -soundhw sb16 Gerd Hoffmann
2020-04-29 11:02 ` [PATCH 10/12] audio: deprecate -soundhw hda Gerd Hoffmann
2020-04-29 11:02 ` [PATCH 11/12] audio: deprecate -soundhw pcspk Gerd Hoffmann
2020-04-29 11:02 ` [PATCH 12/12] [RFC] audio: try use onboard audiodev for pcspk Gerd Hoffmann
2020-04-29 11:04 ` [PATCH 00/12] audio: deprecate -soundhw Daniel P. Berrangé
2020-04-29 16:54 ` Philippe Mathieu-Daudé
2020-04-30  7:41   ` Gerd Hoffmann
2020-04-30  8:03     ` Philippe Mathieu-Daudé [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=99d3334a-1b14-b0d3-9955-71e27d739c3a@redhat.com \
    --to=philmd@redhat.com \
    --cc=berrange@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.