mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
cfd07e7abb
commit
dc4b9240dc
2 changed files with 21 additions and 0 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue