Skip to contentSkip to conversation

conf/machine: fix QEMU x86 sound options

PATCH RESEND In review Michael Opdenacker 2 participants 2 messages Mar 9, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH RESEND 1/1 conf/machine: fix QEMU x86 sound options

This updates the QEMU sounds options for x86 emulation, when "runqemu" is called with the "audio" argument, to fix the below error:

runqemu - ERROR - Failed to run qemu: qemu-system-x86_64: warning: '-soundhw ac97' is deprecated, please use '-device AC97' instead

---
 meta/classes/qemuboot.bbclass                  | 2 +-
 meta/conf/machine/include/x86/qemuboot-x86.inc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/classes/qemuboot.bbclass +1 -1
index 755d49acd6..ad8489902a 100644
@@ -29,7 +29,7 @@
 #
 # QB_AUDIO_DRV: qemu audio driver, e.g., "alsa", set it when support audio
 #
-# QB_AUDIO_OPT: qemu audio option, e.g., "-soundhw ac97,es1370", used
+# QB_AUDIO_OPT: qemu audio option, e.g., "-device AC97", used
 #               when QB_AUDIO_DRV is set.
 #
 # QB_RNG: Pass-through for host random number generator, it can speedup boot
meta/conf/machine/include/x86/qemuboot-x86.inc +1 -1
index d3b91070a8..b7b6428e44 100644
@@ -8,7 +8,7 @@ QB_CPU:x86-64 = "-cpu IvyBridge -machine q35"
 QB_CPU_KVM:x86-64 = "-cpu IvyBridge -machine q35"
 
 QB_AUDIO_DRV = "alsa"
-QB_AUDIO_OPT = "-soundhw ac97,es1370"
+QB_AUDIO_OPT = "-device AC97"
 QB_KERNEL_CMDLINE_APPEND = "oprofile.timer=1 tsc=reliable no_timer_check rcupdate.rcu_expedited=1"
 QB_OPT_APPEND = "-usb -device usb-tablet"
 
Signature · 1 line
2.25.1
#2 lore raw
Quoted 31 lines · Michael Opdenacker via lists.openembedded.org

This updates the QEMU sounds options for x86 emulation, when "runqemu" is called with the "audio" argument, to fix the below error:

runqemu - ERROR - Failed to run qemu: qemu-system-x86_64: warning: '-soundhw ac97' is deprecated, please use '-device AC97' instead

---
 meta/classes/qemuboot.bbclass                  | 2 +-
 meta/conf/machine/include/x86/qemuboot-x86.inc | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/classes/qemuboot.bbclass +1 -1
index 755d49acd6..ad8489902a 100644
@@ -29,7 +29,7 @@
 #
 # QB_AUDIO_DRV: qemu audio driver, e.g., "alsa", set it when support audio
 #
-# QB_AUDIO_OPT: qemu audio option, e.g., "-soundhw ac97,es1370", used
+# QB_AUDIO_OPT: qemu audio option, e.g., "-device AC97", used
 #               when QB_AUDIO_DRV is set.
 #
 # QB_RNG: Pass-through for host random number generator, it can speedup boot
meta/conf/machine/include/x86/qemuboot-x86.inc +0 -0
index d3b91070a8..b7b6428e44 100644

meta/conf/machine/include/x86/qemuboot-x86.inc QB_CPU:x86-64 = "-cpu IvyBridge -machine q35" · line 11

Quoted 5 lines
meta/conf/machine/include/x86/qemuboot-x86.inc +1 -1
@@ -8,7 +8,7 @@ QB_CPU:x86-64 = "-cpu IvyBridge -machine q35"
 QB_CPU_KVM:x86-64 = "-cpu IvyBridge -machine q35"
 
 QB_AUDIO_DRV = "alsa"
-QB_AUDIO_OPT = "-soundhw ac97,es1370"
+QB_AUDIO_OPT = "-device AC97"

we are also dropping es1370 here, can you comment on it.

Quoted 15 lines
meta/conf/machine/include/x86/qemuboot-x86.inc +0 -1
 QB_KERNEL_CMDLINE_APPEND = "oprofile.timer=1 tsc=reliable no_timer_check rcupdate.rcu_expedited=1"
 QB_OPT_APPEND = "-usb -device usb-tablet"
 
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#162955): https://lists.openembedded.org/g/openembedded-core/message/162955
Mute This Topic: https://lists.openembedded.org/mt/89658861/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-