asoc: codecs: error fix for soc_component_read_no_lock

the offset between LPASS_CDC_WSA_RX_INP_MUX_RX_INT0_CFG1 and
LPASS_CDC_WSA_RX_INP_MUX_RX_INT1_CFG1 is 8 so updating
0x104 + 8* interp
update ng block register write for NG2 mode in Kundu

Change-Id: I44da894feebb5d25bd467ffd4d54adde111778e6
Signed-off-by: Shazmaan Ali <quic_shazmaan@quicinc.com>
This commit is contained in:
Shazmaan Ali
2022-03-22 21:29:36 -07:00
committed by Gerrit - the friendly Code Review server
parent 572fd25838
commit 7f29f390e1
2 changed files with 4 additions and 4 deletions

View File

@@ -1316,7 +1316,7 @@ static int lpass_cdc_macro_set_idle_detect_thr(struct snd_soc_component *compone
*/
if (path_type == INTERP_MIX_PATH) {
mux_reg = LPASS_CDC_WSA_RX_INP_MUX_RX_INT0_CFG1 +
2 * interp;
8 * interp;
mux_reg_val = snd_soc_component_read(component, mux_reg) &
0x0f;
@@ -1329,7 +1329,7 @@ static int lpass_cdc_macro_set_idle_detect_thr(struct snd_soc_component *compone
if (path_type == INTERP_MAIN_PATH) {
mux_reg = LPASS_CDC_WSA_RX_INP_MUX_RX_INT1_CFG0 +
2 * (interp - 1);
8 * (interp - 1);
mux_reg_val = snd_soc_component_read(component, mux_reg) &
0x0f;
i = NUM_INTERPOLATORS;

View File

@@ -756,11 +756,11 @@ static void wsa_noise_gate_write(struct snd_soc_component *component,
break;
case NG2:
snd_soc_component_update_bits(component, WSA884X_PA_FSM_CTL1,
WSA884X_IDLE_DETECT_NG_BLOCK_MASK, 0x28);
WSA884X_IDLE_DETECT_NG_BLOCK_MASK, 0x20);
break;
case NG3:
snd_soc_component_update_bits(component, WSA884X_PA_FSM_CTL1,
WSA884X_IDLE_DETECT_NG_BLOCK_MASK, 0x18);
WSA884X_IDLE_DETECT_NG_BLOCK_MASK, 0x10);
break;
default:
snd_soc_component_update_bits(component, WSA884X_PA_FSM_CTL1,