VirtualBox

Opened 8 years ago

Closed 8 years ago

#15598 closed defect (fixed)

AC97 volume control is not linear [5.1 regression]

Reported by: Mihai Hanor Owned by:
Component: audio Version: VirtualBox 5.1.0
Keywords: Cc:
Guest type: all Host type: all

Description

I have discussed the issue here

The guest volume control is off, when using the AC97 audio controller. I would expect a linear control, but that's not the case. I consider it to be a regression in 5.1, as I have never had this kind of problems with previous versions, 5.0.xx and older. It manifests on my Windows 10 x64 host and on my Ubuntu 16.04 x64 host (running on the same PC).

As an example, on my Ubuntu host, using VirtualBox 5.1 (release) to run Ubuntu 16.04 x64 (live) as a guest. The host's Master volume control is set to 100%. Using amixer from the guest's terminal to change the guest Master volume control (e.g. amixer sset 'Master' 100%), there is no difference in sound intensity when modifying the guest's Master volume control anywhere in the range 71-100%, including the limits of this range (which seems to set the maximum intensity). Only when setting to 70%, I can hear a drop in sound intensity. On the other hand, any value below 58%, it's almost mute (I almost can hear something at 58% Master volume setting, but I have good hearing). At 59%, the sound can definitely be heard, at a very low intensity. The same is with Windows as host, the difference is an offset, meaning that, at 50% guest volume setting (using the same guest), I definitely can hear something at a very low intensity. Also, I haven't identified any differences when changing the Host Audio driver (from PulseAudio to ALSA), when using the Ubuntu host.

Attachments (3)

VBox.log (102.0 KB ) - added by Mihai Hanor 8 years ago.
VBox.2.2.log (100.7 KB ) - added by Mihai Hanor 8 years ago.
VBox.2.log (100.7 KB ) - added by Mihai Hanor 8 years ago.

Download all attachments as: .zip

Change History (9)

by Mihai Hanor, 8 years ago

Attachment: VBox.log added

by Mihai Hanor, 8 years ago

Attachment: VBox.2.2.log added

by Mihai Hanor, 8 years ago

Attachment: VBox.2.log added

comment:1 by michaln, 8 years ago

The compression of the range where the volume actually changes is a VirtualBox bug. But I'm much less certain about the behavior where there's no change between about 70 and 100%. As far as I can tell, Linux simply does not change the volume in that range with AC'97 (it's different with HDA). Windows XP behaves differently. Are you certain the volume used to change with AC'97 in the upper range?

The other problem should be fixed in svn now and the there's now something audible even when the guest volume is set low.

comment:2 by michaln, 8 years ago

Upon further inspection, the 70% problem was a bug too, but probably specific to the AD1980 codec emulation (default for Linux guests). Should be fixed now too.

Last edited 8 years ago by michaln (previous) (diff)

comment:3 by Mihai Hanor, 8 years ago

Please let me know when a test build is available with these fixes, so I can try it.

comment:4 by michaln, 8 years ago

Please try a test build 108800 or later from here. Let me know if you need something other than the builds on that page.

Last edited 8 years ago by Frank Mehnert (previous) (diff)

comment:5 by Mihai Hanor, 8 years ago

It's OK with the test build. Thank you.

comment:6 by Frank Mehnert, 8 years ago

Resolution: fixed
Status: newclosed

Thanks for the feedback! Fix is part of 5.1.2.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use