qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Sahid Orentino Ferdjaoui <sferdjao@redhat.com>
To: Thomas Huth <thuth@redhat.com>
Cc: "Hervé Poussineau" <hpoussin@reactos.org>,
	"David Gibson" <david@gibson.dropbear.id.au>,
	qemu-devel@nongnu.org, qemu-ppc@nongnu.org,
	"Alexander Graf" <agraf@suse.de>,
	"Eduardo Habkost" <ehabkost@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] hw/ppc/prep: Remove superfluous call to soundhw_init()
Date: Fri, 9 Jun 2017 12:08:38 +0200	[thread overview]
Message-ID: <20170609100838.GA32246@redhat> (raw)
In-Reply-To: <1496991197-1815-1-git-send-email-thuth@redhat.com>

On Fri, Jun 09, 2017 at 08:53:17AM +0200, Thomas Huth wrote:
> When using the 40p machine, soundhw_init() is currently called twice,
> one time from vl.c and one time from ibm_40p_init(). The call in
> ibm_40p_init() was likely just a copy-and-paste from a old version
> of the prep machine - but there the call to audio_init() (which was
> the previous name of this function) has been removed many years ago
> already, with commit b3e6d591b05538056d665572f3e3bbfb3cbb70e7
> ("audio: enable PCI audio cards for all PCI-enabled targets"), so
> we certainly also do not need the soundhw_init() in the 40p function
> anymore nowadays.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>

Reviewed-by: Sahid Ferdjaoui <sferdjao@redhat.com>

For information:
  b3e6d591 - audio: enable PCI audio cards for all PCI-enabled targets
  4c565674 - audio: Rename audio_init() to soundhw_init()	    

> ---
>  hw/ppc/prep.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/hw/ppc/prep.c b/hw/ppc/prep.c
> index d16646c..36d3dcd 100644
> --- a/hw/ppc/prep.c
> +++ b/hw/ppc/prep.c
> @@ -36,7 +36,6 @@
>  #include "hw/pci/pci_host.h"
>  #include "hw/ppc/ppc.h"
>  #include "hw/boards.h"
> -#include "hw/audio/soundhw.h"
>  #include "qemu/error-report.h"
>  #include "qemu/log.h"
>  #include "hw/ide.h"
> @@ -782,9 +781,6 @@ static void ibm_40p_init(MachineState *machine)
>      qbus_walk_children(BUS(isa_bus), prep_set_cmos_checksum, NULL, NULL, NULL,
>                         &cmos_checksum);
>  
> -    /* initialize audio subsystem */
> -    soundhw_init();
> -
>      /* add some more devices */
>      if (defaults_enabled()) {
>          isa_create_simple(isa_bus, "i8042");
> -- 
> 1.8.3.1
> 

  reply	other threads:[~2017-06-09 10:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-09  6:53 [Qemu-devel] [PATCH] hw/ppc/prep: Remove superfluous call to soundhw_init() Thomas Huth
2017-06-09 10:08 ` Sahid Orentino Ferdjaoui [this message]
2017-06-09 13:47 ` Eduardo Habkost
2017-06-11 19:15 ` Hervé Poussineau

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=20170609100838.GA32246@redhat \
    --to=sferdjao@redhat.com \
    --cc=agraf@suse.de \
    --cc=david@gibson.dropbear.id.au \
    --cc=ehabkost@redhat.com \
    --cc=hpoussin@reactos.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=thuth@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).