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

Commit a170ccba authored by Vidyakumar Athota's avatar Vidyakumar Athota Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msmcobalt: send ANC config for WCD9340 codec



ADSP requires ANC configuration to run the ANC algorithm.
Send the common configuration for both WCD9335 and WCD9340
codecs.

Change-Id: I12154b0aa315fde6dd92267d4c8f4a78a6f0236f
Signed-off-by: default avatarVidyakumar Athota <vathota@codeaurora.org>
parent 626caf4e
Loading
Loading
Loading
Loading
+11 −10
Original line number Diff line number Diff line
@@ -2486,7 +2486,6 @@ static int msm_audrx_init(struct snd_soc_pcm_runtime *rtd)
		goto err_afe_cfg;
	}

	if (!strcmp(dev_name(codec_dai->dev), "tasha_codec")) {
	config_data = msm_codec_fn.get_afe_config_fn(codec,
						     AFE_AANC_VERSION);
	if (config_data) {
@@ -2497,6 +2496,8 @@ static int msm_audrx_init(struct snd_soc_pcm_runtime *rtd)
			goto err_afe_cfg;
		}
	}

	if (!strcmp(dev_name(codec_dai->dev), "tasha_codec")) {
		config_data = msm_codec_fn.get_afe_config_fn(codec,
						AFE_CDC_CLIP_REGISTERS_CONFIG);
		if (config_data) {