ALSA: memalloc: Use proper DMA mapping API for x86 WC buffer allocations
authorTakashi Iwai <tiwai@suse.de>
Thu, 12 Sep 2024 15:52:24 +0000 (17:52 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 12 Sep 2024 16:02:03 +0000 (18:02 +0200)
commitc880a5146642e9d35f88aaa353ae98ffd4fc3f99
tree3a7ae8c542c03259ec4c0afdfeb74baa1f6b1836
parenta51c925c11d7b855167e64b63eb4378e5adfc11d
ALSA: memalloc: Use proper DMA mapping API for x86 WC buffer allocations

The x86 WC page allocation assumes incorrectly the DMA address
directly taken from the page.  Also it checks the DMA ops
inappropriately for switching to the own method.

This patch rewrites the stuff to use the proper DMA mapping API
instead.

Link: https://patch.msgid.link/20240912155227.4078-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/memalloc.c