diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2014-04-01 16:55:09 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-14 20:24:11 +0400 |
commit | 0bf0e8aeceaf4b12524559fce9c6b91a90b63381 (patch) | |
tree | 67ffe21872adab05c8b3e999906d5c649caccce8 /sound/soc/davinci/davinci-mcasp.h | |
parent | f5b02b4a2cb7eaa223ddaba8e4338b31bcdaf369 (diff) | |
download | linux-0bf0e8aeceaf4b12524559fce9c6b91a90b63381.tar.xz |
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.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 8fed757d6087..98fbc451892a 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 */ |