aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-08-23 13:57:39 +0200
committerTakashi Iwai <tiwai@suse.de>2022-08-24 08:00:26 +0200
commitdd164fbfdc20ccf17be9186b1a5a4b2bc11b6a97 (patch)
tree421b890893dda1bb50b241b67132f32d722cf349 /include/sound
parentASoC: Intel: sst: Switch to standard device pages (diff)
downloadlinux-dev-dd164fbfdc20ccf17be9186b1a5a4b2bc11b6a97.tar.xz
linux-dev-dd164fbfdc20ccf17be9186b1a5a4b2bc11b6a97.zip
ALSA: memalloc: Drop special handling of GFP for CONTINUOUS allocation
Now that all users of snd_dma_continuous_data() is gone, let's drop this ugly (and dangerous) way. After this commit, SNDRV_DMA_TYPE_CONTINUOUS may take the standard device pointer instead of the hacked pointer by the macro above, and the memalloc core refers to the coherent_dma_mask of the given device like other SNDRV_DMA_TYPE. It's still allowed to pass NULL there, and in that case, the allocation is performed always in the normal zone. For SNDRV_DMA_TYPE_VMALLOC, the device pointer is simply ignored. Link: https://lore.kernel.org/r/20220823115740.14123-5-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/memalloc.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/sound/memalloc.h b/include/sound/memalloc.h
index 8d79cebf95f3..43d524580bd2 100644
--- a/include/sound/memalloc.h
+++ b/include/sound/memalloc.h
@@ -26,9 +26,6 @@ struct snd_dma_device {
struct device *dev; /* generic device */
};
-#define snd_dma_continuous_data(x) ((struct device *)(__force unsigned long)(x))
-
-
/*
* buffer types
*/