diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-09-28 11:12:59 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-09-28 11:15:14 -0400 |
commit | 18a2b9623370479d1646b9b94e3528683f3b74de (patch) | |
tree | 8dc90994f1cdccb6b516ae4f71a299c8fea0fed7 /include/sound | |
parent | a597310331177cd3969f840a9a6290e3c212e4cf (diff) |
ALSA: pcm - Export snd_pcm_lib_default_mmap() helper
Export the default mmap function, snd_pcm_lib_default_mmap().
The upcoming non-snooping support in HD-audio driver will use this
to override the mmap method.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/pcm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 57e71fa33f7c..249d98838d90 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h | |||
@@ -1035,6 +1035,8 @@ static inline void snd_pcm_mmap_data_close(struct vm_area_struct *area) | |||
1035 | atomic_dec(&substream->mmap_count); | 1035 | atomic_dec(&substream->mmap_count); |
1036 | } | 1036 | } |
1037 | 1037 | ||
1038 | int snd_pcm_lib_default_mmap(struct snd_pcm_substream *substream, | ||
1039 | struct vm_area_struct *area); | ||
1038 | /* mmap for io-memory area */ | 1040 | /* mmap for io-memory area */ |
1039 | #if defined(CONFIG_X86) || defined(CONFIG_PPC) || defined(CONFIG_ALPHA) | 1041 | #if defined(CONFIG_X86) || defined(CONFIG_PPC) || defined(CONFIG_ALPHA) |
1040 | #define SNDRV_PCM_INFO_MMAP_IOMEM SNDRV_PCM_INFO_MMAP | 1042 | #define SNDRV_PCM_INFO_MMAP_IOMEM SNDRV_PCM_INFO_MMAP |