diff options
author | Martin Kletzander <mkletzan@redhat.com> | 2023-10-02 16:27:57 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-03 10:29:40 +0200 |
commit | cb94ff5f80c537e43c04fa4f071f1df784255310 (patch) | |
tree | 18907d34d44c8e344ea2174c5bd80e6fa8dc5169 /hw/input/tsc210x.c | |
parent | 9dcb64c96073e9898105cdbef6553cfef0fadcdb (diff) | |
download | qemu-cb94ff5f80c537e43c04fa4f071f1df784255310.zip qemu-cb94ff5f80c537e43c04fa4f071f1df784255310.tar.gz qemu-cb94ff5f80c537e43c04fa4f071f1df784255310.tar.bz2 |
audio: propagate Error * out of audio_init
Starting from audio_driver_init, propagate errors via Error ** so that
audio_init_audiodevs can simply pass &error_fatal, and AUD_register_card
can signal faiure.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
[Reworked the audio/audio.c parts, while keeping Martin's hw/ changes. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/input/tsc210x.c')
-rw-r--r-- | hw/input/tsc210x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/input/tsc210x.c b/hw/input/tsc210x.c index e7960a5..950506f 100644 --- a/hw/input/tsc210x.c +++ b/hw/input/tsc210x.c @@ -1102,7 +1102,7 @@ static void tsc210x_init(TSC210xState *s, s->card.name = g_strdup(current_machine->audiodev); s->card.state = audio_state_by_name(s->card.name, &error_fatal); } - AUD_register_card(s->name, &s->card); + AUD_register_card(s->name, &s->card, &error_fatal); qemu_register_reset((void *) tsc210x_reset, s); vmstate_register(NULL, 0, vmsd, s); |