summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorSudheer Papothi <spapothi@codeaurora.org>2016-07-06 21:29:18 +0530
committerKyle Yan <kyan@codeaurora.org>2016-07-11 18:56:35 -0700
commit4d7b1c0881768fbaada35c1dc0c49de2219dcdf0 (patch)
tree7d354a06918b5237a487279a4dc0ed6a32251b04 /sound
parentf6b5614ac0ae6fa88cce33e244498e7d2932da8b (diff)
ASoC: msmcobalt: Fix slimbus tx channel configuration
Slimbus tx channel configuration is not updated properly in msmcobalt machine driver. Fix slimbus tx channel configuration for proper functionality of audio recording usecases. Change-Id: I96010edabd04fef0eeb3cbb0b8f1a11d178d99b5 Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/msm/msmcobalt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/msm/msmcobalt.c b/sound/soc/msm/msmcobalt.c
index c835fc3647d2..955a886e3fdc 100644
--- a/sound/soc/msm/msmcobalt.c
+++ b/sound/soc/msm/msmcobalt.c
@@ -572,9 +572,9 @@ static int msm_slim_tx_ch_put(struct snd_kcontrol *kcontrol,
if (ch_num < 0)
return ch_num;
- slim_rx_cfg[ch_num].channels = ucontrol->value.enumerated.item[0] + 1;
+ slim_tx_cfg[ch_num].channels = ucontrol->value.enumerated.item[0] + 1;
pr_debug("%s: msm_slim_[%d]_tx_ch = %d\n", __func__,
- ch_num, slim_rx_cfg[ch_num].channels);
+ ch_num, slim_tx_cfg[ch_num].channels);
return 1;
}