asoc: kalama: 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: I0de73a09f1bdfffac1412a4c1f8f8ec5e64e4c4b Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
42e49611b0
commit
17130d8e4b
@@ -1294,9 +1294,17 @@ static int msm_snd_card_late_probe(struct snd_soc_card *card)
|
||||
{
|
||||
struct snd_soc_component *component = NULL;
|
||||
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, &card->dai_link[0]);
|
||||
if (!rtd) {
|
||||
dev_err(card->dev,
|
||||
|
@@ -1234,9 +1234,17 @@ static int msm_snd_card_late_probe(struct snd_soc_card *card)
|
||||
{
|
||||
struct snd_soc_component *component = NULL;
|
||||
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, &card->dai_link[0]);
|
||||
if (!rtd) {
|
||||
dev_err(card->dev,
|
||||
|
Reference in New Issue
Block a user