aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Thomson <Adam.Thomson.Opensource@diasemi.com>2016-12-16 06:05:02 -0500
committerMark Brown <broonie@kernel.org>2016-12-16 07:29:09 -0500
commitac29a8f41740186aee601de99c729530e37ca77c (patch)
tree6e68d9952357541cd47a6057e143c1bca1d5bf38
parenta5de5b74a50113564a1e0850e2da96c37c35e55d (diff)
ASoC: da7218: Set DAI output pin high impedance when not in use
For TDM mode, the I2S data out line can be shared between mutliple codecs. In this scenario, only the active codec should be using the line, and all others should be high impedance. However, currently in the driver this configuration isn't set when capture is inactive, and the line remains driven. This patch updates the AIF_OUT widget to set the DAI output pin of the device as high impedance when not in use. Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/da7218.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/da7218.c b/sound/soc/codecs/da7218.c
index c69e97654fc6..d256ebf9e309 100644
--- a/sound/soc/codecs/da7218.c
+++ b/sound/soc/codecs/da7218.c
@@ -1634,7 +1634,8 @@ static const struct snd_soc_dapm_widget da7218_dapm_widgets[] = {
1634 SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD), 1634 SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD),
1635 1635
1636 /* DAI */ 1636 /* DAI */
1637 SND_SOC_DAPM_AIF_OUT("DAIOUT", "Capture", 0, SND_SOC_NOPM, 0, 0), 1637 SND_SOC_DAPM_AIF_OUT("DAIOUT", "Capture", 0, DA7218_DAI_TDM_CTRL,
1638 DA7218_DAI_OE_SHIFT, DA7218_NO_INVERT),
1638 SND_SOC_DAPM_AIF_IN("DAIIN", "Playback", 0, SND_SOC_NOPM, 0, 0), 1639 SND_SOC_DAPM_AIF_IN("DAIIN", "Playback", 0, SND_SOC_NOPM, 0, 0),
1639 1640
1640 /* Output Mixers */ 1641 /* Output Mixers */