mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
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>
This commit is contained in:
parent
aaa6a6f93d
commit
f6061733a9
15 changed files with 48 additions and 27 deletions
|
@ -104,7 +104,7 @@ static void no_enable_in(HWVoiceIn *hw, bool enable)
|
|||
}
|
||||
}
|
||||
|
||||
static void *no_audio_init(Audiodev *dev)
|
||||
static void *no_audio_init(Audiodev *dev, Error **errp)
|
||||
{
|
||||
return &no_audio_init;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue