diff options
author | Hubert Kahlert <hkahlert@hk-datentechnik.de> | 2006-10-31 09:31:27 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2007-02-09 03:01:13 -0500 |
commit | 219e281f4627a395aaceff0e4a257cd18608e145 (patch) | |
tree | b43fa3f7a7cef9a6ab7db7c78d2eb887067eda51 /sound/soc | |
parent | 8b65727bf07abc0b3fdac4fcf2f90c5882d65f4f (diff) |
[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>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/at91/at91rm9200-i2s.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/at91/at91rm9200-i2s.c b/sound/soc/at91/at91rm9200-i2s.c index 2eee427b1e5c..e3e6345fc8be 100644 --- a/sound/soc/at91/at91rm9200-i2s.c +++ b/sound/soc/at91/at91rm9200-i2s.c | |||
@@ -373,7 +373,7 @@ static void at91rm9200_i2s_shutdown(struct snd_pcm_substream *substream) | |||
373 | if (!ssc_p->dir_mask) { | 373 | if (!ssc_p->dir_mask) { |
374 | /* Shutdown the SSC clock. */ | 374 | /* Shutdown the SSC clock. */ |
375 | DBG("Stopping pid %d clock\n", ssc_p->pid); | 375 | 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); |
377 | 377 | ||
378 | if (ssc_p->initialized) | 378 | if (ssc_p->initialized) |
379 | free_irq(ssc_p->pid, ssc_p); | 379 | free_irq(ssc_p->pid, ssc_p); |