diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2014-01-23 21:42:00 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-03 07:41:38 -0500 |
commit | 629509c5bc478c0343d94c8c70812396f44447fb (patch) | |
tree | cdeab0938f68fe265bdd54b219c369213988f0b4 /include/sound | |
parent | eb854f6dff24a59378acc8d8eda57a3543a25acc (diff) |
ASoC: rsnd: add Gen2 SRC and DMAEngine support
Renesas sound Gen2 has SRC (= Sampling Rate Converter)
which needs 2 DMAC.
The data path image when you use SRC on Gen2 is
[mem] -> Audio-DMAC -> SRC -> Audio-DMAC-peri-peri -> SSIU -> SSI
This patch support SRC and DMAEnine.
It is tested on R-Car H2 Lager board
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/rcar_snd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sound/rcar_snd.h b/include/sound/rcar_snd.h index 1d19bfc2486d..2be05aea54f9 100644 --- a/include/sound/rcar_snd.h +++ b/include/sound/rcar_snd.h | |||
@@ -56,9 +56,15 @@ struct rsnd_ssi_platform_info { | |||
56 | */ | 56 | */ |
57 | #define RSND_SCU_USE_HPBIF (1 << 31) /* it needs RSND_SSI_DEPENDENT */ | 57 | #define RSND_SCU_USE_HPBIF (1 << 31) /* it needs RSND_SSI_DEPENDENT */ |
58 | 58 | ||
59 | #define RSND_SCU_SET(rate, _dma_id) \ | ||
60 | { .flags = RSND_SCU_USE_HPBIF, .convert_rate = rate, .dma_id = _dma_id, } | ||
61 | #define RSND_SCU_UNUSED \ | ||
62 | { .flags = 0, .convert_rate = 0, .dma_id = 0, } | ||
63 | |||
59 | struct rsnd_scu_platform_info { | 64 | struct rsnd_scu_platform_info { |
60 | u32 flags; | 65 | u32 flags; |
61 | u32 convert_rate; /* sampling rate convert */ | 66 | u32 convert_rate; /* sampling rate convert */ |
67 | int dma_id; /* for Gen2 SCU */ | ||
62 | }; | 68 | }; |
63 | 69 | ||
64 | /* | 70 | /* |