diff options
author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-10-05 16:10:20 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-10-05 16:10:20 -0700 |
commit | eecaf2b6d238caac868899dd77765243b8230724 (patch) | |
tree | 731c9e686903740591b8287ab76ce9147996122b | |
parent | 54a4a462665446b3973ae17090b5ed32fb5c4c2b (diff) | |
parent | 8d8e7881dedeb5487769cbb3323c1ad653613f44 (diff) |
Merge "ASoC: msm: qdsp6v2: initialize L/R/C gain for both mono/stereo playback"
-rw-r--r-- | sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c index c462f682e160..471be3294881 100644 --- a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c +++ b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c @@ -397,12 +397,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); } |