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>
This commit is contained in:
Peter Ujfalusi
2014-04-01 15:55:09 +03:00
committed by Mark Brown
parent f5b02b4a2c
commit 0bf0e8aece
2 changed files with 25 additions and 24 deletions

View File

@@ -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 */