* [Qemu-devel] [PULL 0/1] audio patch queue
@ 2014-02-24 12:22 Gerd Hoffmann
2014-02-26 18:31 ` Peter Maydell
0 siblings, 1 reply; 5+ messages in thread
From: Gerd Hoffmann @ 2014-02-24 12:22 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann
Hi,
Short audio patch queue, with a single cleanup patch.
please pull,
Gerd
The following changes since commit 105a060188dc6fdd4551571a966514d1a5f6815a:
Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140220' into staging (2014-02-21 15:04:58 +0000)
are available in the git repository at:
git://git.kraxel.org/qemu tags/pull-audio-3
for you to fetch changes up to cd6c88305f2ae8fe335a001058032e03f0ff4b4e:
hda-audio: qom cleanups (2014-02-24 10:42:09 +0100)
----------------------------------------------------------------
hda-audio: qom cleanups
----------------------------------------------------------------
Gerd Hoffmann (1):
hda-audio: qom cleanups
hw/audio/hda-codec.c | 60 ++++++++++++++++++++++++++++------------------------
1 file changed, 32 insertions(+), 28 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PULL 0/1] audio patch queue
2014-02-24 12:22 Gerd Hoffmann
@ 2014-02-26 18:31 ` Peter Maydell
0 siblings, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2014-02-26 18:31 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: QEMU Developers
On 24 February 2014 12:22, Gerd Hoffmann <kraxel@redhat.com> wrote:
> Hi,
>
> Short audio patch queue, with a single cleanup patch.
>
> please pull,
> Gerd
>
> The following changes since commit 105a060188dc6fdd4551571a966514d1a5f6815a:
>
> Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20140220' into staging (2014-02-21 15:04:58 +0000)
>
> are available in the git repository at:
>
>
> git://git.kraxel.org/qemu tags/pull-audio-3
>
> for you to fetch changes up to cd6c88305f2ae8fe335a001058032e03f0ff4b4e:
>
> hda-audio: qom cleanups (2014-02-24 10:42:09 +0100)
Applied, thanks
-- PMM
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] [PULL 0/1] audio patch queue
@ 2014-09-30 11:33 Gerd Hoffmann
2014-09-30 11:33 ` [Qemu-devel] [PULL 1/1] ac97: register reset via qom Gerd Hoffmann
2014-09-30 14:46 ` [Qemu-devel] [PULL 0/1] audio patch queue Peter Maydell
0 siblings, 2 replies; 5+ messages in thread
From: Gerd Hoffmann @ 2014-09-30 11:33 UTC (permalink / raw)
To: qemu-devel; +Cc: Gerd Hoffmann
Hi,
pretty short, with a single ac97 fix.
please pull,
Gerd
The following changes since commit 81ab11a7a524d12412a59ef49c6b270671e62ea0:
Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2014-09-26 15:41:50 +0100)
are available in the git repository at:
git://git.kraxel.org/qemu tags/pull-audio-20140930-1
for you to fetch changes up to 133771477c39f3716d9a85609aca0d3e5a77c55c:
ac97: register reset via qom (2014-09-29 10:20:05 +0200)
----------------------------------------------------------------
ac97: register reset via qom
----------------------------------------------------------------
Gerd Hoffmann (1):
ac97: register reset via qom
hw/audio/ac97.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Qemu-devel] [PULL 1/1] ac97: register reset via qom
2014-09-30 11:33 [Qemu-devel] [PULL 0/1] audio patch queue Gerd Hoffmann
@ 2014-09-30 11:33 ` Gerd Hoffmann
2014-09-30 14:46 ` [Qemu-devel] [PULL 0/1] audio patch queue Peter Maydell
1 sibling, 0 replies; 5+ messages in thread
From: Gerd Hoffmann @ 2014-09-30 11:33 UTC (permalink / raw)
To: qemu-devel; +Cc: Vassili Karpov (malc), Gerd Hoffmann
So it gets properly unregistered on hot-unplug.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
hw/audio/ac97.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/hw/audio/ac97.c b/hw/audio/ac97.c
index 0e22bb9..111ec0e 100644
--- a/hw/audio/ac97.c
+++ b/hw/audio/ac97.c
@@ -1321,9 +1321,9 @@ static const MemoryRegionOps ac97_io_nabm_ops = {
.endianness = DEVICE_LITTLE_ENDIAN,
};
-static void ac97_on_reset (void *opaque)
+static void ac97_on_reset (DeviceState *dev)
{
- AC97LinkState *s = opaque;
+ AC97LinkState *s = container_of(dev, AC97LinkState, dev.qdev);
reset_bm_regs (s, &s->bm_regs[0]);
reset_bm_regs (s, &s->bm_regs[1]);
@@ -1382,9 +1382,8 @@ static int ac97_initfn (PCIDevice *dev)
"ac97-nabm", 256);
pci_register_bar (&s->dev, 0, PCI_BASE_ADDRESS_SPACE_IO, &s->io_nam);
pci_register_bar (&s->dev, 1, PCI_BASE_ADDRESS_SPACE_IO, &s->io_nabm);
- qemu_register_reset (ac97_on_reset, s);
AUD_register_card ("ac97", &s->card);
- ac97_on_reset (s);
+ ac97_on_reset (&s->dev.qdev);
return 0;
}
@@ -1413,6 +1412,7 @@ static void ac97_class_init (ObjectClass *klass, void *data)
dc->desc = "Intel 82801AA AC97 Audio";
dc->vmsd = &vmstate_ac97;
dc->props = ac97_properties;
+ dc->reset = ac97_on_reset;
}
static const TypeInfo ac97_info = {
--
1.8.3.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] [PULL 0/1] audio patch queue
2014-09-30 11:33 [Qemu-devel] [PULL 0/1] audio patch queue Gerd Hoffmann
2014-09-30 11:33 ` [Qemu-devel] [PULL 1/1] ac97: register reset via qom Gerd Hoffmann
@ 2014-09-30 14:46 ` Peter Maydell
1 sibling, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2014-09-30 14:46 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: QEMU Developers
On 30 September 2014 12:33, Gerd Hoffmann <kraxel@redhat.com> wrote:
> Hi,
>
> pretty short, with a single ac97 fix.
>
> please pull,
> Gerd
>
> The following changes since commit 81ab11a7a524d12412a59ef49c6b270671e62ea0:
>
> Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2014-09-26 15:41:50 +0100)
>
> are available in the git repository at:
>
>
> git://git.kraxel.org/qemu tags/pull-audio-20140930-1
>
> for you to fetch changes up to 133771477c39f3716d9a85609aca0d3e5a77c55c:
>
> ac97: register reset via qom (2014-09-29 10:20:05 +0200)
>
> ----------------------------------------------------------------
> ac97: register reset via qom
>
> ----------------------------------------------------------------
Applied, thanks.
-- PMM
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-09-30 14:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-30 11:33 [Qemu-devel] [PULL 0/1] audio patch queue Gerd Hoffmann
2014-09-30 11:33 ` [Qemu-devel] [PULL 1/1] ac97: register reset via qom Gerd Hoffmann
2014-09-30 14:46 ` [Qemu-devel] [PULL 0/1] audio patch queue Peter Maydell
-- strict thread matches above, loose matches on Subject: below --
2014-02-24 12:22 Gerd Hoffmann
2014-02-26 18:31 ` Peter Maydell
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).