]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/audio: rename model list function
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 21 Oct 2025 09:02:33 +0000 (13:02 +0400)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 22 Oct 2025 06:55:28 +0000 (08:55 +0200)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20251021090317.425409-3-marcandre.lureau@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/audio/soundhw.c
include/hw/audio/soundhw.h
system/vl.c

index 2a41e108c02fbc75a7be7d3bfd60004bd9c7daaf..63a685563520ef16406ac9cc76d19f56c1a21daf 100644 (file)
@@ -65,7 +65,7 @@ void deprecated_register_soundhw(const char *name, const char *descr,
     soundhw_count++;
 }
 
-void show_valid_soundhw(void)
+void audio_print_available_models(void)
 {
     struct soundhw *c;
 
@@ -102,7 +102,7 @@ void select_soundhw(const char *name, const char *audiodev)
 
     if (!c->name) {
         error_report("Unknown audio device model `%s'", name);
-        show_valid_soundhw();
+        audio_print_available_models();
         exit(1);
     }
 }
index 474c5ff94e584a57c48edf0be7c64254a0bd7a38..83b30110834fb7cae2b2a27fb31861ea4385fa1e 100644 (file)
@@ -7,7 +7,7 @@ void deprecated_register_soundhw(const char *name, const char *descr,
                                  int isa, const char *typename);
 
 void soundhw_init(void);
-void show_valid_soundhw(void);
+void audio_print_available_models(void);
 void select_soundhw(const char *name, const char *audiodev);
 
 #endif
index fd98ea52d9ce0a41adec81f293a747ecc72f1da6..17bbc092c87778f364c95dbe83c8ebf1145d288c 100644 (file)
@@ -3078,7 +3078,7 @@ void qemu_init(int argc, char **argv)
                     model = g_strdup(qdict_get_str(dict, "model"));
                     qdict_del(dict, "model");
                     if (is_help_option(model)) {
-                        show_valid_soundhw();
+                        audio_print_available_models();
                         exit(0);
                     }
                 }