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

Commit 36b9a31a authored by Meng Wang's avatar Meng Wang
Browse files

asoc: lahaina: add wcd_disabled check in late_probe



Add wcd_disabled check in late_probe to avoid checking
wcd component when WCD is disabled.

Change-Id: I9fe4fa993b94b09d7ffef0f59505b102165b87ac
Signed-off-by: default avatarMeng Wang <mengw@codeaurora.org>
parent 5fbd9fb1
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -7289,9 +7289,17 @@ static int msm_snd_card_late_probe(struct snd_soc_card *card)
	struct snd_soc_component *component = NULL;
	const char *be_dl_name = LPASS_BE_RX_CDC_DMA_RX_0;
	struct snd_soc_pcm_runtime *rtd;
	struct msm_asoc_mach_data *pdata;
	int ret = 0;
	void *mbhc_calibration;

	pdata = snd_soc_card_get_drvdata(card);
	if (!pdata)
		return -EINVAL;

	if (pdata->wcd_disabled)
		return 0;

	rtd = snd_soc_get_pcm_runtime(card, be_dl_name);
	if (!rtd) {
		dev_err(card->dev,