patch-2.1.37 linux/arch/m68k/amiga/amisound.c

Next file: linux/arch/m68k/amiga/chipram.c
Previous file: linux/arch/m68k/amiga/amikeyb.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/arch/m68k/amiga/amisound.c linux/arch/m68k/amiga/amisound.c
@@ -10,6 +10,7 @@
 
 #include <linux/sched.h>
 #include <linux/timer.h>
+#include <linux/init.h>
 
 #include <asm/system.h>
 #include <asm/amigahw.h>
@@ -39,7 +40,7 @@
 
 static u_long clock_constant;
 
-static void init_sound(void)
+__initfunc(static void init_sound(void))
 {
 	snd_data = amiga_chip_alloc(sizeof(sine_data));
 	if (!snd_data) {
@@ -84,7 +85,7 @@
 		custom.aud[2].audlc = snd_data;
 		custom.aud[2].audlen = sizeof(sine_data)/2;
 		custom.aud[2].audper = (u_short)period;
-		custom.aud[2].audvol = 64; /* maxvol */
+		custom.aud[2].audvol = 32; /* 50% of maxvol */
 	
 		if (ticks) {
 			sound_timer.expires = jiffies + ticks;

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