patch-2.4.0-test12 linux/arch/m68k/amiga/amisound.c
Next file: linux/arch/m68k/amiga/chipram.c
Previous file: linux/arch/m68k/amiga/amiints.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Mon Nov 27 17:57:34 2000
- Orig file:
v2.4.0-test11/linux/arch/m68k/amiga/amisound.c
- Orig date:
Fri Jul 14 12:20:22 2000
diff -u --recursive --new-file v2.4.0-test11/linux/arch/m68k/amiga/amisound.c linux/arch/m68k/amiga/amisound.c
@@ -8,6 +8,7 @@
* for more details.
*/
+#include <linux/config.h>
#include <linux/sched.h>
#include <linux/timer.h>
#include <linux/init.h>
@@ -42,7 +43,9 @@
void __init amiga_init_sound(void)
{
- snd_data = amiga_chip_alloc(sizeof(sine_data), "Beep");
+ static struct resource beep_res = { "Beep" };
+
+ snd_data = amiga_chip_alloc_res(sizeof(sine_data), &beep_res);
if (!snd_data) {
printk (KERN_CRIT "amiga init_sound: failed to allocate chipmem\n");
return;
@@ -51,6 +54,11 @@
/* setup divisor */
clock_constant = (amiga_colorclock+DATA_SIZE/2)/DATA_SIZE;
+
+ /* without amifb, turn video off and enable high quality sound */
+#ifndef CONFIG_FB_AMIGA
+ amifb_video_off();
+#endif
}
static void nosound( unsigned long ignored );
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)