aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/u_uac1.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/u_uac1.c')
-rw-r--r--drivers/usb/gadget/u_uac1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/u_uac1.c b/drivers/usb/gadget/u_uac1.c
index c7d460f43390..7a55fea43430 100644
--- a/drivers/usb/gadget/u_uac1.c
+++ b/drivers/usb/gadget/u_uac1.c
@@ -191,7 +191,7 @@ try_again:
191 frames = bytes_to_frames(runtime, count); 191 frames = bytes_to_frames(runtime, count);
192 old_fs = get_fs(); 192 old_fs = get_fs();
193 set_fs(KERNEL_DS); 193 set_fs(KERNEL_DS);
194 result = snd_pcm_lib_write(snd->substream, buf, frames); 194 result = snd_pcm_lib_write(snd->substream, (void __user *)buf, frames);
195 if (result != frames) { 195 if (result != frames) {
196 ERROR(card, "Playback error: %d\n", (int)result); 196 ERROR(card, "Playback error: %d\n", (int)result);
197 set_fs(old_fs); 197 set_fs(old_fs);