ASoC: samsung: remove unused DMA data
authorArnd Bergmann <arnd@arndb.de>
Fri, 11 Jul 2014 13:45:08 +0000 (15:45 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 14 Jul 2014 18:53:43 +0000 (19:53 +0100)
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>
sound/soc/samsung/ac97.c
sound/soc/samsung/dma.h
sound/soc/samsung/i2s.c
sound/soc/samsung/pcm.c
sound/soc/samsung/s3c-i2s-v2.c
sound/soc/samsung/s3c2412-i2s.c
sound/soc/samsung/s3c24xx-i2s.c
sound/soc/samsung/spdif.c

index 2aa24d052a4a21e83bcaea8e61d3ba8053b69793..e1615113fd84f0558e93975ed2b9933e03f40683 100644 (file)
@@ -38,30 +38,15 @@ struct s3c_ac97_info {
 };
 static struct s3c_ac97_info s3c_ac97;
 
 };
 static struct s3c_ac97_info s3c_ac97;
 
-static struct s3c_dma_client s3c_dma_client_out = {
-       .name = "AC97 PCMOut"
-};
-
-static struct s3c_dma_client s3c_dma_client_in = {
-       .name = "AC97 PCMIn"
-};
-
-static struct s3c_dma_client s3c_dma_client_micin = {
-       .name = "AC97 MicIn"
-};
-
 static struct s3c_dma_params s3c_ac97_pcm_out = {
 static struct s3c_dma_params s3c_ac97_pcm_out = {
-       .client         = &s3c_dma_client_out,
        .dma_size       = 4,
 };
 
 static struct s3c_dma_params s3c_ac97_pcm_in = {
        .dma_size       = 4,
 };
 
 static struct s3c_dma_params s3c_ac97_pcm_in = {
-       .client         = &s3c_dma_client_in,
        .dma_size       = 4,
 };
 
 static struct s3c_dma_params s3c_ac97_mic_in = {
        .dma_size       = 4,
 };
 
 static struct s3c_dma_params s3c_ac97_mic_in = {
-       .client         = &s3c_dma_client_micin,
        .dma_size       = 4,
 };
 
        .dma_size       = 4,
 };
 
index 070ab0f096092c22c6fd47ec239b89531a7a3a52..0e85dcfec02347eed1c4ee88fbf3c79a9f0cb675 100644 (file)
 
 #include <sound/dmaengine_pcm.h>
 
 
 #include <sound/dmaengine_pcm.h>
 
-struct s3c_dma_client {
-       char *name;
-};
-
 struct s3c_dma_params {
 struct s3c_dma_params {
-       struct s3c_dma_client *client;  /* stream identifier */
        int channel;                            /* Channel ID */
        dma_addr_t dma_addr;
        int dma_size;                   /* Size of the DMA transfer */
        int channel;                            /* Channel ID */
        dma_addr_t dma_addr;
        int dma_size;                   /* Size of the DMA transfer */
-       unsigned ch;
-       struct samsung_dma_ops *ops;
        char *ch_name;
        struct snd_dmaengine_dai_dma_data dma_data;
 };
        char *ch_name;
        struct snd_dmaengine_dai_dma_data dma_data;
 };
index 2ac76fa3e742e6fcd5dbacf094a2a38244345564..6b9de7429884489983d9ff7fd305e6f201793a16 100644 (file)
@@ -1216,11 +1216,7 @@ static int samsung_i2s_probe(struct platform_device *pdev)
 
        pri_dai->dma_playback.dma_addr = regs_base + I2STXD;
        pri_dai->dma_capture.dma_addr = regs_base + I2SRXD;
 
        pri_dai->dma_playback.dma_addr = regs_base + I2STXD;
        pri_dai->dma_capture.dma_addr = regs_base + I2SRXD;
-       pri_dai->dma_playback.client =
-               (struct s3c_dma_client *)&pri_dai->dma_playback;
        pri_dai->dma_playback.ch_name = "tx";
        pri_dai->dma_playback.ch_name = "tx";
-       pri_dai->dma_capture.client =
-               (struct s3c_dma_client *)&pri_dai->dma_capture;
        pri_dai->dma_capture.ch_name = "rx";
        pri_dai->dma_playback.dma_size = 4;
        pri_dai->dma_capture.dma_size = 4;
        pri_dai->dma_capture.ch_name = "rx";
        pri_dai->dma_playback.dma_size = 4;
        pri_dai->dma_capture.dma_size = 4;
@@ -1238,8 +1234,6 @@ static int samsung_i2s_probe(struct platform_device *pdev)
                        goto err;
                }
                sec_dai->dma_playback.dma_addr = regs_base + I2STXDS;
                        goto err;
                }
                sec_dai->dma_playback.dma_addr = regs_base + I2STXDS;
-               sec_dai->dma_playback.client =
-                       (struct s3c_dma_client *)&sec_dai->dma_playback;
                sec_dai->dma_playback.ch_name = "tx-sec";
 
                if (!np) {
                sec_dai->dma_playback.ch_name = "tx-sec";
 
                if (!np) {
index 4c5f97fe45c866bdf14913d3189e7a85ffd12a2c..bac034b15a2776b35c1f766b14f23e16c96f8e07 100644 (file)
@@ -131,32 +131,20 @@ struct s3c_pcm_info {
        struct s3c_dma_params   *dma_capture;
 };
 
        struct s3c_dma_params   *dma_capture;
 };
 
-static struct s3c_dma_client s3c_pcm_dma_client_out = {
-       .name           = "PCM Stereo out"
-};
-
-static struct s3c_dma_client s3c_pcm_dma_client_in = {
-       .name           = "PCM Stereo in"
-};
-
 static struct s3c_dma_params s3c_pcm_stereo_out[] = {
        [0] = {
 static struct s3c_dma_params s3c_pcm_stereo_out[] = {
        [0] = {
-               .client         = &s3c_pcm_dma_client_out,
                .dma_size       = 4,
        },
        [1] = {
                .dma_size       = 4,
        },
        [1] = {
-               .client         = &s3c_pcm_dma_client_out,
                .dma_size       = 4,
        },
 };
 
 static struct s3c_dma_params s3c_pcm_stereo_in[] = {
        [0] = {
                .dma_size       = 4,
        },
 };
 
 static struct s3c_dma_params s3c_pcm_stereo_in[] = {
        [0] = {
-               .client         = &s3c_pcm_dma_client_in,
                .dma_size       = 4,
        },
        [1] = {
                .dma_size       = 4,
        },
        [1] = {
-               .client         = &s3c_pcm_dma_client_in,
                .dma_size       = 4,
        },
 };
                .dma_size       = 4,
        },
 };
index de6c321b8b68dc601a22998abb5be1579f184c4a..df65c5b494b17aad482c7821586b6ed6832bf9f6 100644 (file)
@@ -22,8 +22,6 @@
 #include <sound/soc.h>
 #include <sound/pcm_params.h>
 
 #include <sound/soc.h>
 #include <sound/pcm_params.h>
 
-#include <mach/dma.h>
-
 #include "regs-i2s-v2.h"
 #include "s3c-i2s-v2.h"
 #include "dma.h"
 #include "regs-i2s-v2.h"
 #include "s3c-i2s-v2.h"
 #include "dma.h"
index d6bc6dc0aafb22157384f3c3180be953bdb42fe6..9180310e862a3e4e66fcdb0f6a9b8aaf050b98c0 100644 (file)
 #include "s3c2412-i2s.h"
 
 static struct s3c_dma_params s3c2412_i2s_pcm_stereo_out = {
 #include "s3c2412-i2s.h"
 
 static struct s3c_dma_params s3c2412_i2s_pcm_stereo_out = {
-       .client         =
-               (struct s3c_dma_client *)&s3c2412_i2s_pcm_stereo_out,
        .channel        = DMACH_I2S_OUT,
        .ch_name        = "tx",
        .dma_size       = 4,
 };
 
 static struct s3c_dma_params s3c2412_i2s_pcm_stereo_in = {
        .channel        = DMACH_I2S_OUT,
        .ch_name        = "tx",
        .dma_size       = 4,
 };
 
 static struct s3c_dma_params s3c2412_i2s_pcm_stereo_in = {
-       .client         =
-               (struct s3c_dma_client *)&s3c2412_i2s_pcm_stereo_in,
        .channel        = DMACH_I2S_IN,
        .ch_name        = "rx",
        .dma_size       = 4,
        .channel        = DMACH_I2S_IN,
        .ch_name        = "rx",
        .dma_size       = 4,
index e8b98528e356bea25888a3ba068ab9e59b5169b2..e87d9a2053b8387e894554ade54ad9e90b945c52 100644 (file)
 #include "s3c24xx-i2s.h"
 
 static struct s3c_dma_params s3c24xx_i2s_pcm_stereo_out = {
 #include "s3c24xx-i2s.h"
 
 static struct s3c_dma_params s3c24xx_i2s_pcm_stereo_out = {
-       .client         =
-               (struct s3c_dma_client *)&s3c24xx_i2s_pcm_stereo_out,
        .channel        = DMACH_I2S_OUT,
        .ch_name        = "tx",
        .dma_size       = 2,
 };
 
 static struct s3c_dma_params s3c24xx_i2s_pcm_stereo_in = {
        .channel        = DMACH_I2S_OUT,
        .ch_name        = "tx",
        .dma_size       = 2,
 };
 
 static struct s3c_dma_params s3c24xx_i2s_pcm_stereo_in = {
-       .client         =
-               (struct s3c_dma_client *)&s3c24xx_i2s_pcm_stereo_in,
        .channel        = DMACH_I2S_IN,
        .ch_name        = "rx",
        .dma_size       = 2,
        .channel        = DMACH_I2S_IN,
        .ch_name        = "rx",
        .dma_size       = 2,
index d9ffc48fce5e2183e3a360108ff9e59e43017adb..d7d2e208f486ed4a3eb5be9e88389418a8372821 100644 (file)
@@ -93,10 +93,6 @@ struct samsung_spdif_info {
        struct s3c_dma_params   *dma_playback;
 };
 
        struct s3c_dma_params   *dma_playback;
 };
 
-static struct s3c_dma_client spdif_dma_client_out = {
-       .name           = "S/PDIF Stereo out",
-};
-
 static struct s3c_dma_params spdif_stereo_out;
 static struct samsung_spdif_info spdif_info;
 
 static struct s3c_dma_params spdif_stereo_out;
 static struct samsung_spdif_info spdif_info;
 
@@ -435,7 +431,6 @@ static int spdif_probe(struct platform_device *pdev)
        }
 
        spdif_stereo_out.dma_size = 2;
        }
 
        spdif_stereo_out.dma_size = 2;
-       spdif_stereo_out.client = &spdif_dma_client_out;
        spdif_stereo_out.dma_addr = mem_res->start + DATA_OUTBUF;
        spdif_stereo_out.channel = dma_res->start;
 
        spdif_stereo_out.dma_addr = mem_res->start + DATA_OUTBUF;
        spdif_stereo_out.channel = dma_res->start;