* [PATCH 0/1] enable qemu audio
@ 2011-02-22 2:06 Zhai Edwin
2011-02-22 2:06 ` [PATCH 1/1] qemu: enable audio support Zhai Edwin
0 siblings, 1 reply; 10+ messages in thread
From: Zhai Edwin @ 2011-02-22 2:06 UTC (permalink / raw)
To: poky
From: Zhai Edwin <edwin.zhai@intel.com>
This patch enables qemu audio by exporting emulated sound card to guest and enabling host oss/also driver.
Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: gzhai/fix2
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=gzhai/fix2
Thanks,
Zhai Edwin <edwin.zhai@intel.com>
---
Zhai Edwin (1):
qemu: enable audio support
meta/recipes-devtools/qemu/qemu.inc | 2 +-
scripts/poky-qemu | 7 +++++++
2 files changed, 8 insertions(+), 1 deletions(-)
^ permalink raw reply [flat|nested] 10+ messages in thread* [PATCH 1/1] qemu: enable audio support 2011-02-22 2:06 [PATCH 0/1] enable qemu audio Zhai Edwin @ 2011-02-22 2:06 ` Zhai Edwin 2011-02-22 2:14 ` Tom Rini 2011-02-22 2:25 ` Bruce Ashfield 0 siblings, 2 replies; 10+ messages in thread From: Zhai Edwin @ 2011-02-22 2:06 UTC (permalink / raw) To: poky From: Zhai Edwin <edwin.zhai@intel.com> 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> --- meta/recipes-devtools/qemu/qemu.inc | 2 +- scripts/poky-qemu | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index 33c2c71..2c6b114 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc @@ -3,7 +3,7 @@ HOMEPAGE = "http://qemu.org" LICENSE = "GPLv2 & LGPLv2.1" DEPENDS = "zlib" -EXTRA_OECONF = "--target-list=arm-linux-user,arm-softmmu,i386-linux-user,i386-softmmu,x86_64-linux-user,x86_64-softmmu,mips-linux-user,mips-softmmu,ppc-linux-user,ppc-softmmu,mipsel-linux-user --disable-werror --disable-vnc-tls --enable-kvm" +EXTRA_OECONF = "--target-list=arm-linux-user,arm-softmmu,i386-linux-user,i386-softmmu,x86_64-linux-user,x86_64-softmmu,mips-linux-user,mips-softmmu,ppc-linux-user,ppc-softmmu,mipsel-linux-user --disable-werror --disable-vnc-tls --enable-kvm --audio-drv-list=oss,alsa --audio-card-list=ac97,es1370" #EXTRA_OECONF += "--disable-sdl" inherit autotools diff --git a/scripts/poky-qemu b/scripts/poky-qemu index b19a89d..cb08f27 100755 --- a/scripts/poky-qemu +++ b/scripts/poky-qemu @@ -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` -- 1.6.3.3 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] qemu: enable audio support 2011-02-22 2:06 ` [PATCH 1/1] qemu: enable audio support Zhai Edwin @ 2011-02-22 2:14 ` Tom Rini 2011-02-22 5:18 ` Zhai, Edwin 2011-02-22 8:34 ` Richard Purdie 2011-02-22 2:25 ` Bruce Ashfield 1 sibling, 2 replies; 10+ messages in thread From: Tom Rini @ 2011-02-22 2:14 UTC (permalink / raw) To: poky On 02/21/2011 07:06 PM, Zhai Edwin wrote: > From: Zhai Edwin<edwin.zhai@intel.com> > > 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. Is there a reason to limit this to qemux86/x86_64? Or are you assuming they won't work on other platforms (I have vague memories of putting an actual es1370 card in a powerpc platform, a long long time ago...)? Or have you confirmed elsewhere it's not supported outside these platforms? Thanks! -- Tom Rini Mentor Graphics Corporation ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] qemu: enable audio support 2011-02-22 2:14 ` Tom Rini @ 2011-02-22 5:18 ` Zhai, Edwin 2011-02-22 8:34 ` Richard Purdie 1 sibling, 0 replies; 10+ messages in thread From: Zhai, Edwin @ 2011-02-22 5:18 UTC (permalink / raw) To: Tom Rini; +Cc: poky Tom Rini wrote: > > On 02/21/2011 07:06 PM, Zhai Edwin wrote: > > From: Zhai Edwin<edwin.zhai@intel.com> > > > > 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. > > Is there a reason to limit this to qemux86/x86_64? Or are you assuming > they won't work on other platforms (I have vague memories of putting an > actual es1370 card in a powerpc platform, a long long time ago...)? Or > have you confirmed elsewhere it's not supported outside these platforms? > I have not tested other platforms, so only enable qemux86/x86_64. But enabling on other platform is easy: Just change the poky-qemu script. > > Thanks! > > -- > Tom Rini > Mentor Graphics Corporation > _______________________________________________ > poky mailing list > poky@yoctoproject.org > https://lists.yoctoproject.org/listinfo/poky > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] qemu: enable audio support 2011-02-22 2:14 ` Tom Rini 2011-02-22 5:18 ` Zhai, Edwin @ 2011-02-22 8:34 ` Richard Purdie 1 sibling, 0 replies; 10+ messages in thread From: Richard Purdie @ 2011-02-22 8:34 UTC (permalink / raw) To: Tom Rini; +Cc: poky On Mon, 2011-02-21 at 19:14 -0700, Tom Rini wrote: > On 02/21/2011 07:06 PM, Zhai Edwin wrote: > > From: Zhai Edwin<edwin.zhai@intel.com> > > > > 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. > > Is there a reason to limit this to qemux86/x86_64? Or are you assuming > they won't work on other platforms (I have vague memories of putting an > actual es1370 card in a powerpc platform, a long long time ago...)? Or > have you confirmed elsewhere it's not supported outside these platforms? I think this is a case of one step at a time. Getting sound working on any of the qemu platforms is a step forward and once we get things working (and merged) for that, we can think about others which might be trickier. Cheers, Richard ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] qemu: enable audio support 2011-02-22 2:06 ` [PATCH 1/1] qemu: enable audio support Zhai Edwin 2011-02-22 2:14 ` Tom Rini @ 2011-02-22 2:25 ` Bruce Ashfield 2011-02-22 3:38 ` Zhai, Edwin 1 sibling, 1 reply; 10+ messages in thread From: Bruce Ashfield @ 2011-02-22 2:25 UTC (permalink / raw) To: Zhai Edwin; +Cc: poky On Mon, Feb 21, 2011 at 9:06 PM, Zhai Edwin <edwin.zhai@intel.com> wrote: > From: Zhai Edwin <edwin.zhai@intel.com> > > 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. I presume that you tested the sound, if you send me the working .config (or better a config fragement), I'll update the base configs for the qemu* platforms to at least build and make the modules available. Looks good BTW! Bruce > > [BUGID #488] got fixed. > > Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> > --- > meta/recipes-devtools/qemu/qemu.inc | 2 +- > scripts/poky-qemu | 7 +++++++ > 2 files changed, 8 insertions(+), 1 deletions(-) > > diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc > index 33c2c71..2c6b114 100644 > --- a/meta/recipes-devtools/qemu/qemu.inc > +++ b/meta/recipes-devtools/qemu/qemu.inc > @@ -3,7 +3,7 @@ HOMEPAGE = "http://qemu.org" > LICENSE = "GPLv2 & LGPLv2.1" > DEPENDS = "zlib" > > -EXTRA_OECONF = "--target-list=arm-linux-user,arm-softmmu,i386-linux-user,i386-softmmu,x86_64-linux-user,x86_64-softmmu,mips-linux-user,mips-softmmu,ppc-linux-user,ppc-softmmu,mipsel-linux-user --disable-werror --disable-vnc-tls --enable-kvm" > +EXTRA_OECONF = "--target-list=arm-linux-user,arm-softmmu,i386-linux-user,i386-softmmu,x86_64-linux-user,x86_64-softmmu,mips-linux-user,mips-softmmu,ppc-linux-user,ppc-softmmu,mipsel-linux-user --disable-werror --disable-vnc-tls --enable-kvm --audio-drv-list=oss,alsa --audio-card-list=ac97,es1370" > #EXTRA_OECONF += "--disable-sdl" > > inherit autotools > diff --git a/scripts/poky-qemu b/scripts/poky-qemu > index b19a89d..cb08f27 100755 > --- a/scripts/poky-qemu > +++ b/scripts/poky-qemu > @@ -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` > -- > 1.6.3.3 > > _______________________________________________ > poky mailing list > poky@yoctoproject.org > https://lists.yoctoproject.org/listinfo/poky > -- "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end" ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] qemu: enable audio support 2011-02-22 2:25 ` Bruce Ashfield @ 2011-02-22 3:38 ` Zhai, Edwin 2011-02-22 5:11 ` Bruce Ashfield 0 siblings, 1 reply; 10+ messages in thread From: Zhai, Edwin @ 2011-02-22 3:38 UTC (permalink / raw) To: Bruce Ashfield; +Cc: poky Bruce Ashfield wrote: > > On Mon, Feb 21, 2011 at 9:06 PM, Zhai Edwin <edwin.zhai@intel.com> wrote: > > From: Zhai Edwin <edwin.zhai@intel.com> > > > > 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. > > I presume that you tested the sound, if you send me the working .config > (or better a config fragement), I'll update the base configs for the > qemu* > platforms to at least build and make the modules available. > Bruce, I have tested a ubuntu disk image and heard the sound. What's the simple way to change the kernel config for test? Thanks, edwin > Looks good BTW! > > Bruce > > > > > [BUGID #488] got fixed. > > > > Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> > > --- > > meta/recipes-devtools/qemu/qemu.inc | 2 +- > > scripts/poky-qemu | 7 +++++++ > > 2 files changed, 8 insertions(+), 1 deletions(-) > > > > diff --git a/meta/recipes-devtools/qemu/qemu.inc > b/meta/recipes-devtools/qemu/qemu.inc > > index 33c2c71..2c6b114 100644 > > --- a/meta/recipes-devtools/qemu/qemu.inc > > +++ b/meta/recipes-devtools/qemu/qemu.inc > > @@ -3,7 +3,7 @@ HOMEPAGE = "http://qemu.org" > > LICENSE = "GPLv2 & LGPLv2.1" > > DEPENDS = "zlib" > > > > -EXTRA_OECONF = > "--target-list=arm-linux-user,arm-softmmu,i386-linux-user,i386-softmmu,x86_64-linux-user,x86_64-softmmu,mips-linux-user,mips-softmmu,ppc-linux-user,ppc-softmmu,mipsel-linux-user > --disable-werror --disable-vnc-tls --enable-kvm" > > > +EXTRA_OECONF = > "--target-list=arm-linux-user,arm-softmmu,i386-linux-user,i386-softmmu,x86_64-linux-user,x86_64-softmmu,mips-linux-user,mips-softmmu,ppc-linux-user,ppc-softmmu,mipsel-linux-user > --disable-werror --disable-vnc-tls --enable-kvm > --audio-drv-list=oss,alsa --audio-card-list=ac97,es1370" > > > #EXTRA_OECONF += "--disable-sdl" > > > > inherit autotools > > diff --git a/scripts/poky-qemu b/scripts/poky-qemu > > index b19a89d..cb08f27 100755 > > --- a/scripts/poky-qemu > > +++ b/scripts/poky-qemu > > @@ -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` > > -- > > 1.6.3.3 > > > > _______________________________________________ > > poky mailing list > > poky@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/poky > > > > > > -- > "Thou shalt not follow the NULL pointer, for chaos and madness await > thee at its end" > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] qemu: enable audio support 2011-02-22 3:38 ` Zhai, Edwin @ 2011-02-22 5:11 ` Bruce Ashfield 2011-02-22 5:41 ` Zhai, Edwin 0 siblings, 1 reply; 10+ messages in thread From: Bruce Ashfield @ 2011-02-22 5:11 UTC (permalink / raw) To: Zhai, Edwin; +Cc: poky On Mon, Feb 21, 2011 at 10:38 PM, Zhai, Edwin <edwin.zhai@intel.com> wrote: > > > Bruce Ashfield wrote: >> >> On Mon, Feb 21, 2011 at 9:06 PM, Zhai Edwin <edwin.zhai@intel.com> wrote: >> > From: Zhai Edwin <edwin.zhai@intel.com> >> > >> > 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. >> >> I presume that you tested the sound, if you send me the working .config >> (or better a config fragement), I'll update the base configs for the qemu* >> platforms to at least build and make the modules available. >> > > Bruce, > I have tested a ubuntu disk image and heard the sound. What's the simple way > to change the kernel config for test? Aha. Maybe I misunderstood. Did you need to change our qemu target kernel configuration to hear the sound ? If not, then this is a host side configuration item and we don't need to change the BSP configuration at all to enable sound! Cheers, Bruce > > Thanks, > edwin > > >> Looks good BTW! >> >> Bruce >> >> > >> > [BUGID #488] got fixed. >> > >> > Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> >> > --- >> > meta/recipes-devtools/qemu/qemu.inc | 2 +- >> > scripts/poky-qemu | 7 +++++++ >> > 2 files changed, 8 insertions(+), 1 deletions(-) >> > >> > diff --git a/meta/recipes-devtools/qemu/qemu.inc >> > b/meta/recipes-devtools/qemu/qemu.inc >> > index 33c2c71..2c6b114 100644 >> > --- a/meta/recipes-devtools/qemu/qemu.inc >> > +++ b/meta/recipes-devtools/qemu/qemu.inc >> > @@ -3,7 +3,7 @@ HOMEPAGE = "http://qemu.org" >> > LICENSE = "GPLv2 & LGPLv2.1" >> > DEPENDS = "zlib" >> > >> > -EXTRA_OECONF = >> > "--target-list=arm-linux-user,arm-softmmu,i386-linux-user,i386-softmmu,x86_64-linux-user,x86_64-softmmu,mips-linux-user,mips-softmmu,ppc-linux-user,ppc-softmmu,mipsel-linux-user >> > --disable-werror --disable-vnc-tls --enable-kvm" >> >> > +EXTRA_OECONF = >> > "--target-list=arm-linux-user,arm-softmmu,i386-linux-user,i386-softmmu,x86_64-linux-user,x86_64-softmmu,mips-linux-user,mips-softmmu,ppc-linux-user,ppc-softmmu,mipsel-linux-user >> > --disable-werror --disable-vnc-tls --enable-kvm --audio-drv-list=oss,alsa >> > --audio-card-list=ac97,es1370" >> >> > #EXTRA_OECONF += "--disable-sdl" >> > >> > inherit autotools >> > diff --git a/scripts/poky-qemu b/scripts/poky-qemu >> > index b19a89d..cb08f27 100755 >> > --- a/scripts/poky-qemu >> > +++ b/scripts/poky-qemu >> > @@ -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` >> > -- >> > 1.6.3.3 >> > >> > _______________________________________________ >> > poky mailing list >> > poky@yoctoproject.org >> > https://lists.yoctoproject.org/listinfo/poky >> > >> >> >> >> -- >> "Thou shalt not follow the NULL pointer, for chaos and madness await >> thee at its end" >> > -- "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end" ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] qemu: enable audio support 2011-02-22 5:11 ` Bruce Ashfield @ 2011-02-22 5:41 ` Zhai, Edwin 2011-02-22 5:49 ` Bruce Ashfield 0 siblings, 1 reply; 10+ messages in thread From: Zhai, Edwin @ 2011-02-22 5:41 UTC (permalink / raw) To: Bruce Ashfield; +Cc: poky Bruce Ashfield wrote: > > On Mon, Feb 21, 2011 at 10:38 PM, Zhai, Edwin <edwin.zhai@intel.com> > wrote: > > > > > > Bruce Ashfield wrote: > >> > >> On Mon, Feb 21, 2011 at 9:06 PM, Zhai Edwin <edwin.zhai@intel.com> > wrote: > >> > From: Zhai Edwin <edwin.zhai@intel.com> > >> > > >> > 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. > >> > >> I presume that you tested the sound, if you send me the working > .config > >> (or better a config fragement), I'll update the base configs for > the qemu* > >> platforms to at least build and make the modules available. > >> > > > > Bruce, > > I have tested a ubuntu disk image and heard the sound. What's the > simple way > > to change the kernel config for test? > > Aha. Maybe I misunderstood. Did you need to change our qemu target > kernel configuration to hear the sound ? > Yes, I mean qemux86/x86_64 target kernel config, so that target kernel can use emulated sound card device to make some noise on host:) I know there is something tricky to change the qemu target config as some internal tools are used. Last time, I hacked to add one extra config file including all changed entries. But forget it now:( What's your suggestion for our kernel user to hack the config? > If not, then this is a host side > configuration item and we don't need to change the BSP configuration > at all to enable sound! > > Cheers, > > Bruce > > > > > Thanks, > > edwin > > > > > >> Looks good BTW! > >> > >> Bruce > >> > >> > > >> > [BUGID #488] got fixed. > >> > > >> > Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> > >> > --- > >> > meta/recipes-devtools/qemu/qemu.inc | 2 +- > >> > scripts/poky-qemu | 7 +++++++ > >> > 2 files changed, 8 insertions(+), 1 deletions(-) > >> > > >> > diff --git a/meta/recipes-devtools/qemu/qemu.inc > >> > b/meta/recipes-devtools/qemu/qemu.inc > >> > index 33c2c71..2c6b114 100644 > >> > --- a/meta/recipes-devtools/qemu/qemu.inc > >> > +++ b/meta/recipes-devtools/qemu/qemu.inc > >> > @@ -3,7 +3,7 @@ HOMEPAGE = "http://qemu.org" > >> > LICENSE = "GPLv2 & LGPLv2.1" > >> > DEPENDS = "zlib" > >> > > >> > -EXTRA_OECONF = > >> > > "--target-list=arm-linux-user,arm-softmmu,i386-linux-user,i386-softmmu,x86_64-linux-user,x86_64-softmmu,mips-linux-user,mips-softmmu,ppc-linux-user,ppc-softmmu,mipsel-linux-user > > >> > --disable-werror --disable-vnc-tls --enable-kvm" > >> > >> > +EXTRA_OECONF = > >> > > "--target-list=arm-linux-user,arm-softmmu,i386-linux-user,i386-softmmu,x86_64-linux-user,x86_64-softmmu,mips-linux-user,mips-softmmu,ppc-linux-user,ppc-softmmu,mipsel-linux-user > > >> > --disable-werror --disable-vnc-tls --enable-kvm > --audio-drv-list=oss,alsa > >> > --audio-card-list=ac97,es1370" > >> > >> > #EXTRA_OECONF += "--disable-sdl" > >> > > >> > inherit autotools > >> > diff --git a/scripts/poky-qemu b/scripts/poky-qemu > >> > index b19a89d..cb08f27 100755 > >> > --- a/scripts/poky-qemu > >> > +++ b/scripts/poky-qemu > >> > @@ -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` > >> > -- > >> > 1.6.3.3 > >> > > >> > _______________________________________________ > >> > poky mailing list > >> > poky@yoctoproject.org > >> > https://lists.yoctoproject.org/listinfo/poky > >> > > >> > >> > >> > >> -- > >> "Thou shalt not follow the NULL pointer, for chaos and madness await > >> thee at its end" > >> > > > > > > -- > "Thou shalt not follow the NULL pointer, for chaos and madness await > thee at its end" > ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 1/1] qemu: enable audio support 2011-02-22 5:41 ` Zhai, Edwin @ 2011-02-22 5:49 ` Bruce Ashfield 0 siblings, 0 replies; 10+ messages in thread From: Bruce Ashfield @ 2011-02-22 5:49 UTC (permalink / raw) To: Zhai, Edwin; +Cc: poky On 11-02-22 12:41 AM, Zhai, Edwin wrote: > > > Bruce Ashfield wrote: >> >> On Mon, Feb 21, 2011 at 10:38 PM, Zhai, Edwin <edwin.zhai@intel.com> >> wrote: >> > >> > >> > Bruce Ashfield wrote: >> >> >> >> On Mon, Feb 21, 2011 at 9:06 PM, Zhai Edwin <edwin.zhai@intel.com> >> wrote: >> >> > From: Zhai Edwin <edwin.zhai@intel.com> >> >> > >> >> > 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. >> >> >> >> I presume that you tested the sound, if you send me the working >> .config >> >> (or better a config fragement), I'll update the base configs for >> the qemu* >> >> platforms to at least build and make the modules available. >> >> >> > >> > Bruce, >> > I have tested a ubuntu disk image and heard the sound. What's the >> simple way >> > to change the kernel config for test? >> >> Aha. Maybe I misunderstood. Did you need to change our qemu target >> kernel configuration to hear the sound ? >> > > Yes, I mean qemux86/x86_64 target kernel config, so that target kernel > can use emulated sound card device to make some noise on host:) I just noticed the bugs that were assigned to me for this, I'll update the bugzilla cases with the information on how to modify the configuration. > > I know there is something tricky to change the qemu target config as > some internal tools are used. Last time, I hacked to add one extra > config file including all changed entries. But forget it now:( Luckily it isn't all that tricky anymore. If you create any file with ".cfg" as the extension that contains a series of kernel configuration values and add it to the SRC_URI in the same manner as any patch/defconfig, you've done most of the work to modifying the kernel configuration. The contents of that .cfg file will be added to the end of the kernel configuration and applied to the kernel build. Those changes can then be sent for merging into the kernel repository as default values for the BSP in question. > > What's your suggestion for our kernel user to hack the config? See above. Start with a .cfg file, and then when you are happy with the configuration changes, you can either modify the 'meta' branch directly or simply send the .cfg file to me in a pull request and I'll apply it to the meta branch and merge it into the repository as the default for the BSP in question.' If you search the mailing list for email from TomZ about the intel BSPs, you'll have some good examples on how to modify the meta branch directly (if you are interested). Let me know if you need more details and I'd be more than happy to help out here! In particular if the documentation in or kernel/BSP guides isn't sufficient to help here, we should definitely improve it. Cheers, Bruce > >> If not, then this is a host side >> configuration item and we don't need to change the BSP configuration >> at all to enable sound! >> >> Cheers, >> >> Bruce >> >> > >> > Thanks, >> > edwin >> > >> > >> >> Looks good BTW! >> >> >> >> Bruce >> >> >> >> > >> >> > [BUGID #488] got fixed. >> >> > >> >> > Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> >> >> > --- >> >> > meta/recipes-devtools/qemu/qemu.inc | 2 +- >> >> > scripts/poky-qemu | 7 +++++++ >> >> > 2 files changed, 8 insertions(+), 1 deletions(-) >> >> > >> >> > diff --git a/meta/recipes-devtools/qemu/qemu.inc >> >> > b/meta/recipes-devtools/qemu/qemu.inc >> >> > index 33c2c71..2c6b114 100644 >> >> > --- a/meta/recipes-devtools/qemu/qemu.inc >> >> > +++ b/meta/recipes-devtools/qemu/qemu.inc >> >> > @@ -3,7 +3,7 @@ HOMEPAGE = "http://qemu.org" >> >> > LICENSE = "GPLv2 & LGPLv2.1" >> >> > DEPENDS = "zlib" >> >> > >> >> > -EXTRA_OECONF = >> >> > >> "--target-list=arm-linux-user,arm-softmmu,i386-linux-user,i386-softmmu,x86_64-linux-user,x86_64-softmmu,mips-linux-user,mips-softmmu,ppc-linux-user,ppc-softmmu,mipsel-linux-user >> >> >> >> > --disable-werror --disable-vnc-tls --enable-kvm" >> >> >> >> > +EXTRA_OECONF = >> >> > >> "--target-list=arm-linux-user,arm-softmmu,i386-linux-user,i386-softmmu,x86_64-linux-user,x86_64-softmmu,mips-linux-user,mips-softmmu,ppc-linux-user,ppc-softmmu,mipsel-linux-user >> >> >> >> > --disable-werror --disable-vnc-tls --enable-kvm >> --audio-drv-list=oss,alsa >> >> > --audio-card-list=ac97,es1370" >> >> >> >> > #EXTRA_OECONF += "--disable-sdl" >> >> > >> >> > inherit autotools >> >> > diff --git a/scripts/poky-qemu b/scripts/poky-qemu >> >> > index b19a89d..cb08f27 100755 >> >> > --- a/scripts/poky-qemu >> >> > +++ b/scripts/poky-qemu >> >> > @@ -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` >> >> > -- >> >> > 1.6.3.3 >> >> > >> >> > _______________________________________________ >> >> > poky mailing list >> >> > poky@yoctoproject.org >> >> > https://lists.yoctoproject.org/listinfo/poky >> >> > >> >> >> >> >> >> >> >> -- >> >> "Thou shalt not follow the NULL pointer, for chaos and madness await >> >> thee at its end" >> >> >> > >> >> >> >> -- >> "Thou shalt not follow the NULL pointer, for chaos and madness await >> thee at its end" >> > _______________________________________________ > poky mailing list > poky@yoctoproject.org > https://lists.yoctoproject.org/listinfo/poky ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-02-22 8:34 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-02-22 2:06 [PATCH 0/1] enable qemu audio Zhai Edwin 2011-02-22 2:06 ` [PATCH 1/1] qemu: enable audio support Zhai Edwin 2011-02-22 2:14 ` Tom Rini 2011-02-22 5:18 ` Zhai, Edwin 2011-02-22 8:34 ` Richard Purdie 2011-02-22 2:25 ` Bruce Ashfield 2011-02-22 3:38 ` Zhai, Edwin 2011-02-22 5:11 ` Bruce Ashfield 2011-02-22 5:41 ` Zhai, Edwin 2011-02-22 5:49 ` Bruce Ashfield
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.