summaryrefslogtreecommitdiffstats
path: root/sound/soc/davinci/davinci-mcasp.h
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2014-04-01 15:55:09 +0300
committerMark Brown <broonie@linaro.org>2014-04-14 17:24:11 +0100
commit0bf0e8aeceaf4b12524559fce9c6b91a90b63381 (patch)
tree67ffe21872adab05c8b3e999906d5c649caccce8 /sound/soc/davinci/davinci-mcasp.h
parentf5b02b4a2cb7eaa223ddaba8e4338b31bcdaf369 (diff)
downloadop-kernel-dev-0bf0e8aeceaf4b12524559fce9c6b91a90b63381.zip
op-kernel-dev-0bf0e8aeceaf4b12524559fce9c6b91a90b63381.tar.gz
ASoC: davinci-mcasp: Simplify and clean up the AFIFO configuration code
We can have more linear code flow by using variables in mcasp_common_hw_param() related to the AFIFO configuration. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/davinci/davinci-mcasp.h')
-rw-r--r--sound/soc/davinci/davinci-mcasp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.h b/sound/soc/davinci/davinci-mcasp.h
index 8fed757..98fbc45 100644
--- a/sound/soc/davinci/davinci-mcasp.h
+++ b/sound/soc/davinci/davinci-mcasp.h
@@ -283,6 +283,7 @@
*/
#define FIFO_ENABLE BIT(16)
#define NUMEVT_MASK (0xFF << 8)
+#define NUMEVT(x) (((x) & 0xFF) << 8)
#define NUMDMA_MASK (0xFF)
#endif /* DAVINCI_MCASP_H */
OpenPOWER on IntegriCloud