Bug 1018

Summary: runqemu script has bugs with the audio option
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Scott Garman <scott.a.garman>
Component: meta-yoctoAssignee: Robert Yang <liezhi.yang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Low CC: jessica.zhang, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 1.0   
Target Milestone: 2.2 M3   
Hardware: x86   
OS: Multiple   
See Also: http://bugzilla.yoctoproject.org/show_bug.cgi?id=1683
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on: 1683, 4827    
Bug Blocks:    

Description Scott Garman 2011-05-02 15:26:57 UTC
I sat down with Darren today and he demonstrated some issues with the audio option to runqemu:

* There is no mention of the audio option in the script's help output
* The runtime debug message that audio was enabled should be cleaned up (improve English)
* The audio option doesn't always work depending on where it is placed in the list of command options
Comment 1 Scott Garman 2011-09-09 03:07:21 UTC
I do not have a means of reproducing this bug in time for a 1.1 fix. We do not build our QEMU binaries with PulseAudio support, and Ubuntu as of 10.10 no longer supports /dev/dsp for oss/alsa, as documented here:

http://www.khattam.info/solved-cant-open-devdsp-in-ubuntu-10-10-maverick-meerkat-2010-06-09.html

I've confirmed that running QEMU under the "padsp" utility does not help as a workaround.

What this also means is that audio support cannot be made use of on Ubuntu hosts as of 10.10.
Comment 2 Richard Purdie 2012-03-08 17:31:46 UTC
nhWhilst this is a nice idea, it likely needs changes to the scripts, the qemu configuration (with added dependencies) and also potentially kernel configuration. With the variety of possible audio configurations out there this is harder than it would first appear. I do have some pieces of this as patches in my contrib branches.

Since its a complex issue, move to 1.3.
Comment 3 Saul Wold 2013-08-21 20:47:33 UTC
This has been shuffled down the road already, but until we have a proper 
maintainer for Qemu and the runqemu script this is moving out.
Comment 4 Robert Yang 2016-09-15 04:18:11 UTC
Now the audio support is controlled by bsp, it can set QB_AUDIO_DRV, QB_AUDIO_DRV and QB_AUDIO_OPT, see meta/classes/qemuboot.bbclass for more info.

Also fixed the help info.

Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b405712414de98cba3a645601419aceb32d52f02