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

Commit 69a16a0e authored by Jing Wang's avatar Jing Wang Committed by Gerrit - the friendly Code Review server
Browse files

asoc: Add jitter cleaner external clock switch



Add jitter cleaner external clock switch.

Change-Id: Iacdaef52ca0d00bb4423cb8a719ef5e955711619
Signed-off-by: default avatarJing Wang <quic_c_jingwa@quicinc.com>
parent 7198399f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -533,6 +533,7 @@ static int clk_id_index;
static int clk_root_index;
static int clk_attri_index;
static int global_dyn_mclk_cfg_portid;
static bool jitter_cleaner_enable = false; // jitter cleaner ext clock enable/disable
struct afe_param_id_clock_set_v2_t global_dyn_mclk_cfg = {
	.clk_set_minor_version = Q6AFE_LPASS_CLK_CONFIG_API_VERSION,
	.clk_id = Q6AFE_LPASS_CLK_ID_TER_PCM_IBIT,
@@ -10755,7 +10756,7 @@ static int msm_dai_q6_dai_tdm_probe(struct snd_soc_dai *dai)
	}

	/* add AFE dyn mclk controls */
	if (!afe_dyn_mclk_control_added) {
	if ((!afe_dyn_mclk_control_added) && (jitter_cleaner_enable)) {
		rc = msm_pcm_add_afe_dyn_mclk_control(dai);
		if (rc < 0) {
			dev_err(dai->dev, "%s: add AFE dyn mclk control failed DAI: %s\n",