Bug 1018 - runqemu script has bugs with the audio option
Summary: runqemu script has bugs with the audio option
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 1.0
Hardware: x86 Multiple
: Low normal
Target Milestone: 2.2 M3
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
Depends on: 1683 4827
Blocks:
  Show dependency tree
 
Reported: 2011-05-02 15:26 UTC by Scott Garman
Modified: 2016-09-15 04:18 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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