bolero: tx-macro: Fix audio distortion during amic record

Distortion is heard during CTS audio record. Do not
add delay while toggle hpf frequency and zero gate
to resolve distortion.

Change-Id: I234cfcce43a6fb5d9c372f2655abdb2f8b5c4853
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:
Vatsal Bucha
2020-04-09 13:11:29 +05:30
committed by Gerrit - the friendly Code Review server
parent e000435f75
commit f118f0b5b3

View File

@@ -489,8 +489,6 @@ static void tx_macro_tx_hpf_corner_freq_callback(struct work_struct *work)
hpf_cut_off_freq << 5); hpf_cut_off_freq << 5);
snd_soc_component_update_bits(component, hpf_gate_reg, snd_soc_component_update_bits(component, hpf_gate_reg,
0x03, 0x02); 0x03, 0x02);
/* Minimum 1 clk cycle delay is required as per HW spec */
usleep_range(1000, 1010);
snd_soc_component_update_bits(component, hpf_gate_reg, snd_soc_component_update_bits(component, hpf_gate_reg,
0x03, 0x01); 0x03, 0x01);
} else { } else {
@@ -945,10 +943,6 @@ static int tx_macro_enable_dec(struct snd_soc_dapm_widget *w,
< BOLERO_ADC_MAX)) < BOLERO_ADC_MAX))
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
hpf_gate_reg, 0x03, 0x00); hpf_gate_reg, 0x03, 0x00);
/*
* Minimum 1 clk cycle delay is required as per HW spec
*/
usleep_range(1000, 1010);
snd_soc_component_update_bits(component, snd_soc_component_update_bits(component,
hpf_gate_reg, 0x03, 0x01); hpf_gate_reg, 0x03, 0x01);
/* /*