Re: ALSA: cs5535audio: fix PRD register save/restore power management race

2007-08-30 Thread Jordan Crouse
On 29/08/07 23:29 -0400, Andres Salomon wrote: > > In the suspend path, we currently save the PRD registers and then disable DMA. > This is racy; the sound hardware might update the PRD register as it finishes > processing some DMA pages between when we've saved the PRD registers and > when DMA

Re: ALSA: cs5535audio: fix PRD register save/restore power management race

2007-08-30 Thread Jordan Crouse
On 29/08/07 23:29 -0400, Andres Salomon wrote: In the suspend path, we currently save the PRD registers and then disable DMA. This is racy; the sound hardware might update the PRD register as it finishes processing some DMA pages between when we've saved the PRD registers and when DMA

[PATCH 2/5] ALSA: cs5535audio: fix PRD register save/restore power management race

2007-08-29 Thread Andres Salomon
In the suspend path, we currently save the PRD registers and then disable DMA. This is racy; the sound hardware might update the PRD register as it finishes processing some DMA pages between when we've saved the PRD registers and when DMA actually gets disabled. Furthermore, we actively check

[PATCH 2/5] ALSA: cs5535audio: fix PRD register save/restore power management race

2007-08-29 Thread Andres Salomon
In the suspend path, we currently save the PRD registers and then disable DMA. This is racy; the sound hardware might update the PRD register as it finishes processing some DMA pages between when we've saved the PRD registers and when DMA actually gets disabled. Furthermore, we actively check