mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
hw/audio: rename model list function
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>
This commit is contained in:
committed by
Philippe Mathieu-Daudé
parent
047b721c60
commit
74d3a119ef
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user