summaryrefslogtreecommitdiffstats
path: root/sound/soc/atmel/atmel_ssc_dai.c
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2012-11-28 11:46:12 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-02 13:27:44 +0900
commit92dfa61986237f849bb6ff5190380b3bf69335d2 (patch)
treec1a3fe286bd52c51a07a9045e04bb6a965cff284 /sound/soc/atmel/atmel_ssc_dai.c
parent31974361761b18e07e821d3b262e34f1a2d105cb (diff)
downloadtalos-op-linux-92dfa61986237f849bb6ff5190380b3bf69335d2.tar.gz
talos-op-linux-92dfa61986237f849bb6ff5190380b3bf69335d2.zip
ASoC: atmel-pcm: split into two file
This patch is split original atmel-pcm.c into new atmel-pcm.c and atmel-pcm-pdc.c two files. The new atmel-pcm.c is the share routine while will be used for pdc or dma transfer. Using SND_ATMEL_SOC_PDC to select using PDC for audio transfer Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/atmel/atmel_ssc_dai.c')
-rw-r--r--sound/soc/atmel/atmel_ssc_dai.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
index 7932c052b736..170561407f61 100644
--- a/sound/soc/atmel/atmel_ssc_dai.c
+++ b/sound/soc/atmel/atmel_ssc_dai.c
@@ -729,7 +729,7 @@ static int asoc_ssc_init(struct device *dev)
goto err;
}
- ret = atmel_pcm_platform_register(dev);
+ ret = atmel_pcm_pdc_platform_register(dev);
if (ret) {
dev_err(dev, "Could not register PCM: %d\n", ret);
goto err_unregister_dai;
@@ -745,7 +745,7 @@ err:
static void asoc_ssc_exit(struct device *dev)
{
- atmel_pcm_platform_unregister(dev);
+ atmel_pcm_pdc_platform_unregister(dev);
snd_soc_unregister_dai(dev);
}
OpenPOWER on IntegriCloud