]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
conf/machine: fix QEMU x86 sound options
authorMichael Opdenacker <michael.opdenacker@bootlin.com>
Wed, 9 Mar 2022 10:02:59 +0000 (11:02 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Thu, 7 Apr 2022 06:40:13 +0000 (14:40 +0800)
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

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b802a5dd1a79c7be3bc790223a733ebc9be4f117)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/classes/qemuboot.bbclass
meta/conf/machine/include/x86/qemuboot-x86.inc

index 5e7e7c06592542627effb555b72f01004dfdc46a..2bde12748d5416dac58f6e484706cdcb57750c6b 100644 (file)
@@ -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
index d3b91070a852ec1f0a9e7491fb6dcd78e86bbdae..b7b6428e44c2688f3ff8111db54043e278607e76 100644 (file)
@@ -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"