diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2018-11-16 14:41:41 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-11-28 13:41:31 +0100 |
commit | bc184549853133303cf08d1f19477f9c87ef39fb (patch) | |
tree | 878e828a16741b9b0f71067fb8c9a8c6e11f5853 /sound/soc/davinci/davinci-mcasp.h | |
parent | ASoC: davinci-mcasp: Document dismod optional property (diff) | |
download | linux-bc184549853133303cf08d1f19477f9c87ef39fb.tar.xz linux-bc184549853133303cf08d1f19477f9c87ef39fb.zip |
ASoC: davinci-mcasp: Implement configurable dismod handling
If the dismod is specified in the DT node, use the specified custom value
to configure the drive on state of the inactive TX slots.
If the dismod is not present or booted in legacy mode, the dismod is set
to low as it was the original behavior.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.h b/sound/soc/davinci/davinci-mcasp.h index acb024ab6a9d..5e4060d8fe56 100644 --- a/sound/soc/davinci/davinci-mcasp.h +++ b/sound/soc/davinci/davinci-mcasp.h @@ -209,6 +209,7 @@ #define DISMOD_3STATE (0x0) #define DISMOD_LOW (0x2 << 2) #define DISMOD_HIGH (0x3 << 2) +#define DISMOD_VAL(x) ((x) << 2) #define DISMOD_MASK DISMOD_HIGH #define TXSTATE BIT(4) #define RXSTATE BIT(5) |