Commit 219e281f authored by Hubert Kahlert's avatar Hubert Kahlert Committed by Jaroslav Kysela

[ALSA] Fix mask to stop AT91 SSC clock on shutdown

This patch by Frank Mandarino and Hubert Kahlert fixes a bug in the AT91
SSC (i2s) shutdown code that would erroneously disable other AT91
peripheral clocks.
Signed-off-by: default avatarHubert Kahlert <hkahlert@hk-datentechnik.de>
Signed-off-by: default avatarFrank Mandarino <fmandarino@endrelia.com>
Signed-off-by: default avatarLiam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent 8b65727b
...@@ -373,7 +373,7 @@ static void at91rm9200_i2s_shutdown(struct snd_pcm_substream *substream) ...@@ -373,7 +373,7 @@ static void at91rm9200_i2s_shutdown(struct snd_pcm_substream *substream)
if (!ssc_p->dir_mask) { if (!ssc_p->dir_mask) {
/* Shutdown the SSC clock. */ /* Shutdown the SSC clock. */
DBG("Stopping pid %d clock\n", ssc_p->pid); DBG("Stopping pid %d clock\n", ssc_p->pid);
at91_sys_write(AT91_PMC_PCDR, ssc_p->pid); at91_sys_write(AT91_PMC_PCDR, 1<<ssc_p->pid);
if (ssc_p->initialized) if (ssc_p->initialized)
free_irq(ssc_p->pid, ssc_p); free_irq(ssc_p->pid, ssc_p);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment