summaryrefslogtreecommitdiffstats
path: root/hw/intel-hda.h
diff options
context:
space:
mode:
authorGerd Hoffmann2010-11-09 11:47:44 +0100
committermalc2010-11-09 14:51:11 +0100
commitdc4b9240dc531f1fc8538e9dc968f2e34e169346 (patch)
treee1d8682e6e5e09d7b999053ffe6dbcef69a9001f /hw/intel-hda.h
parentFix win32 build (diff)
downloadqemu-dc4b9240dc531f1fc8538e9dc968f2e34e169346.tar.gz
qemu-dc4b9240dc531f1fc8538e9dc968f2e34e169346.tar.xz
qemu-dc4b9240dc531f1fc8538e9dc968f2e34e169346.zip
intel-hda: exit cleanup
Add pci exit callback for the intel-hda device and cleanup properly. Also add an exit callback to the HDA bus implementation and make sure it is called on qdev_free(). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'hw/intel-hda.h')
-rw-r--r--hw/intel-hda.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/intel-hda.h b/hw/intel-hda.h
index ba290ec850..4e44e3894f 100644
--- a/hw/intel-hda.h
+++ b/hw/intel-hda.h
@@ -32,6 +32,7 @@ struct HDACodecDevice {
struct HDACodecDeviceInfo {
DeviceInfo qdev;
int (*init)(HDACodecDevice *dev);
+ int (*exit)(HDACodecDevice *dev);
void (*command)(HDACodecDevice *dev, uint32_t nid, uint32_t data);
void (*stream)(HDACodecDevice *dev, uint32_t stnr, bool running);
};