-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ALSA: bcm2835: defer bcm2835 PCM write using the workqueue
Only PCM playback and stop are deferred using a workqueue on the ALSA bcm2835 driver. The actual writing of PCM samples is synchronous. This works well for the read/write transfer method since the snd_pcm_ops .copy function pointer runs on process context. But the snd_pcm_ops .ack function pointer used to implement direct read/write transfer using a memory-mapped I/O, runs with interrupts disabled. Since the Kernel to VideoCore interface driver has to be able to sleep, PCM write has to be deferred to in preparation to add mmap support to the driver. Signed-off-by: Javier Martinez Canillas <[email protected]>
- Loading branch information
Javier Martinez Canillas
committed
Apr 25, 2013
1 parent
fd22e4c
commit 24f64ad
Showing
1 changed file
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters