mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Merge "asoc: codecs: bolero: add delay after toggling hpf gate"
This commit is contained in:
commit
070e06c2eb
2 changed files with 12 additions and 0 deletions
|
|
@ -911,6 +911,12 @@ static int tx_macro_enable_dec(struct snd_soc_dapm_widget *w,
|
|||
usleep_range(1000, 1010);
|
||||
snd_soc_component_update_bits(component,
|
||||
hpf_gate_reg, 0x02, 0x00);
|
||||
snd_soc_component_update_bits(component,
|
||||
hpf_gate_reg, 0x01, 0x01);
|
||||
/*
|
||||
* 6ms delay is required as per HW spec
|
||||
*/
|
||||
usleep_range(6000, 6010);
|
||||
}
|
||||
/* apply gain after decimator is enabled */
|
||||
snd_soc_component_write(component, tx_gain_ctl_reg,
|
||||
|
|
|
|||
|
|
@ -1098,6 +1098,12 @@ static int va_macro_enable_dec(struct snd_soc_dapm_widget *w,
|
|||
usleep_range(1000, 1010);
|
||||
snd_soc_component_update_bits(component,
|
||||
hpf_gate_reg, 0x02, 0x00);
|
||||
snd_soc_component_update_bits(component,
|
||||
hpf_gate_reg, 0x01, 0x01);
|
||||
/*
|
||||
* 6ms delay is required as per HW spec
|
||||
*/
|
||||
usleep_range(6000, 6010);
|
||||
}
|
||||
/* schedule work queue to Remove Mute */
|
||||
schedule_delayed_work(&va_priv->va_mute_dwork[decimator].dwork,
|
||||
|
|
|
|||
Loading…
Reference in a new issue