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

Next file: linux/fs/exec.c
Previous file: linux/drivers/sound/os.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.39/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -30,6 +30,8 @@
  * Created modular version by Peter Trattler (peter@sbox.tu-graz.ac.at)
  */
 
+#include <linux/module.h>
+
 #include "sound_config.h"
 
 #ifdef CONFIGURE_SOUNDCARD
@@ -604,7 +606,7 @@
 	}
     }
   dmap->raw_buf = start_addr;
-  dmap->raw_buf_phys = virt_to_phys (start_addr);
+  dmap->raw_buf_phys = virt_to_bus (start_addr);
 
   memset (dmap->raw_buf, 0x00, audio_devs[dev]->buffsize);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this