From 569a62b8dda5c345c0af1e1bcc9598e5c320a043 Mon Sep 17 00:00:00 2001 From: Shiv Maliyappanahalli Date: Thu, 30 Jun 2016 13:12:09 -0700 Subject: 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 --- sound/soc/msm/msmcobalt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sound') 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"))) -- cgit v1.2.3