diff options
| author | Martin Kletzander <mkletzan@redhat.com> | 2022-04-25 10:21:46 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-22 16:30:07 +0200 |
| commit | b7639b7dd05de6d4f5ac2a30bb4a7a789286992f (patch) | |
| tree | 964584a4858dd29a76ffbd4052ee494d938c3a6a /hw/audio/intel-hda.h | |
| parent | 38e476e88e7d5294c194d36d33e12f3d936a7e6a (diff) | |
| download | focaccia-qemu-b7639b7dd05de6d4f5ac2a30bb4a7a789286992f.tar.gz focaccia-qemu-b7639b7dd05de6d4f5ac2a30bb4a7a789286992f.zip | |
hw/audio: Simplify hda audio init
No return values are used anywhere, so switch the functions to be void and add support for error reporting using errp for use in next patches. Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-ID: <cd1df4ad2a6fae969c4a02a77955c4a8c0d430b6.1650874791.git.mkletzan@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/audio/intel-hda.h')
| -rw-r--r-- | hw/audio/intel-hda.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/audio/intel-hda.h b/hw/audio/intel-hda.h index f78c1833e3..8d710eee5d 100644 --- a/hw/audio/intel-hda.h +++ b/hw/audio/intel-hda.h @@ -31,7 +31,7 @@ struct HDACodecBus { struct HDACodecDeviceClass { DeviceClass parent_class; - int (*init)(HDACodecDevice *dev); + void (*init)(HDACodecDevice *dev, Error **errp); void (*exit)(HDACodecDevice *dev); void (*command)(HDACodecDevice *dev, uint32_t nid, uint32_t data); void (*stream)(HDACodecDevice *dev, uint32_t stnr, bool running, bool output); |