diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2016-08-04 05:30:27 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-08-08 06:55:20 -0400 |
commit | 8999390e40abe8099bd18299eaed96469f8aa5e1 (patch) | |
tree | f8e0dab890c8283832ea9ff770a3088d7f8b4143 | |
parent | 69e7a69a2225e20503b2623fe2dcf78442ab5593 (diff) |
ASoC: samsung: Drop usage of struct s3c_dma_params from s3c24xx-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/s3c24xx-i2s.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sound/soc/samsung/s3c24xx-i2s.c b/sound/soc/samsung/s3c24xx-i2s.c index 3e76f2a75a24..c78a936a3099 100644 --- a/sound/soc/samsung/s3c24xx-i2s.c +++ b/sound/soc/samsung/s3c24xx-i2s.c | |||
@@ -32,14 +32,14 @@ | |||
32 | 32 | ||
33 | #include <linux/platform_data/asoc-s3c.h> | 33 | #include <linux/platform_data/asoc-s3c.h> |
34 | 34 | ||
35 | static struct s3c_dma_params s3c24xx_i2s_pcm_stereo_out = { | 35 | static struct snd_dmaengine_dai_dma_data s3c24xx_i2s_pcm_stereo_out = { |
36 | .ch_name = "tx", | 36 | .chan_name = "tx", |
37 | .dma_size = 2, | 37 | .addr_width = 2, |
38 | }; | 38 | }; |
39 | 39 | ||
40 | static struct s3c_dma_params s3c24xx_i2s_pcm_stereo_in = { | 40 | static struct snd_dmaengine_dai_dma_data s3c24xx_i2s_pcm_stereo_in = { |
41 | .ch_name = "rx", | 41 | .chan_name = "rx", |
42 | .dma_size = 2, | 42 | .addr_width = 2, |
43 | }; | 43 | }; |
44 | 44 | ||
45 | struct s3c24xx_i2s_info { | 45 | struct s3c24xx_i2s_info { |
@@ -360,8 +360,8 @@ static int s3c24xx_i2s_probe(struct snd_soc_dai *dai) | |||
360 | { | 360 | { |
361 | pr_debug("Entered %s\n", __func__); | 361 | pr_debug("Entered %s\n", __func__); |
362 | 362 | ||
363 | samsung_asoc_init_dma_data(dai, &s3c24xx_i2s_pcm_stereo_out, | 363 | snd_soc_dai_init_dma_data(dai, &s3c24xx_i2s_pcm_stereo_out, |
364 | &s3c24xx_i2s_pcm_stereo_in); | 364 | &s3c24xx_i2s_pcm_stereo_in); |
365 | 365 | ||
366 | s3c24xx_i2s.iis_clk = devm_clk_get(dai->dev, "iis"); | 366 | s3c24xx_i2s.iis_clk = devm_clk_get(dai->dev, "iis"); |
367 | if (IS_ERR(s3c24xx_i2s.iis_clk)) { | 367 | if (IS_ERR(s3c24xx_i2s.iis_clk)) { |
@@ -469,10 +469,10 @@ static int s3c24xx_iis_dev_probe(struct platform_device *pdev) | |||
469 | if (IS_ERR(s3c24xx_i2s.regs)) | 469 | if (IS_ERR(s3c24xx_i2s.regs)) |
470 | return PTR_ERR(s3c24xx_i2s.regs); | 470 | return PTR_ERR(s3c24xx_i2s.regs); |
471 | 471 | ||
472 | s3c24xx_i2s_pcm_stereo_out.dma_addr = res->start + S3C2410_IISFIFO; | 472 | s3c24xx_i2s_pcm_stereo_out.addr = res->start + S3C2410_IISFIFO; |
473 | s3c24xx_i2s_pcm_stereo_out.slave = pdata->dma_playback; | 473 | s3c24xx_i2s_pcm_stereo_out.filter_data = pdata->dma_playback; |
474 | s3c24xx_i2s_pcm_stereo_in.dma_addr = res->start + S3C2410_IISFIFO; | 474 | s3c24xx_i2s_pcm_stereo_in.addr = res->start + S3C2410_IISFIFO; |
475 | s3c24xx_i2s_pcm_stereo_in.slave = pdata->dma_capture; | 475 | s3c24xx_i2s_pcm_stereo_in.filter_data = pdata->dma_capture; |
476 | 476 | ||
477 | ret = devm_snd_soc_register_component(&pdev->dev, | 477 | ret = devm_snd_soc_register_component(&pdev->dev, |
478 | &s3c24xx_i2s_component, &s3c24xx_i2s_dai, 1); | 478 | &s3c24xx_i2s_component, &s3c24xx_i2s_dai, 1); |