diff options
author | Arnd Bergmann <arnd@arndb.de> | 2014-07-11 09:45:08 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-14 14:53:43 -0400 |
commit | dd2380e31cca0099aa49846e16103936aa9d818a (patch) | |
tree | a6c6495e1d6392285e3f8b799297a31e3fcb186f /sound/soc | |
parent | 8f501c7b4414d46a3ea6650f962b0fe9a69d9787 (diff) |
ASoC: samsung: remove unused DMA data
The s3c_dma_client structures and the 'ch' and 'ops' members in
s3c_dma_params were only used by the legacy DMA driver and serve
no function any more. This removes any reference to them.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/samsung/ac97.c | 15 | ||||
-rw-r--r-- | sound/soc/samsung/dma.h | 7 | ||||
-rw-r--r-- | sound/soc/samsung/i2s.c | 6 | ||||
-rw-r--r-- | sound/soc/samsung/pcm.c | 12 | ||||
-rw-r--r-- | sound/soc/samsung/s3c-i2s-v2.c | 2 | ||||
-rw-r--r-- | sound/soc/samsung/s3c2412-i2s.c | 4 | ||||
-rw-r--r-- | sound/soc/samsung/s3c24xx-i2s.c | 4 | ||||
-rw-r--r-- | sound/soc/samsung/spdif.c | 5 |
8 files changed, 0 insertions, 55 deletions
diff --git a/sound/soc/samsung/ac97.c b/sound/soc/samsung/ac97.c index 2aa24d052a4a..e1615113fd84 100644 --- a/sound/soc/samsung/ac97.c +++ b/sound/soc/samsung/ac97.c | |||
@@ -38,30 +38,15 @@ struct s3c_ac97_info { | |||
38 | }; | 38 | }; |
39 | static struct s3c_ac97_info s3c_ac97; | 39 | static struct s3c_ac97_info s3c_ac97; |
40 | 40 | ||
41 | static struct s3c_dma_client s3c_dma_client_out = { | ||
42 | .name = "AC97 PCMOut" | ||
43 | }; | ||
44 | |||
45 | static struct s3c_dma_client s3c_dma_client_in = { | ||
46 | .name = "AC97 PCMIn" | ||
47 | }; | ||
48 | |||
49 | static struct s3c_dma_client s3c_dma_client_micin = { | ||
50 | .name = "AC97 MicIn" | ||
51 | }; | ||
52 | |||
53 | static struct s3c_dma_params s3c_ac97_pcm_out = { | 41 | static struct s3c_dma_params s3c_ac97_pcm_out = { |
54 | .client = &s3c_dma_client_out, | ||
55 | .dma_size = 4, | 42 | .dma_size = 4, |
56 | }; | 43 | }; |
57 | 44 | ||
58 | static struct s3c_dma_params s3c_ac97_pcm_in = { | 45 | static struct s3c_dma_params s3c_ac97_pcm_in = { |
59 | .client = &s3c_dma_client_in, | ||
60 | .dma_size = 4, | 46 | .dma_size = 4, |
61 | }; | 47 | }; |
62 | 48 | ||
63 | static struct s3c_dma_params s3c_ac97_mic_in = { | 49 | static struct s3c_dma_params s3c_ac97_mic_in = { |
64 | .client = &s3c_dma_client_micin, | ||
65 | .dma_size = 4, | 50 | .dma_size = 4, |
66 | }; | 51 | }; |
67 | 52 | ||
diff --git a/sound/soc/samsung/dma.h b/sound/soc/samsung/dma.h index 070ab0f09609..0e85dcfec023 100644 --- a/sound/soc/samsung/dma.h +++ b/sound/soc/samsung/dma.h | |||
@@ -14,17 +14,10 @@ | |||
14 | 14 | ||
15 | #include <sound/dmaengine_pcm.h> | 15 | #include <sound/dmaengine_pcm.h> |
16 | 16 | ||
17 | struct s3c_dma_client { | ||
18 | char *name; | ||
19 | }; | ||
20 | |||
21 | struct s3c_dma_params { | 17 | struct s3c_dma_params { |
22 | struct s3c_dma_client *client; /* stream identifier */ | ||
23 | int channel; /* Channel ID */ | 18 | int channel; /* Channel ID */ |
24 | dma_addr_t dma_addr; | 19 | dma_addr_t dma_addr; |
25 | int dma_size; /* Size of the DMA transfer */ | 20 | int dma_size; /* Size of the DMA transfer */ |
26 | unsigned ch; | ||
27 | struct samsung_dma_ops *ops; | ||
28 | char *ch_name; | 21 | char *ch_name; |
29 | struct snd_dmaengine_dai_dma_data dma_data; | 22 | struct snd_dmaengine_dai_dma_data dma_data; |
30 | }; | 23 | }; |
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index 2ac76fa3e742..6b9de7429884 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c | |||
@@ -1216,11 +1216,7 @@ static int samsung_i2s_probe(struct platform_device *pdev) | |||
1216 | 1216 | ||
1217 | pri_dai->dma_playback.dma_addr = regs_base + I2STXD; | 1217 | pri_dai->dma_playback.dma_addr = regs_base + I2STXD; |
1218 | pri_dai->dma_capture.dma_addr = regs_base + I2SRXD; | 1218 | pri_dai->dma_capture.dma_addr = regs_base + I2SRXD; |
1219 | pri_dai->dma_playback.client = | ||
1220 | (struct s3c_dma_client *)&pri_dai->dma_playback; | ||
1221 | pri_dai->dma_playback.ch_name = "tx"; | 1219 | pri_dai->dma_playback.ch_name = "tx"; |
1222 | pri_dai->dma_capture.client = | ||
1223 | (struct s3c_dma_client *)&pri_dai->dma_capture; | ||
1224 | pri_dai->dma_capture.ch_name = "rx"; | 1220 | pri_dai->dma_capture.ch_name = "rx"; |
1225 | pri_dai->dma_playback.dma_size = 4; | 1221 | pri_dai->dma_playback.dma_size = 4; |
1226 | pri_dai->dma_capture.dma_size = 4; | 1222 | pri_dai->dma_capture.dma_size = 4; |
@@ -1238,8 +1234,6 @@ static int samsung_i2s_probe(struct platform_device *pdev) | |||
1238 | goto err; | 1234 | goto err; |
1239 | } | 1235 | } |
1240 | sec_dai->dma_playback.dma_addr = regs_base + I2STXDS; | 1236 | sec_dai->dma_playback.dma_addr = regs_base + I2STXDS; |
1241 | sec_dai->dma_playback.client = | ||
1242 | (struct s3c_dma_client *)&sec_dai->dma_playback; | ||
1243 | sec_dai->dma_playback.ch_name = "tx-sec"; | 1237 | sec_dai->dma_playback.ch_name = "tx-sec"; |
1244 | 1238 | ||
1245 | if (!np) { | 1239 | if (!np) { |
diff --git a/sound/soc/samsung/pcm.c b/sound/soc/samsung/pcm.c index 4c5f97fe45c8..bac034b15a27 100644 --- a/sound/soc/samsung/pcm.c +++ b/sound/soc/samsung/pcm.c | |||
@@ -131,32 +131,20 @@ struct s3c_pcm_info { | |||
131 | struct s3c_dma_params *dma_capture; | 131 | struct s3c_dma_params *dma_capture; |
132 | }; | 132 | }; |
133 | 133 | ||
134 | static struct s3c_dma_client s3c_pcm_dma_client_out = { | ||
135 | .name = "PCM Stereo out" | ||
136 | }; | ||
137 | |||
138 | static struct s3c_dma_client s3c_pcm_dma_client_in = { | ||
139 | .name = "PCM Stereo in" | ||
140 | }; | ||
141 | |||
142 | static struct s3c_dma_params s3c_pcm_stereo_out[] = { | 134 | static struct s3c_dma_params s3c_pcm_stereo_out[] = { |
143 | [0] = { | 135 | [0] = { |
144 | .client = &s3c_pcm_dma_client_out, | ||
145 | .dma_size = 4, | 136 | .dma_size = 4, |
146 | }, | 137 | }, |
147 | [1] = { | 138 | [1] = { |
148 | .client = &s3c_pcm_dma_client_out, | ||
149 | .dma_size = 4, | 139 | .dma_size = 4, |
150 | }, | 140 | }, |
151 | }; | 141 | }; |
152 | 142 | ||
153 | static struct s3c_dma_params s3c_pcm_stereo_in[] = { | 143 | static struct s3c_dma_params s3c_pcm_stereo_in[] = { |
154 | [0] = { | 144 | [0] = { |
155 | .client = &s3c_pcm_dma_client_in, | ||
156 | .dma_size = 4, | 145 | .dma_size = 4, |
157 | }, | 146 | }, |
158 | [1] = { | 147 | [1] = { |
159 | .client = &s3c_pcm_dma_client_in, | ||
160 | .dma_size = 4, | 148 | .dma_size = 4, |
161 | }, | 149 | }, |
162 | }; | 150 | }; |
diff --git a/sound/soc/samsung/s3c-i2s-v2.c b/sound/soc/samsung/s3c-i2s-v2.c index de6c321b8b68..df65c5b494b1 100644 --- a/sound/soc/samsung/s3c-i2s-v2.c +++ b/sound/soc/samsung/s3c-i2s-v2.c | |||
@@ -22,8 +22,6 @@ | |||
22 | #include <sound/soc.h> | 22 | #include <sound/soc.h> |
23 | #include <sound/pcm_params.h> | 23 | #include <sound/pcm_params.h> |
24 | 24 | ||
25 | #include <mach/dma.h> | ||
26 | |||
27 | #include "regs-i2s-v2.h" | 25 | #include "regs-i2s-v2.h" |
28 | #include "s3c-i2s-v2.h" | 26 | #include "s3c-i2s-v2.h" |
29 | #include "dma.h" | 27 | #include "dma.h" |
diff --git a/sound/soc/samsung/s3c2412-i2s.c b/sound/soc/samsung/s3c2412-i2s.c index d6bc6dc0aafb..9180310e862a 100644 --- a/sound/soc/samsung/s3c2412-i2s.c +++ b/sound/soc/samsung/s3c2412-i2s.c | |||
@@ -34,16 +34,12 @@ | |||
34 | #include "s3c2412-i2s.h" | 34 | #include "s3c2412-i2s.h" |
35 | 35 | ||
36 | static struct s3c_dma_params s3c2412_i2s_pcm_stereo_out = { | 36 | static struct s3c_dma_params s3c2412_i2s_pcm_stereo_out = { |
37 | .client = | ||
38 | (struct s3c_dma_client *)&s3c2412_i2s_pcm_stereo_out, | ||
39 | .channel = DMACH_I2S_OUT, | 37 | .channel = DMACH_I2S_OUT, |
40 | .ch_name = "tx", | 38 | .ch_name = "tx", |
41 | .dma_size = 4, | 39 | .dma_size = 4, |
42 | }; | 40 | }; |
43 | 41 | ||
44 | static struct s3c_dma_params s3c2412_i2s_pcm_stereo_in = { | 42 | static struct s3c_dma_params s3c2412_i2s_pcm_stereo_in = { |
45 | .client = | ||
46 | (struct s3c_dma_client *)&s3c2412_i2s_pcm_stereo_in, | ||
47 | .channel = DMACH_I2S_IN, | 43 | .channel = DMACH_I2S_IN, |
48 | .ch_name = "rx", | 44 | .ch_name = "rx", |
49 | .dma_size = 4, | 45 | .dma_size = 4, |
diff --git a/sound/soc/samsung/s3c24xx-i2s.c b/sound/soc/samsung/s3c24xx-i2s.c index e8b98528e356..e87d9a2053b8 100644 --- a/sound/soc/samsung/s3c24xx-i2s.c +++ b/sound/soc/samsung/s3c24xx-i2s.c | |||
@@ -32,16 +32,12 @@ | |||
32 | #include "s3c24xx-i2s.h" | 32 | #include "s3c24xx-i2s.h" |
33 | 33 | ||
34 | static struct s3c_dma_params s3c24xx_i2s_pcm_stereo_out = { | 34 | static struct s3c_dma_params s3c24xx_i2s_pcm_stereo_out = { |
35 | .client = | ||
36 | (struct s3c_dma_client *)&s3c24xx_i2s_pcm_stereo_out, | ||
37 | .channel = DMACH_I2S_OUT, | 35 | .channel = DMACH_I2S_OUT, |
38 | .ch_name = "tx", | 36 | .ch_name = "tx", |
39 | .dma_size = 2, | 37 | .dma_size = 2, |
40 | }; | 38 | }; |
41 | 39 | ||
42 | static struct s3c_dma_params s3c24xx_i2s_pcm_stereo_in = { | 40 | static struct s3c_dma_params s3c24xx_i2s_pcm_stereo_in = { |
43 | .client = | ||
44 | (struct s3c_dma_client *)&s3c24xx_i2s_pcm_stereo_in, | ||
45 | .channel = DMACH_I2S_IN, | 41 | .channel = DMACH_I2S_IN, |
46 | .ch_name = "rx", | 42 | .ch_name = "rx", |
47 | .dma_size = 2, | 43 | .dma_size = 2, |
diff --git a/sound/soc/samsung/spdif.c b/sound/soc/samsung/spdif.c index d9ffc48fce5e..d7d2e208f486 100644 --- a/sound/soc/samsung/spdif.c +++ b/sound/soc/samsung/spdif.c | |||
@@ -93,10 +93,6 @@ struct samsung_spdif_info { | |||
93 | struct s3c_dma_params *dma_playback; | 93 | struct s3c_dma_params *dma_playback; |
94 | }; | 94 | }; |
95 | 95 | ||
96 | static struct s3c_dma_client spdif_dma_client_out = { | ||
97 | .name = "S/PDIF Stereo out", | ||
98 | }; | ||
99 | |||
100 | static struct s3c_dma_params spdif_stereo_out; | 96 | static struct s3c_dma_params spdif_stereo_out; |
101 | static struct samsung_spdif_info spdif_info; | 97 | static struct samsung_spdif_info spdif_info; |
102 | 98 | ||
@@ -435,7 +431,6 @@ static int spdif_probe(struct platform_device *pdev) | |||
435 | } | 431 | } |
436 | 432 | ||
437 | spdif_stereo_out.dma_size = 2; | 433 | spdif_stereo_out.dma_size = 2; |
438 | spdif_stereo_out.client = &spdif_dma_client_out; | ||
439 | spdif_stereo_out.dma_addr = mem_res->start + DATA_OUTBUF; | 434 | spdif_stereo_out.dma_addr = mem_res->start + DATA_OUTBUF; |
440 | spdif_stereo_out.channel = dma_res->start; | 435 | spdif_stereo_out.channel = dma_res->start; |
441 | 436 | ||