]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: hda: Use new non-cached allocation for non-snoop mode
authorTakashi Iwai <tiwai@suse.de>
Wed, 8 Aug 2018 20:23:30 +0000 (22:23 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 Aug 2018 11:56:47 +0000 (13:56 +0200)
commitfc478143693d8750dca5e35d03d497bdd0202b3f
tree7cb5ecbc2ef070c9746ebcf35017f7bb62ab593e
parent78c9be61c3a5cd9e2439fd27a5ffad73a81958c7
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: Hans Hu <HansHu@zhaoxin.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_controller.c
sound/pci/hda/hda_controller.h
sound/pci/hda/hda_intel.c