Bug 840653 - QEMU VNC Remote Sound stopped working
Summary: QEMU VNC Remote Sound stopped working
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: 17
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Fedora Virtualization Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-16 19:53 UTC by Albert Graham
Modified: 2013-01-09 12:05 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-09 23:01:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Albert Graham 2012-07-16 19:53:49 UTC
Description of problem:

QEMU Remote Audio via VNC stopped working around april 2012 in various Fedora version.

It was discovered that a new configure option "--enable-mixemu" was used in qemu-1.0-15.fc1x.src.rpm that inadvertently hit a bug in QEMU. This was not noticed primiliary because there are very few VNC clients that implement the QEMU AUDIO RFB protocol extensions.

I only discovered the bug after my own VNC client stopped working when I upgraded from QEMU 0.13 (Fedora 14) to QEMU 1.1.x.

Version-Release number of selected component (if applicable):

Fedora 16, 17 or any version using > qemu-1.0-10.fcx

How reproducible:

Steps to Reproduce:
1. Install Fedora 16 as a Host
2. Create a guest that can produce sound (e.g. Windows XP)
3. Using a QEMU AUDIO RFB capable VNC client, connect to the guest and capture sound. Such a client can be found here:

http://repo.or.cz/w/qemu-vcap.git

Actual results:

Silence.

Expected results:

Sound reproduction.

Additional info:

I original reported this to the QEMU mailing list, details can be found here:
http://lists.gnu.org/archive/html/qemu-devel/2012-07/msg01814.html

A patch was produced that fixes the issue as follows:

[..snip..]

diff --git a/audio/audio.c b/audio/audio.c
index 583ee51..1c77389 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -818,6 +818,7 @@ static int audio_attach_capture (HWVoiceOut *hw)
         sw->active = hw->enabled;
         sw->conv = noop_conv;
         sw->ratio = ((int64_t) hw_cap->info.freq << 32) / sw->info.freq;
+        sw->vol = nominal_volume;
         sw->rate = st_rate_start (sw->info.freq, hw_cap->info.freq);
         if (!sw->rate) {
             dolog ("Could not start rate conversion for `%s'\n", SW_NAME (sw));

[..snip..]

Adding the patch to qemu-1.0-15.fc1x.src.rpm as well as the latest rawhide versions and testing confirmed that this patch fixes the problem for all versions.

It should be noted that you can avoid the bug by not using the --enable-mixemu configure option too.

Comment 1 Albert Graham 2012-07-17 01:08:19 UTC
Upstream patch - audio: Unbreak capturing in mixemu case

http://repo.or.cz/w/qemu.git/commit/83617103984eb4d81cf46c94435f3da2c6f33b55

Comment 2 Fedora Update System 2012-07-30 11:24:31 UTC
qemu-1.0.1-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/qemu-1.0.1-1.fc17

Comment 3 Fedora Update System 2012-07-30 22:28:13 UTC
Package qemu-1.0.1-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing qemu-1.0.1-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-11302/qemu-1.0.1-1.fc17
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2012-08-09 23:01:10 UTC
qemu-1.0.1-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.