mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 00:32:12 +02:00
qemu: enable audio support
On qemux86, export ac97 & es1370 emulated device to guest, and enable host oss&alsa driver. So end user can get sound from qemux86 guest if the sound card driver installed. [BUGID #488] got fixed. Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
This commit is contained in:
@@ -129,6 +129,13 @@ while [ $i -le $# ]; do
|
||||
SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -serial stdio"
|
||||
SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0"
|
||||
;;
|
||||
"audio")
|
||||
if [[ "x$MACHINE" == "xqemux86" || "x$MACHINE" == "xqemux86-64" ]]; then
|
||||
echo "Enable audio on qemu. Pls. install snd_intel8x0 or snd_ens1370 driver in linux guest.";
|
||||
QEMU_AUDIO_DRV="alsa"
|
||||
SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -soundhw ac97,es1370"
|
||||
fi
|
||||
;;
|
||||
"kvm")
|
||||
KVM_ENABLED="yes"
|
||||
KVM_CAPABLE=`grep 'vmx\|smx' /proc/cpuinfo`
|
||||
|
||||
Reference in New Issue
Block a user