diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2014-03-03 23:51:21 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-05 01:07:53 -0500 |
commit | ba9c949f797aa3af56303445812a452144c61c35 (patch) | |
tree | 014ec31ed244192b98f1b2b2f18f291d60ddec90 /include/sound/rcar_snd.h | |
parent | 9524be0e761edd9f3c020344677d914ed249d010 (diff) |
ASoC: rsnd: rename scu to src
R-Car sound has SCU unit which has SRC/CTU/MIX/DVC,
and current rsnd driver has scu.c and scu module.
Current scu.c has SRC support only.
My first concept was control these feature on scu.c
but, it become difficult and un-understandable now.
This patch rename scu to src
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/sound/rcar_snd.h')
-rw-r--r-- | include/sound/rcar_snd.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/include/sound/rcar_snd.h b/include/sound/rcar_snd.h index 1d8c68323f49..34a3c02a4576 100644 --- a/include/sound/rcar_snd.h +++ b/include/sound/rcar_snd.h | |||
@@ -55,14 +55,18 @@ struct rsnd_ssi_platform_info { | |||
55 | */ | 55 | */ |
56 | #define RSND_SCU_USE_HPBIF (1 << 31) /* it needs RSND_SSI_DEPENDENT */ | 56 | #define RSND_SCU_USE_HPBIF (1 << 31) /* it needs RSND_SSI_DEPENDENT */ |
57 | 57 | ||
58 | #define RSND_SCU(rate, _dma_id) \ | 58 | #define RSND_SRC(rate, _dma_id) \ |
59 | { .flags = RSND_SCU_USE_HPBIF, .convert_rate = rate, .dma_id = _dma_id, } | 59 | { .flags = RSND_SCU_USE_HPBIF, .convert_rate = rate, .dma_id = _dma_id, } |
60 | #define RSND_SCU_SET(rate, _dma_id) \ | 60 | #define RSND_SRC_SET(rate, _dma_id) \ |
61 | { .flags = RSND_SCU_USE_HPBIF, .convert_rate = rate, .dma_id = _dma_id, } | 61 | { .flags = RSND_SCU_USE_HPBIF, .convert_rate = rate, .dma_id = _dma_id, } |
62 | #define RSND_SCU_UNUSED \ | 62 | #define RSND_SRC_UNUSED \ |
63 | { .flags = 0, .convert_rate = 0, .dma_id = 0, } | 63 | { .flags = 0, .convert_rate = 0, .dma_id = 0, } |
64 | 64 | ||
65 | struct rsnd_scu_platform_info { | 65 | #define rsnd_scu_platform_info rsnd_src_platform_info |
66 | #define src_info scu_info | ||
67 | #define src_info_nr scu_info_nr | ||
68 | |||
69 | struct rsnd_src_platform_info { | ||
66 | u32 flags; | 70 | u32 flags; |
67 | u32 convert_rate; /* sampling rate convert */ | 71 | u32 convert_rate; /* sampling rate convert */ |
68 | int dma_id; /* for Gen2 SCU */ | 72 | int dma_id; /* for Gen2 SCU */ |
@@ -70,7 +74,7 @@ struct rsnd_scu_platform_info { | |||
70 | 74 | ||
71 | struct rsnd_dai_path_info { | 75 | struct rsnd_dai_path_info { |
72 | struct rsnd_ssi_platform_info *ssi; | 76 | struct rsnd_ssi_platform_info *ssi; |
73 | struct rsnd_scu_platform_info *scu; | 77 | struct rsnd_src_platform_info *src; |
74 | }; | 78 | }; |
75 | 79 | ||
76 | struct rsnd_dai_platform_info { | 80 | struct rsnd_dai_platform_info { |
@@ -93,8 +97,8 @@ struct rcar_snd_info { | |||
93 | u32 flags; | 97 | u32 flags; |
94 | struct rsnd_ssi_platform_info *ssi_info; | 98 | struct rsnd_ssi_platform_info *ssi_info; |
95 | int ssi_info_nr; | 99 | int ssi_info_nr; |
96 | struct rsnd_scu_platform_info *scu_info; | 100 | struct rsnd_src_platform_info *src_info; |
97 | int scu_info_nr; | 101 | int src_info_nr; |
98 | struct rsnd_dai_platform_info *dai_info; | 102 | struct rsnd_dai_platform_info *dai_info; |
99 | int dai_info_nr; | 103 | int dai_info_nr; |
100 | int (*start)(int id); | 104 | int (*start)(int id); |