Skip to content

Commit 41b8f5d

Browse files
lyakhlgirdwood
authored andcommitted
sof: fix compilation on non X86 platforms
SND_DMA_SGBUF is defined to depend on X86 snd_sgbuf_aligned_pages() is only defined if SND_DMA_SGBUF iss set. Use PAGE_ALIGN() instead to avoid the dependency. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
1 parent 7889a7a commit 41b8f5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sof/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ int snd_sof_create_page_table(struct snd_sof_dev *sdev,
197197
{
198198
int i, pages;
199199

200-
pages = snd_sgbuf_aligned_pages(size);
200+
pages = PAGE_ALIGN(size);
201201

202202
dev_dbg(sdev->dev, "generating page table for %p size 0x%zx pages %d\n",
203203
dmab->area, size, pages);

0 commit comments

Comments
 (0)