Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 070e06c2 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "asoc: codecs: bolero: add delay after toggling hpf gate"

parents 3be7aef8 9366ce6e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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,
+6 −0
Original line number Diff line number Diff line
@@ -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,