mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 09:14:19 +08:00
ASoC: atmel_ssc_dai: only clean PDC when using PDC
Only using PDC, it needs to clean PDC registers. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
cbaadf0f90
commit
3fd5b30c57
@ -627,6 +627,7 @@ static int atmel_ssc_hw_params(struct snd_pcm_substream *substream,
|
||||
rcmr, rfmr, tcmr, tfmr);
|
||||
|
||||
if (!ssc_p->initialized) {
|
||||
if (!ssc_p->ssc->pdata->use_dma) {
|
||||
ssc_writel(ssc_p->ssc->regs, PDC_RPR, 0);
|
||||
ssc_writel(ssc_p->ssc->regs, PDC_RCR, 0);
|
||||
ssc_writel(ssc_p->ssc->regs, PDC_RNPR, 0);
|
||||
@ -636,6 +637,7 @@ static int atmel_ssc_hw_params(struct snd_pcm_substream *substream,
|
||||
ssc_writel(ssc_p->ssc->regs, PDC_TCR, 0);
|
||||
ssc_writel(ssc_p->ssc->regs, PDC_TNPR, 0);
|
||||
ssc_writel(ssc_p->ssc->regs, PDC_TNCR, 0);
|
||||
}
|
||||
|
||||
ret = request_irq(ssc_p->ssc->irq, atmel_ssc_interrupt, 0,
|
||||
ssc_p->name, ssc_p);
|
||||
|
Loading…
Reference in New Issue
Block a user