audio: fix nominal volume channel (cosmetic)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Link: https://lore.kernel.org/r/20260211-cleanups-v1-1-e63c96572389@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Marc-André Lureau committed
Feb 11, 2026 at 14:01 UTC
9b12aeda033a531cc2725fedb156b5f51d4c7294
1 file changed
+1
-1
audio/audio-mixeng-be.c
+1
-1
@@ -1649,7 +1649,7 @@ static void audio_mixeng_backend_set_volume_out(AudioBackend *be, SWVoiceOut *sw
1649
1650
sw->vol.mute = vol->mute;
1651
sw->vol.l = nominal_volume.l * vol->vol[0] / 255;
1652
- sw->vol.r = nominal_volume.l * vol->vol[vol->channels > 1 ? 1 : 0] /
1652
+ sw->vol.r = nominal_volume.r * vol->vol[vol->channels > 1 ? 1 : 0] /
1653
255;
1654
1655
if (k->volume_out) {