diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-01-18 08:58:57 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-01-18 09:00:34 -0500 |
commit | c32d977b8157bf67cdf47729ce7dd054a26eb534 (patch) | |
tree | fedbd1c0d4382e88362abf81f719e6f127e19fa7 /sound/drivers | |
parent | 3e879d7bac705be4813a0ec9560cbe31db4b269f (diff) |
ALSA: pcm - Call pgprot_noncached() for vmalloc'ed buffers
pgprot_noncached() can be set for vmalloc'ed buffers safely, and we'd
need non-cached behavior more or less, even for the intermediate ring-
buffers.
Now snd_pcm_lib_mmap_vmalloc() is added as the common PCM mmap callback
that is coupled with snd_pcm_lib_alloc_vmalloc_buffer() & co.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers')
-rw-r--r-- | sound/drivers/vx/vx_pcm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/drivers/vx/vx_pcm.c b/sound/drivers/vx/vx_pcm.c index c8385d26a16f..35a2f71a6af5 100644 --- a/sound/drivers/vx/vx_pcm.c +++ b/sound/drivers/vx/vx_pcm.c | |||
@@ -905,6 +905,7 @@ static struct snd_pcm_ops vx_pcm_playback_ops = { | |||
905 | .trigger = vx_pcm_trigger, | 905 | .trigger = vx_pcm_trigger, |
906 | .pointer = vx_pcm_playback_pointer, | 906 | .pointer = vx_pcm_playback_pointer, |
907 | .page = snd_pcm_lib_get_vmalloc_page, | 907 | .page = snd_pcm_lib_get_vmalloc_page, |
908 | .mmap = snd_pcm_lib_mmap_vmalloc, | ||
908 | }; | 909 | }; |
909 | 910 | ||
910 | 911 | ||
@@ -1125,6 +1126,7 @@ static struct snd_pcm_ops vx_pcm_capture_ops = { | |||
1125 | .trigger = vx_pcm_trigger, | 1126 | .trigger = vx_pcm_trigger, |
1126 | .pointer = vx_pcm_capture_pointer, | 1127 | .pointer = vx_pcm_capture_pointer, |
1127 | .page = snd_pcm_lib_get_vmalloc_page, | 1128 | .page = snd_pcm_lib_get_vmalloc_page, |
1129 | .mmap = snd_pcm_lib_mmap_vmalloc, | ||
1128 | }; | 1130 | }; |
1129 | 1131 | ||
1130 | 1132 | ||