ALSA: pcm: Yet another missing check of non-cached buffer type
authorTakashi Iwai <tiwai@suse.de>
Fri, 8 Nov 2019 16:56:26 +0000 (17:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2020 09:20:01 +0000 (10:20 +0100)
commitd77ae7624782bb947cf71696d28aad2f476fd17e
treed1873b503e58c0f4d7bdea68cbebca4fc5472e93
parentaea6343885a67cd0ff69cba720c7e8538e78cc40
ALSA: pcm: Yet another missing check of non-cached buffer type

commit 2406ff9b86aa1b77fe1a6d15f37195ac1fdb2a14 upstream.

For non-x86 architectures, SNDRV_DMA_TYPE_DEV_UC should be treated
equivalent with SNDRV_DMA_TYPE_DEV, where the default mmap handler
still checks only about SNDRV_DMA_TYPE_DEV.  Make the check more
proper.

Note that all existing users of *_UC buffer types are x86-only, so
this doesn't fix any bug, but just for consistency.

Fixes: 42e748a0b325 ("ALSA: memalloc: Add non-cached buffer type")
Link: https://lore.kernel.org/r/20191108165626.5947-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/core/pcm_native.c