Skip to content
Commit fc478143 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda: Use new non-cached allocation for non-snoop mode



Now the ALSA memory allocator helper supports the new non-cached
pages, let's use the new type, SNDRV_DMA_TYPE_DEV_UC_SG, for HD-audio
driver.  This allows us to reduce lots of codes.

As another positive side-effect by this patch, the long-standing issue
with non-snoop mode playing in the non-mmap mode is fixed.  The core
memalloc helper does the proper pgprot setup for non-cached pages for
vmap(), which was missing in the past.

Reported-and-tested-by: default avatarHans Hu <HansHu@zhaoxin.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 78c9be61
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment