Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 569a62b8 authored by Shiv Maliyappanahalli's avatar Shiv Maliyappanahalli Committed by Kyle Yan
Browse files

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: default avatarShiv Maliyappanahalli <smaliyap@codeaurora.org>
parent 94dbc90b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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")))