audio/noaudio: convert to QOM lifecycle methods
Remove the legacy driver init/fini callbacks from the null audio backend. Both no_audio_init() and no_audio_fini() were no-ops that performed no real initialization or cleanup work. Reviewed-by: Mark Cave-Ayland <mark.caveayland@nutanix.com> Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Marc-André Lureau committed
Jan 16, 2026 at 11:49 UTC
f58d73279517698d3a1c4cf531349a2cd99457bc
1 file changed
-12
audio/noaudio.c
-12
@@ -119,16 +119,6 @@ static void no_enable_in(HWVoiceIn *hw, bool enable)
119
}
120
}
121
122
-static void *no_audio_init(Audiodev *dev, Error **errp)
123
-{
124
- return &no_audio_init;
125
-}
126
-
127
-static void no_audio_fini (void *opaque)
128
-{
129
- (void) opaque;
130
-}
131
-
122
static struct audio_pcm_ops no_pcm_ops = {
123
.init_out = no_init_out,
124
.fini_out = no_fini_out,
@@ -146,8 +136,6 @@ static struct audio_pcm_ops no_pcm_ops = {
136
137
static struct audio_driver no_audio_driver = {
138
.name = "none",
149
- .init = no_audio_init,
150
- .fini = no_audio_fini,
139
.pcm_ops = &no_pcm_ops,
140
.max_voices_out = INT_MAX,
141
.max_voices_in = INT_MAX,