Browse Source

pcspkr - add device to makefile (but not module)

Kevin Lange 6 years ago
parent
commit
5fb5e07b8e
2 changed files with 2 additions and 10 deletions
  1. 1 1
      Makefile
  2. 1 9
      modules/pcspkr.c

+ 1 - 1
Makefile

@@ -72,7 +72,7 @@ EMU = qemu-system-i386
 EMUARGS  = -sdl -kernel toaruos-kernel -m 1024
 EMUARGS += -serial stdio -vga std
 EMUARGS += -hda toaruos-disk.img -k en-us -no-frame
-EMUARGS += -rtc base=localtime -net nic,model=rtl8139 -net user
+EMUARGS += -rtc base=localtime -net nic,model=rtl8139 -net user -soundhw pcspk
 EMUARGS += $(BOOT_MODULES_X)
 EMUKVM   = -enable-kvm
 

+ 1 - 9
modules/pcspkr.c

@@ -46,14 +46,6 @@ DEFINE_SHELL_FUNCTION(beep, "Beep.") {
 	note(20, 12445);
 	note(20, 10465);
 	note(20, 10465);
-#if 0
-		note(10, 1000);
-		note(10, 800);
-		note(10, 600);
-		note(10, 400);
-		note(10, 200);
-	}
-#endif
 
 	return 0;
 }
@@ -67,5 +59,5 @@ static int fini(void) {
 	return 0;
 }
 
-MODULE_DEF(crash, init, fini);
+MODULE_DEF(pcspkr, init, fini);
 MODULE_DEPENDS(debugshell);