Commit 55d4fd3c authored by Peter Maydell's avatar Peter Maydell Committed by malc

arch_init.c: Improve '-soundhw help' for non-HAS_AUDIO_CHOICE archs

For architectures which don't set HAS_AUDIO_CHOICE, improve the
'-soundhw help' message so that it doesn't simply print an empty
list, implying no sound support at all.
Signed-off-by: default avatarPeter Maydell <>
Signed-off-by: default avatarmalc <>
parent 6b80f7db
......@@ -922,11 +922,16 @@ void select_soundhw(const char *optarg)
if (is_help_option(optarg)) {
printf("Valid sound card names (comma separated):\n");
for (c = soundhw; c->name; ++c) {
printf ("%-11s %s\n", c->name, c->descr);
printf("\n-soundhw all will enable all of the above\n");
printf("Machine has no user-selectable audio hardware "
"(it may or may not have always-present audio hardware).\n");
else {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment