summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu
diff options
context:
space:
mode:
authorZhai Edwin <edwin.zhai@intel.com>2011-02-22 09:58:11 +0800
committerSaul Wold <sgw@linux.intel.com>2011-02-22 11:04:07 -0800
commitd26cbff22a3dfc3f5682b44d6e753f1c4091a56d (patch)
treeb412deff6765411ede1fde81f02adc228d386c55 /scripts/poky-qemu
parente2dbad7b7db7b62dee4bb5b6c28a5ab4dde08358 (diff)
downloadpoky-d26cbff22a3dfc3f5682b44d6e753f1c4091a56d.tar.gz
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>
Diffstat (limited to 'scripts/poky-qemu')
-rwxr-xr-xscripts/poky-qemu7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/poky-qemu b/scripts/poky-qemu
index b19a89ddab..cb08f27121 100755
--- a/scripts/poky-qemu
+++ b/scripts/poky-qemu
@@ -129,6 +129,13 @@ while [ $i -le $# ]; do
129 SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -serial stdio" 129 SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -serial stdio"
130 SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0" 130 SCRIPT_KERNEL_OPT="$SCRIPT_KERNEL_OPT console=ttyS0"
131 ;; 131 ;;
132 "audio")
133 if [[ "x$MACHINE" == "xqemux86" || "x$MACHINE" == "xqemux86-64" ]]; then
134 echo "Enable audio on qemu. Pls. install snd_intel8x0 or snd_ens1370 driver in linux guest.";
135 QEMU_AUDIO_DRV="alsa"
136 SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -soundhw ac97,es1370"
137 fi
138 ;;
132 "kvm") 139 "kvm")
133 KVM_ENABLED="yes" 140 KVM_ENABLED="yes"
134 KVM_CAPABLE=`grep 'vmx\|smx' /proc/cpuinfo` 141 KVM_CAPABLE=`grep 'vmx\|smx' /proc/cpuinfo`