diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2013-04-18 06:01:38 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-04-21 03:53:00 -0400 |
commit | 4daf891cdea2eb63b51cb35a3ac12706f8c50156 (patch) | |
tree | 7be791a16c5660f9825d5c428ae1040a22cc7707 /include/sound | |
parent | 5b1f79f70b0fa0b7ddb28c9ac54c57598fed6347 (diff) |
ALSA: compress_core: Deconstify copy callback buffer
The buffer passed to the copy callback should not be const because the
copy callback can be used for capture and playback.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/compress_driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/compress_driver.h b/include/sound/compress_driver.h index ff6c74153fa1..db8273a5175a 100644 --- a/include/sound/compress_driver.h +++ b/include/sound/compress_driver.h | |||
@@ -121,7 +121,7 @@ struct snd_compr_ops { | |||
121 | int (*trigger)(struct snd_compr_stream *stream, int cmd); | 121 | int (*trigger)(struct snd_compr_stream *stream, int cmd); |
122 | int (*pointer)(struct snd_compr_stream *stream, | 122 | int (*pointer)(struct snd_compr_stream *stream, |
123 | struct snd_compr_tstamp *tstamp); | 123 | struct snd_compr_tstamp *tstamp); |
124 | int (*copy)(struct snd_compr_stream *stream, const char __user *buf, | 124 | int (*copy)(struct snd_compr_stream *stream, char __user *buf, |
125 | size_t count); | 125 | size_t count); |
126 | int (*mmap)(struct snd_compr_stream *stream, | 126 | int (*mmap)(struct snd_compr_stream *stream, |
127 | struct vm_area_struct *vma); | 127 | struct vm_area_struct *vma); |