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>
This commit is contained in:
parent
94dbc90bb4
commit
569a62b8dd
1 changed files with 2 additions and 0 deletions
|
@ -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")))
|
||||
|
|
Loading…
Add table
Reference in a new issue