diff options
author | Juan Quintela <quintela@redhat.com> | 2023-10-20 11:07:29 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-11-01 16:13:58 +0100 |
commit | a9500913ab96f59eb8f7e5fc79f80d5d66842102 (patch) | |
tree | 40ac2f570c041e71ec1bf2cfd8770bf9cc9db4ea /audio/audio.c | |
parent | 5b146be3e78d0290670cfc60179218e539a7774f (diff) | |
download | qemu-a9500913ab96f59eb8f7e5fc79f80d5d66842102.zip qemu-a9500913ab96f59eb8f7e5fc79f80d5d66842102.tar.gz qemu-a9500913ab96f59eb8f7e5fc79f80d5d66842102.tar.bz2 |
migration: Use vmstate_register_any() for audio
We can have more than one audio backend.
void audio_init_audiodevs(void)
{
AudiodevListEntry *e;
QSIMPLEQ_FOREACH(e, &audiodevs, next) {
audio_init(e->dev, &error_fatal);
}
}
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20231020090731.28701-12-quintela@redhat.com>
Diffstat (limited to 'audio/audio.c')
-rw-r--r-- | audio/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio.c b/audio/audio.c index e9815d6..f91e05b 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -1781,7 +1781,7 @@ static AudioState *audio_init(Audiodev *dev, Error **errp) QTAILQ_INSERT_TAIL(&audio_states, s, list); QLIST_INIT (&s->card_head); - vmstate_register (NULL, 0, &vmstate_audio, s); + vmstate_register_any(NULL, &vmstate_audio, s); return s; out: |