mbox series

[0/2] ALSA: memalloc: Use proper DMA mapping API

Message ID 20240912155227.4078-1-tiwai@suse.de (mailing list archive)
Headers show
Series ALSA: memalloc: Use proper DMA mapping API | expand

Message

Takashi Iwai Sept. 12, 2024, 3:52 p.m. UTC
This is a further cleanup of memalloc core stuff to do behave
more correctly regarding DMA API.  Formerly some x86-specific code
relied on the address from the page allocators, but rather we should
map correctly the pages with DMA mapping API.  With those fixes, the
fallback allocation should work more properly, so we can drop the
hackish check, too.


Takashi

===

Takashi Iwai (2):
  ALSA: memalloc: Use proper DMA mapping API for x86 WC buffer
    allocations
  ALSA: memalloc: Use proper DMA mapping API for x86 S/G buffer
    allocations

 sound/core/memalloc.c | 127 ++++++++++++++++++++++--------------------
 1 file changed, 67 insertions(+), 60 deletions(-)