Skip to content

Commit 827f316

Browse files
tiwaibroonie
authored andcommitted
ASoC: uniphier: Fix reference to PCM buffer address
Along with the transition to the managed PCM buffers, the driver now accepts the dynamically allocated buffer, while it still kept the reference to the old preallocated buffer address. This patch corrects to the right reference via runtime->dma_addr. (Although this might have been already buggy before the cleanup with the managed buffer, let's put Fixes tag to point that; it's a corner case, after all.) Fixes: d55894b ("ASoC: uniphier: Use managed buffer allocation") Cc: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 42bc62c commit 827f316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/uniphier/aio-dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static int uniphier_aiodma_mmap(struct snd_soc_component *component,
198198
vma->vm_page_prot = pgprot_writecombine(vma->vm_page_prot);
199199

200200
return remap_pfn_range(vma, vma->vm_start,
201-
substream->dma_buffer.addr >> PAGE_SHIFT,
201+
substream->runtime->dma_addr >> PAGE_SHIFT,
202202
vma->vm_end - vma->vm_start, vma->vm_page_prot);
203203
}
204204

0 commit comments

Comments
 (0)