Merge "asoc: initialize L/R/C gain for both mono/stereo playback"

This commit is contained in:
Linux Build Service Account
2017-09-20 17:55:23 -07:00
committed by Gerrit - the friendly Code Review server

View File

@@ -388,12 +388,9 @@ static int msm_compr_set_volume(struct snd_compr_stream *cstream,
} else { } else {
gain_list[0] = volume_l; gain_list[0] = volume_l;
gain_list[1] = volume_r; gain_list[1] = volume_r;
/* force sending FR/FL/FC volume for mono */ gain_list[2] = volume_l;
if (prtd->num_channels == 1) { num_channels = 3;
gain_list[2] = volume_l; use_default = true;
num_channels = 3;
use_default = true;
}
rc = q6asm_set_multich_gain(prtd->audio_client, num_channels, rc = q6asm_set_multich_gain(prtd->audio_client, num_channels,
gain_list, chmap, use_default); gain_list, chmap, use_default);
} }