OSDN Git Service

ALSA: memalloc: Fix pgprot for WC mmap on x86
authorTakashi Iwai <tiwai@suse.de>
Wed, 4 Aug 2021 06:13:29 +0000 (08:13 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 4 Aug 2021 06:13:54 +0000 (08:13 +0200)
commit623c10108338b6b4e2c99de9fbc785f30b526c54
tree448d45414f6e7d839a27db514e20c7591db08e9a
parentba447289fd06c8678eaf51ccffb1b0c9a6a56c9a
ALSA: memalloc: Fix pgprot for WC mmap on x86

We have a special handling of WC pages on x86, and it's currently
specific to HD-audio.  The last forgotten piece was the pgprot setup
for the mmap with WC pages.

This patch moves the pgprot setup for WC pages from HD-audio-specific
mmap callback to the common helper code.  It allows us to remove the
superfluous mmap callback in HD-audio and its prepare_mmap
redirection.

Link: https://lore.kernel.org/r/20210804061329.29265-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/memalloc.c
sound/pci/hda/hda_controller.c
sound/pci/hda/hda_controller.h
sound/pci/hda/hda_intel.c