ALSA: memalloc: Support for non-coherent page allocation
authorTakashi Iwai <tiwai@suse.de>
Sun, 17 Oct 2021 07:48:58 +0000 (09:48 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 18 Oct 2021 11:32:12 +0000 (13:32 +0200)
commit73325f60e2ed28f04032d43c2828b73776cfefd0
treecd1f8757a850644c6d876e130c724131033d429d
parenta25684a956468ee8bbbee44649e41e5d447e5adc
ALSA: memalloc: Support for non-coherent page allocation

Following to the addition of non-contiguous pages, this patch adds the
new contiguous non-coherent page allocation to the standard memalloc
helper.  Like the previous non-contig type, this non-coherent type is
also directional and requires the explicit sync, too.  Hence the
driver using this type of buffer may need to set
SNDRV_PCM_INFO_EXPLICIT_SYNC flag to the PCM hardware.info as well,
unless it's set up in the managed mode.

Link: https://lore.kernel.org/r/20211017074859.24112-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/memalloc.h
sound/core/memalloc.c