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:

committed by
Mark Brown

parent
f5b02b4a2c
commit
0bf0e8aece
@@ -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 */
|
||||
|
Reference in New Issue
Block a user