summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorShiv Maliyappanahalli <smaliyap@codeaurora.org>2016-06-30 13:12:09 -0700
committerKyle Yan <kyan@codeaurora.org>2016-07-05 15:35:48 -0700
commit569a62b8dda5c345c0af1e1bcc9598e5c320a043 (patch)
treef249157743bbba893d96b8ff79dfd3198c3e8f2b /sound
parent94dbc90bb4ea91bc37481a3241c4f154605bfe06 (diff)
msmcobalt: fix channel configuration for SLIMBUS
Channel count for SLIM_RX_6 port cannot be set since get_port_idx() returns invalid port id which resulting in invalid channel configuration for headset usecase. Fix by adding SLIM_RX_6 case in get_port_idx(). Change-Id: Iadd3e995d044198c711f744c11b62cec2f7902c0 Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/msm/msmcobalt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/msm/msmcobalt.c b/sound/soc/msm/msmcobalt.c
index 88225e8a4861..e4ad523bacb7 100644
--- a/sound/soc/msm/msmcobalt.c
+++ b/sound/soc/msm/msmcobalt.c
@@ -347,6 +347,8 @@ static int slim_get_port_idx(struct snd_kcontrol *kcontrol)
port_id = SLIM_RX_0;
else if (strnstr(kcontrol->id.name, "SLIM_5_RX", sizeof("SLIM_5_RX")))
port_id = SLIM_RX_5;
+ else if (strnstr(kcontrol->id.name, "SLIM_6_RX", sizeof("SLIM_6_RX")))
+ port_id = SLIM_RX_6;
else if (strnstr(kcontrol->id.name, "SLIM_0_TX", sizeof("SLIM_0_TX")))
port_id = SLIM_TX_0;
else if (strnstr(kcontrol->id.name, "SLIM_1_TX", sizeof("SLIM_1_TX")))