Registration of audio card was causing L4T sanity test
failures when audio codec was absent. Added a new kernel
config to selectively enable this feature.
Bug
200130213
Change-Id: I0998c122742e4012eda02a3d389fae96ee85202b
Signed-off-by: Sharad Gupta <sharadg@nvidia.com>
Reviewed-on: http://git-master/r/783159
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Tested-by: Shaunak Gupte <shaunakg@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pierre Gervais <pgervais@nvidia.com>
depends on SND_SOC_TEGRA_ALT
depends on ARCH_TEGRA_APE
+config SND_SOC_TEGRA_ALT_FORCE_CARD_REG
+ tristate "Enable sound card even if audio codec is missing on board"
+ depends on SND_SOC_TEGRA_ALT
+ help
+ Say Y or M if you want to register the sound card even if audio codec
+ is not connected/present on board.
+
config SND_SOC_TEGRA30_XBAR_ALT
tristate "Tegra30 XBAR driver"
depends on SND_SOC_TEGRA_ALT && SND_SOC_TEGRA_ALT_30_OR_LATER
ret = snd_soc_register_card(card);
if (ret) {
+#ifdef CONFIG_SND_SOC_TEGRA_ALT_FORCE_CARD_REG
dai_link_setup(pdev, 1);
ret = snd_soc_register_card(card);
+#endif
if (ret) {
dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n",