mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "asoc: initialize L/R/C gain for both mono/stereo playback"
This commit is contained in:
commit
6d61dadc8f
1 changed files with 3 additions and 6 deletions
|
|
@ -388,12 +388,9 @@ static int msm_compr_set_volume(struct snd_compr_stream *cstream,
|
|||
} else {
|
||||
gain_list[0] = volume_l;
|
||||
gain_list[1] = volume_r;
|
||||
/* force sending FR/FL/FC volume for mono */
|
||||
if (prtd->num_channels == 1) {
|
||||
gain_list[2] = volume_l;
|
||||
num_channels = 3;
|
||||
use_default = true;
|
||||
}
|
||||
gain_list[2] = volume_l;
|
||||
num_channels = 3;
|
||||
use_default = true;
|
||||
rc = q6asm_set_multich_gain(prtd->audio_client, num_channels,
|
||||
gain_list, chmap, use_default);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue