aboutsummaryrefslogtreecommitdiff
path: root/audio/coreaudio.m
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-09-22 19:13:44 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2023-10-03 10:29:39 +0200
commitf6061733a96314ccb732efe6c91357d66f8970af (patch)
tree5abdb6f35d1cb78f5a46d4b7c79384070a317066 /audio/coreaudio.m
parentaaa6a6f93dc88f9201b9872fa64a565d52628208 (diff)
audio: allow returning an error from the driver init
An error is already printed by audio_driver_init, but we can make it more precise if the driver can return an Error *. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'audio/coreaudio.m')
-rw-r--r--audio/coreaudio.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/coreaudio.m b/audio/coreaudio.m
index 4695291621..7cfb38fb6a 100644
--- a/audio/coreaudio.m
+++ b/audio/coreaudio.m
@@ -644,7 +644,7 @@ static void coreaudio_enable_out(HWVoiceOut *hw, bool enable)
update_device_playback_state(core);
}
-static void *coreaudio_audio_init(Audiodev *dev)
+static void *coreaudio_audio_init(Audiodev *dev, Error **errp)
{
return dev;
}