In pcm port config, update max port check. Change-Id: I6e0aa683137678962827469914633adade937132 Signed-off-by: Laxminath Kasam <[email protected]>
@@ -744,7 +744,7 @@ static int swrm_pcm_port_config(struct swr_mstr_ctrl *swrm, u8 port_num,
u16 reg_addr = 0;
u32 reg_val = SWRM_COMP_FEATURE_CFG_DEFAULT_VAL;
- if (!port_num || port_num > 6) {
+ if (!port_num || port_num > SWR_MSTR_PORT_LEN) {
dev_err(swrm->dev, "%s: invalid port: %d\n",
__func__, port_num);
return -EINVAL;