asoc: codecs: Resolve checkpatch errors
Change-Id: I33dca97f388b524c7476e0da0ea8b1cbca4b849c Signed-off-by: Shazmaan Ali <quic_shazmaan@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
2e70df2efe
commit
b62c934b61
@@ -157,8 +157,7 @@ enum {
|
|||||||
INTERP_MIX_PATH,
|
INTERP_MIX_PATH,
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct lpass_cdc_comp_setting comp_setting_table[WSA_MODE_MAX] =
|
static struct lpass_cdc_comp_setting comp_setting_table[WSA_MODE_MAX] = {
|
||||||
{
|
|
||||||
{42, 0, 42},
|
{42, 0, 42},
|
||||||
{39, 0, 42},
|
{39, 0, 42},
|
||||||
{36, 0, 42},
|
{36, 0, 42},
|
||||||
@@ -1800,7 +1799,7 @@ static void lpass_cdc_macro_idle_detect_control(struct snd_soc_component *compon
|
|||||||
val = 0x02;
|
val = 0x02;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(wsa_priv->noise_gate_mode == NG2)
|
if (wsa_priv->noise_gate_mode == NG2)
|
||||||
snd_soc_component_update_bits(component, source_reg, 0x80, 0x80);
|
snd_soc_component_update_bits(component, source_reg, 0x80, 0x80);
|
||||||
else
|
else
|
||||||
snd_soc_component_update_bits(component, source_reg, 0x80, 0x00);
|
snd_soc_component_update_bits(component, source_reg, 0x80, 0x00);
|
||||||
@@ -1884,7 +1883,7 @@ static int lpass_cdc_wsa_macro_enable_interpolator(struct snd_soc_dapm_widget *w
|
|||||||
w->shift, event);
|
w->shift, event);
|
||||||
lpass_cdc_wsa_macro_config_softclip(component, w->shift, event);
|
lpass_cdc_wsa_macro_config_softclip(component, w->shift, event);
|
||||||
lpass_cdc_was_macro_config_pbr(component, w->shift, event);
|
lpass_cdc_was_macro_config_pbr(component, w->shift, event);
|
||||||
if(wsa_priv->wsa_spkrrecv)
|
if (wsa_priv->wsa_spkrrecv)
|
||||||
snd_soc_component_update_bits(component,
|
snd_soc_component_update_bits(component,
|
||||||
LPASS_CDC_WSA_RX0_RX_PATH_CFG1,
|
LPASS_CDC_WSA_RX0_RX_PATH_CFG1,
|
||||||
0x08, 0x00);
|
0x08, 0x00);
|
||||||
@@ -3858,7 +3857,7 @@ static int lpass_cdc_wsa_macro_probe(struct platform_device *pdev)
|
|||||||
__func__, "qcom,noise-gate-mode");
|
__func__, "qcom,noise-gate-mode");
|
||||||
wsa_priv->noise_gate_mode = IDLE_DETECT;
|
wsa_priv->noise_gate_mode = IDLE_DETECT;
|
||||||
} else {
|
} else {
|
||||||
if(IDLE_DETECT <= noise_gate_mode && noise_gate_mode <= NG3)
|
if (IDLE_DETECT <= noise_gate_mode && noise_gate_mode <= NG3)
|
||||||
wsa_priv->noise_gate_mode = noise_gate_mode;
|
wsa_priv->noise_gate_mode = noise_gate_mode;
|
||||||
else
|
else
|
||||||
wsa_priv->noise_gate_mode = IDLE_DETECT;
|
wsa_priv->noise_gate_mode = IDLE_DETECT;
|
||||||
|
@@ -2118,7 +2118,7 @@ static int wsa884x_swr_probe(struct swr_device *pdev)
|
|||||||
__func__);
|
__func__);
|
||||||
wsa884x->noise_gate_mode = IDLE_DETECT;
|
wsa884x->noise_gate_mode = IDLE_DETECT;
|
||||||
} else {
|
} else {
|
||||||
if(IDLE_DETECT <= noise_gate_mode && noise_gate_mode <= NG3)
|
if (IDLE_DETECT <= noise_gate_mode && noise_gate_mode <= NG3)
|
||||||
wsa884x->noise_gate_mode = noise_gate_mode;
|
wsa884x->noise_gate_mode = noise_gate_mode;
|
||||||
else
|
else
|
||||||
wsa884x->noise_gate_mode = IDLE_DETECT;
|
wsa884x->noise_gate_mode = IDLE_DETECT;
|
||||||
|
Reference in New Issue
Block a user