Skip to content

Commit 219e281

Browse files
Hubert KahlertJaroslav Kysela
authored andcommitted
[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: Hubert Kahlert <hkahlert@hk-datentechnik.de> Signed-off-by: Frank Mandarino <fmandarino@endrelia.com> Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
1 parent 8b65727 commit 219e281

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/soc/at91/at91rm9200-i2s.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ static void at91rm9200_i2s_shutdown(struct snd_pcm_substream *substream)
373373
if (!ssc_p->dir_mask) {
374374
/* Shutdown the SSC clock. */
375375
DBG("Stopping pid %d clock\n", ssc_p->pid);
376-
at91_sys_write(AT91_PMC_PCDR, ssc_p->pid);
376+
at91_sys_write(AT91_PMC_PCDR, 1<<ssc_p->pid);
377377

378378
if (ssc_p->initialized)
379379
free_irq(ssc_p->pid, ssc_p);

0 commit comments

Comments
 (0)