diff options
author | Misael Lopez Cruz <misael.lopez@ti.com> | 2015-06-08 16:03:47 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-06-08 18:51:26 +0100 |
commit | 19db62ea0558d71844847cdf4c65a655df2ab69f (patch) | |
tree | 901b33c14404a775c414e4ee905063c4396afec1 /sound/soc/davinci/davinci-mcasp.c | |
parent | 518f6bab13842a5f25bd8f89b1cae32aa8adf91f (diff) | |
download | op-kernel-dev-19db62ea0558d71844847cdf4c65a655df2ab69f.zip op-kernel-dev-19db62ea0558d71844847cdf4c65a655df2ab69f.tar.gz |
ASoC: davinci-mcasp: Logic low for inactive output slots
The default state when serializers are in inactive slots is Hi-Z.
In some cases, there are no additional components driving the data
lines to a safe state so they might have noise.
While in inactive slots, the McASP AXR pins configured as outputs
can be driven low through the serializer pin drive mode setting
(DISMOD) to prevent such noise.
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/davinci/davinci-mcasp.c')
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index 56da8ce..68356f2c 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c @@ -686,6 +686,8 @@ static int mcasp_common_hw_param(struct davinci_mcasp *mcasp, int stream, if (mcasp->serial_dir[i] == TX_MODE && tx_ser < max_active_serializers) { mcasp_set_bits(mcasp, DAVINCI_MCASP_PDIR_REG, AXR(i)); + mcasp_mod_bits(mcasp, DAVINCI_MCASP_XRSRCTL_REG(i), + DISMOD_LOW, DISMOD_MASK); tx_ser++; } else if (mcasp->serial_dir[i] == RX_MODE && rx_ser < max_active_serializers) { |