[PATCH 1/7] audio: fix nominal volume channel (cosmetic)

Marc-André Lureau posted 7 patches 1 month, 4 weeks ago
Maintainers: Gerd Hoffmann <kraxel@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, John Snow <jsnow@redhat.com>, Cleber Rosa <crosa@redhat.com>
[PATCH 1/7] audio: fix nominal volume channel (cosmetic)
Posted by Marc-André Lureau 1 month, 4 weeks ago
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 audio/audio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/audio/audio.c b/audio/audio.c
index b7a28f79d4f..e35b22697ee 100644
--- a/audio/audio.c
+++ b/audio/audio.c
@@ -1948,7 +1948,7 @@ void AUD_set_volume_out(SWVoiceOut *sw, Volume *vol)
 
         sw->vol.mute = vol->mute;
         sw->vol.l = nominal_volume.l * vol->vol[0] / 255;
-        sw->vol.r = nominal_volume.l * vol->vol[vol->channels > 1 ? 1 : 0] /
+        sw->vol.r = nominal_volume.r * vol->vol[vol->channels > 1 ? 1 : 0] /
             255;
 
         if (hw->pcm_ops->volume_out) {

-- 
2.52.0