From 90c85d03df9f62aee8fa53e9608a273db314a16c Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Thu, 31 May 2018 14:15:15 +0100 Subject: [PATCH] ASoC: tegra-alt: Fix supermodule support for T194 Rey The supermodule is not currently working on the Tegra194 Rey board. The supermodule is detected correctly by the plugin manager, but the card controls and DAPM widgets are not being populated correctly. The reason the card controls and DAPM widgets are not being populated is because Rey does not have an on-board RT5658 codec and so the codec link 'rt565x-playback' does not exist. The codec link for using the supermodule on Rey is 'rt565x-codec-sysclk-bclk1' and so update the Tegra machine driver to populated the card controls and DAPM widgets if this codec link is present. Bug 200417361 Change-Id: I558146d8252da583e1ec86544a61a50fb567d77d Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/1735932 Reviewed-by: svc-mobile-coverity Reviewed-by: Mohan Kumar D Reviewed-by: Sameer Pujar GVS: Gerrit_Virtual_Submit Reviewed-by: Bibek Basu Reviewed-by: mobile promotions Tested-by: mobile promotions --- .../tegra-alt/machine_drivers/tegra_machine_driver_mobile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/tegra-alt/machine_drivers/tegra_machine_driver_mobile.c b/sound/soc/tegra-alt/machine_drivers/tegra_machine_driver_mobile.c index 971b58a4..a0d3acaa 100644 --- a/sound/soc/tegra-alt/machine_drivers/tegra_machine_driver_mobile.c +++ b/sound/soc/tegra-alt/machine_drivers/tegra_machine_driver_mobile.c @@ -1137,7 +1137,9 @@ static void dai_link_setup(struct platform_device *pdev) for (i = 0; i < machine->num_codec_links; i++) { if (tegra_machine_codec_links[i].name) { if (strstr(tegra_machine_codec_links[i].name, - "rt565x-playback")) { + "rt565x-playback") || + strstr(tegra_machine_codec_links[i].name, + "rt565x-codec-sysclk-bclk1")) { codec_dai_name = tegra_machine_codec_links[i].codec_dai_name; if (!strcmp("dit-hifi", codec_dai_name)) {