patch-2.0.14 linux/drivers/sound/soundcard.c

Next file: linux/drivers/sound/sys_timer.c
Previous file: linux/drivers/sound/sound_timer.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.13/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -48,7 +48,7 @@
   if (value < 0)
     return value;
 
-  put_fs_long (value, (long *) &((addr)[0]));
+  put_user (value, addr);
   return 0;
 }
 
@@ -668,7 +668,7 @@
 
       audio_devs[dev]->buffsize = PAGE_SIZE * (1 << sz);
 
-      if ((start_addr = (char *) __get_free_pages (GFP_ATOMIC, sz, MAX_DMA_ADDRESS)) == NULL)
+      if ((start_addr = (char *) __get_dma_pages (GFP_ATOMIC, sz)) == NULL)
 	audio_devs[dev]->buffsize /= 2;
     }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov