Port-mac68k archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ASC/EASC audio device



Hi,

On Mon, 20 Feb 2023 08:08:43 Robert Swindells wrote:
> 
> Tried it on a Q950, with the default USE_INTRS enabled.
> 
> I don't think that interrupts are setup correctly, I just got a stream
> of via2_noint(4) messages on the console when a beep was generated.


Please try the attached patch I'm hoping it will enable interrupts properly.

I'm unable to test it as my powerbook is my only NetBSD capable mac.

It also includes the addition of an audio device to conf/majors.mac68k

So please make the appropriate device nodes and hopefully you will have a 
fully functioning audio device.

mknod audio0 c 56 128
mknod sound0 c 56 0
mknod mixer0 c 56 16

Best regards,

Nat
--- mac68k/obio/ascaud.c	2023-02-27 05:42:12.941342098 +1100
+++ mac68k/obio/ascaud.c	2023-02-22 05:03:23.966920265 +1100
@@ -222,11 +222,7 @@ ascaudattach(device_t parent, device_t s
 	printf("\n");
 
 #ifdef USE_INTRS
-	if (mac68k_machine.aux_interrupts) {
-		intr_establish((int (*)(void *))ascaud_intr, sc, IPL_VM);
-	} else {
-		via2_register_irq(VIA2_ASC, ascaud_intr, sc);
-	}
+	via2_register_irq(VIA2_ASC, ascaud_intr, sc);
 	ascaud_intr_enable();
 #endif
 
diff -r dd49f08c0f10 sys/arch/mac68k/conf/majors.mac68k
--- mac68k/conf/majors.mac68k	Sun Oct 30 21:30:34 2022 +1100
+++ mac68k/conf/majors.mac68k	Mon Feb 27 05:48:39 2023 +1100
@@ -52,6 +52,7 @@
 device-major	wsfont		char 53			wsfont
 device-major	cpi		char 54			cpi
 device-major	sysmon		char 55			sysmon
+device-major	audio		char 56			audio
 
 #device-major	obsolete	char 98			obsolete (nsmb)
 


Home | Main Index | Thread Index | Old Index