aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2016-08-04 05:30:28 -0400
committerMark Brown <broonie@kernel.org>2016-08-08 06:55:20 -0400
commitea37bd4df55f640b5146ac08cd377242d3042e2e (patch)
tree744d6e5ca4c4bf8698c41df511803e22bad0591b
parent8999390e40abe8099bd18299eaed96469f8aa5e1 (diff)
ASoC: samsung: Drop usage of struct s3c_dma_params from s3c2412-i2s.c
struct s3c_dma_params already includes struct snd_dmaengine_dai_dma_data, there is no need for such an indirection so switch to using struct snd_dmaengine_dai_dma_data instead of struct s3c_dma_params. This also allows us to use snd_soc_dai_init_dma_data() function instead of the platform specific samsung_asoc_init_dma_data helper. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/samsung/s3c-i2s-v2.c2
-rw-r--r--sound/soc/samsung/s3c-i2s-v2.h4
-rw-r--r--sound/soc/samsung/s3c2412-i2s.c24
3 files changed, 15 insertions, 15 deletions
diff --git a/sound/soc/samsung/s3c-i2s-v2.c b/sound/soc/samsung/s3c-i2s-v2.c
index bf8ae79b0fd2..74a7f4b7fa3b 100644
--- a/sound/soc/samsung/s3c-i2s-v2.c
+++ b/sound/soc/samsung/s3c-i2s-v2.c
@@ -302,7 +302,7 @@ static int s3c_i2sv2_hw_params(struct snd_pcm_substream *substream,
302 struct snd_soc_dai *dai) 302 struct snd_soc_dai *dai)
303{ 303{
304 struct s3c_i2sv2_info *i2s = to_info(dai); 304 struct s3c_i2sv2_info *i2s = to_info(dai);
305 struct s3c_dma_params *dma_data; 305 struct snd_dmaengine_dai_dma_data *dma_data;
306 u32 iismod; 306 u32 iismod;
307 307
308 pr_debug("Entered %s\n", __func__); 308 pr_debug("Entered %s\n", __func__);
diff --git a/sound/soc/samsung/s3c-i2s-v2.h b/sound/soc/samsung/s3c-i2s-v2.h
index d0684145ed1f..182d80564e37 100644
--- a/sound/soc/samsung/s3c-i2s-v2.h
+++ b/sound/soc/samsung/s3c-i2s-v2.h
@@ -60,8 +60,8 @@ struct s3c_i2sv2_info {
60 60
61 unsigned char master; 61 unsigned char master;
62 62
63 struct s3c_dma_params *dma_playback; 63 struct snd_dmaengine_dai_dma_data *dma_playback;
64 struct s3c_dma_params *dma_capture; 64 struct snd_dmaengine_dai_dma_data *dma_capture;
65 65
66 u32 suspend_iismod; 66 u32 suspend_iismod;
67 u32 suspend_iiscon; 67 u32 suspend_iiscon;
diff --git a/sound/soc/samsung/s3c2412-i2s.c b/sound/soc/samsung/s3c2412-i2s.c
index d45dffb297d8..3e89fbc0c51d 100644
--- a/sound/soc/samsung/s3c2412-i2s.c
+++ b/sound/soc/samsung/s3c2412-i2s.c
@@ -34,14 +34,14 @@
34 34
35#include <linux/platform_data/asoc-s3c.h> 35#include <linux/platform_data/asoc-s3c.h>
36 36
37static struct s3c_dma_params s3c2412_i2s_pcm_stereo_out = { 37static struct snd_dmaengine_dai_dma_data s3c2412_i2s_pcm_stereo_out = {
38 .ch_name = "tx", 38 .chan_name = "tx",
39 .dma_size = 4, 39 .addr_width = 4,
40}; 40};
41 41
42static struct s3c_dma_params s3c2412_i2s_pcm_stereo_in = { 42static struct snd_dmaengine_dai_dma_data s3c2412_i2s_pcm_stereo_in = {
43 .ch_name = "rx", 43 .chan_name = "rx",
44 .dma_size = 4, 44 .addr_width = 4,
45}; 45};
46 46
47static struct s3c_i2sv2_info s3c2412_i2s; 47static struct s3c_i2sv2_info s3c2412_i2s;
@@ -52,8 +52,8 @@ static int s3c2412_i2s_probe(struct snd_soc_dai *dai)
52 52
53 pr_debug("Entered %s\n", __func__); 53 pr_debug("Entered %s\n", __func__);
54 54
55 samsung_asoc_init_dma_data(dai, &s3c2412_i2s_pcm_stereo_out, 55 snd_soc_dai_init_dma_data(dai, &s3c2412_i2s_pcm_stereo_out,
56 &s3c2412_i2s_pcm_stereo_in); 56 &s3c2412_i2s_pcm_stereo_in);
57 57
58 ret = s3c_i2sv2_probe(dai, &s3c2412_i2s, S3C2410_PA_IIS); 58 ret = s3c_i2sv2_probe(dai, &s3c2412_i2s, S3C2410_PA_IIS);
59 if (ret) 59 if (ret)
@@ -163,10 +163,10 @@ static int s3c2412_iis_dev_probe(struct platform_device *pdev)
163 if (IS_ERR(s3c2412_i2s.regs)) 163 if (IS_ERR(s3c2412_i2s.regs))
164 return PTR_ERR(s3c2412_i2s.regs); 164 return PTR_ERR(s3c2412_i2s.regs);
165 165
166 s3c2412_i2s_pcm_stereo_out.dma_addr = res->start + S3C2412_IISTXD; 166 s3c2412_i2s_pcm_stereo_out.addr = res->start + S3C2412_IISTXD;
167 s3c2412_i2s_pcm_stereo_out.slave = pdata->dma_playback; 167 s3c2412_i2s_pcm_stereo_out.filter_data = pdata->dma_playback;
168 s3c2412_i2s_pcm_stereo_in.dma_addr = res->start + S3C2412_IISRXD; 168 s3c2412_i2s_pcm_stereo_in.addr = res->start + S3C2412_IISRXD;
169 s3c2412_i2s_pcm_stereo_in.slave = pdata->dma_capture; 169 s3c2412_i2s_pcm_stereo_in.filter_data = pdata->dma_capture;
170 170
171 ret = s3c_i2sv2_register_component(&pdev->dev, -1, 171 ret = s3c_i2sv2_register_component(&pdev->dev, -1,
172 &s3c2412_i2s_component, 172 &s3c2412_i2s_component,