From 088b16dac2b3409801ff37c6f5d0be08c9f3e5b7 Mon Sep 17 00:00:00 2001 From: Rahul Mittal Date: Thu, 11 Oct 2012 12:22:23 +0530 Subject: asoc: tegra: cs42l73: slave mode support I2S changed to slave mode Add Schmidt trigger enable for DAP2 Add devid and conid for sync clock lookup Configured DAP direction to INPUT Audience configured for PORTA -> PORTC passthrough Bug 1062554 Change-Id: I9e7cc40e4ce4e165685d9081242f181d5bd5d6d8 Signed-off-by: Rahul Mittal Reviewed-on: http://git-master/r/141123 Reviewed-by: Varun Colbert Tested-by: Varun Colbert (cherry picked from commit f329532f3b76a276c2f1219ff6422510b5a8ed9d) Reviewed-on: http://git-master/r/147928 Reviewed-by: Simone Willett Tested-by: Simone Willett --- sound/soc/tegra/tegra_cs42l73.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sound') diff --git a/sound/soc/tegra/tegra_cs42l73.c b/sound/soc/tegra/tegra_cs42l73.c index cfcf88a96a42..83153ff386f3 100644 --- a/sound/soc/tegra/tegra_cs42l73.c +++ b/sound/soc/tegra/tegra_cs42l73.c @@ -30,6 +30,7 @@ #include #include #include +#include #ifdef CONFIG_SWITCH #include #endif @@ -128,6 +129,10 @@ static int tegra_cs42l73_hw_params(struct snd_pcm_substream *substream, return -EINVAL; } + a2220_port_path_change(pdata->i2s_param[HIFI_CODEC].is_i2s_master ? + A100_msg_PortC_A_PASS : + A100_msg_PortA_C_PASS); + err = tegra_asoc_utils_set_rate(&machine->util_data, srate, mclk); if (err < 0) { if (!(machine->util_data.set_mclk % mclk)) { -- cgit v1.2.3