asoc: lpass-cdc: remove broadcast for wsa-macro
When multi wsas are connected to wsa-macro and some registers are written to wsa, swr broadcast mode is used. When closing one wsa, it will also send the register write to the other wsa and it should not get updated. The other wsa will be in bad state. Remove broadcast for wsa-macro to resolve this issue. Change-Id: I4c788a213fdcd217861703a13d44c096fd9b632d Signed-off-by: Meng Wang <mengw@codeaurora.org>
This commit is contained in:
@@ -1184,9 +1184,6 @@ static int lpass_cdc_wsa2_macro_enable_swr(struct snd_soc_dapm_widget *w,
|
||||
swrm_wcd_notify(
|
||||
wsa2_priv->swr_ctrl_data[0].wsa2_swr_pdev,
|
||||
SWR_DEVICE_UP, NULL);
|
||||
swrm_wcd_notify(
|
||||
wsa2_priv->swr_ctrl_data[0].wsa2_swr_pdev,
|
||||
SWR_SET_NUM_RX_CH, &ch_cnt);
|
||||
}
|
||||
break;
|
||||
case SND_SOC_DAPM_POST_PMD:
|
||||
@@ -1198,10 +1195,6 @@ static int lpass_cdc_wsa2_macro_enable_swr(struct snd_soc_dapm_widget *w,
|
||||
wsa2_priv->rx_1_count--;
|
||||
ch_cnt = wsa2_priv->rx_0_count + wsa2_priv->rx_1_count;
|
||||
|
||||
if (wsa2_priv->swr_ctrl_data)
|
||||
swrm_wcd_notify(
|
||||
wsa2_priv->swr_ctrl_data[0].wsa2_swr_pdev,
|
||||
SWR_SET_NUM_RX_CH, &ch_cnt);
|
||||
break;
|
||||
}
|
||||
dev_dbg(wsa2_priv->dev, "%s: current swr ch cnt: %d\n",
|
||||
|
Reference in New Issue
Block a user