ASoC: tegra: disable jack detect (WAR)

There seems to be kernel panic happening when rt5659_set_jack_detect()
is called from the machine driver.

For now the jack detection is disabled to unblock 5.4 bringup and
can be separately tracked. A FIXME item is put. Once the issue is
resolved this patch can be reverted.

Bug 2845498

Change-Id: Ieb67e783a1dbcfb9ebbeb2bf301a818c94e38457
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
This commit is contained in:
Sameer Pujar
2020-02-26 19:09:16 +05:30
parent 517398df1a
commit a7db2ff05e

View File

@@ -393,11 +393,15 @@ static int tegra_machine_rt565x_init(struct snd_soc_pcm_runtime *rtd)
return err;
}
/* FIXME */
#if 0
err = rt5659_set_jack_detect(rtd->codec_dai->component, jack);
if (err) {
dev_err(card->dev, "Failed to set jack for RT565x: %d\n", err);
return err;
}
#endif
/* single button supporting play/pause */
snd_jack_set_key(jack->jack, SND_JACK_BTN_0, KEY_MEDIA);