summaryrefslogtreecommitdiffstats
path: root/arch/m68k/amiga/amisound.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/m68k/amiga/amisound.c')
-rw-r--r--arch/m68k/amiga/amisound.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/m68k/amiga/amisound.c b/arch/m68k/amiga/amisound.c
index b2b2e3055..d5656d170 100644
--- a/arch/m68k/amiga/amisound.c
+++ b/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 @@ u_short amiga_audio_period = MAX_PERIOD;
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 @@ void amiga_mksound( unsigned int hz, unsigned int ticks )
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;