|
@@ -3422,7 +3422,7 @@ int snd_pcm_lib_default_mmap(struct snd_pcm_substream *substream,
|
|
area,
|
|
area,
|
|
substream->runtime->dma_area,
|
|
substream->runtime->dma_area,
|
|
substream->runtime->dma_addr,
|
|
substream->runtime->dma_addr,
|
|
- area->vm_end - area->vm_start);
|
|
|
|
|
|
+ substream->runtime->dma_bytes);
|
|
#endif /* CONFIG_X86 */
|
|
#endif /* CONFIG_X86 */
|
|
/* mmap with fault handler */
|
|
/* mmap with fault handler */
|
|
area->vm_ops = &snd_pcm_vm_ops_data_fault;
|
|
area->vm_ops = &snd_pcm_vm_ops_data_fault;
|