aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/atmel/atmel_ssc_dai.c
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2013-07-03 16:37:58 +0800
committerMark Brown <broonie@linaro.org>2013-07-15 11:07:56 +0100
commitcede8d7aaa60bd7c03b9ec5eb43b09714710b8ba (patch)
treef65ecb09ebbe7150db67eecdd48719493de8ec67 /sound/soc/atmel/atmel_ssc_dai.c
parentASoC: atmel_ssc_dai: add error mask define (diff)
downloadlinux-dev-cede8d7aaa60bd7c03b9ec5eb43b09714710b8ba.tar.xz
linux-dev-cede8d7aaa60bd7c03b9ec5eb43b09714710b8ba.zip
ASoC: atmel-pcm-dma: move prepare for dma to dai prepare
as prepare callback for dma is acctually access ssc register which better done in dai driver, so move it to dai prepare callback function Signed-off-by: Bo Shen <voice.shen@atmel.com> Reviewed-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/atmel/atmel_ssc_dai.c')
-rw-r--r--sound/soc/atmel/atmel_ssc_dai.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
index 1ab47639f11c..0ecf356027f6 100644
--- a/sound/soc/atmel/atmel_ssc_dai.c
+++ b/sound/soc/atmel/atmel_ssc_dai.c
@@ -649,6 +649,7 @@ static int atmel_ssc_prepare(struct snd_pcm_substream *substream,
dma_params = ssc_p->dma_params[dir];
ssc_writel(ssc_p->ssc->regs, CR, dma_params->mask->ssc_enable);
+ ssc_writel(ssc_p->ssc->regs, IER, dma_params->mask->ssc_error);
pr_debug("%s enabled SSC_SR=0x%08x\n",
dir ? "receive" : "transmit",