[PATCH 25/29] staging: bcm2835-audio: Use coherent device buffers

2018-09-04 Thread Takashi Iwai
The memory access to the pages allocated with SNDRV_DMA_TYPE_CONTINUOUS are basically non-coherent, and it becomes a problem when a process accesses via mmap. For the more consistent access, use the device coherent memory, just by replacing the call pattern in the allocator helpers. The only

[PATCH 25/29] staging: bcm2835-audio: Use coherent device buffers

2018-09-04 Thread Takashi Iwai
The memory access to the pages allocated with SNDRV_DMA_TYPE_CONTINUOUS are basically non-coherent, and it becomes a problem when a process accesses via mmap. For the more consistent access, use the device coherent memory, just by replacing the call pattern in the allocator helpers. The only