2003-03-31 16:06:15

by Osamu Tomita

[permalink] [raw]
Subject: [PATCH 2.5.66-ac1] Update PC-9800 support (1/3) keyboard driver

This is the update patch for NEC PC-9800 subarchitecture
against 2.5.66-ac1. (1/3)
Please apply.

Update keyboard driver for PC-98.
Bug fix, CAPS key send scancode like mechanical lock keyboard.

diff -Nru linux-2.5.66-ac1/drivers/input/keyboard/98kbd.c linux98-2.5.66-ac1/drivers/input/keyboard/98kbd.c
--- linux-2.5.66-ac1/drivers/input/keyboard/98kbd.c 2003-03-25 07:00:18.000000000 +0900
+++ linux98-2.5.66-ac1/drivers/input/keyboard/98kbd.c 2003-03-31 16:04:48.000000000 +0900
@@ -189,6 +189,13 @@
input_sync(&kbd98->dev);
return;

+ case KEY_CAPSLOCK:
+ input_report_key(&kbd98->dev, keycode, 1);
+ input_sync(&kbd98->dev);
+ input_report_key(&kbd98->dev, keycode, 0);
+ input_sync(&kbd98->dev);
+ return;
+
case KBD98_KEY_NULL:
return;

Regards,
Osamu Tomita


2003-03-31 16:12:42

by Osamu Tomita

[permalink] [raw]
Subject: [PATCH 2.5.66-ac1] Update PC-9800 support (2/3) ALSA sound driver

This is the update patch for NEC PC-9800 subarchitecture
against 2.5.66-ac1. (2/3)
Please apply.

Update ALSA sound driver for PC-98.
Fix DMA initialze failure on some sound cards.

diff -Nru linux-2.5.66-ac1/sound/isa/cs423x/pc98.c linux98-2.5.66-ac1/sound/isa/cs423x/pc98.c
--- linux-2.5.66-ac1/sound/isa/cs423x/pc98.c 2003-03-25 07:00:18.000000000 +0900
+++ linux98-2.5.66-ac1/sound/isa/cs423x/pc98.c 2003-03-30 22:06:51.000000000 +0900
@@ -3,6 +3,7 @@
* Copyright (c) by Jaroslav Kysela <[email protected]>
* Osamu Tomita <[email protected]>
* Takashi Iwai <[email protected]>
+ * Hideaki Okubo <[email protected]>
*
*
* This program is free software; you can redistribute it and/or modify
@@ -290,8 +291,13 @@
snd_printk(KERN_ERR IDENT ": Bad DMA %d\n", dma2[dev]);
return -EINVAL;
}
- if (dma1[dev] != dma2[dev] && dma2[dev] >= 0)
+
+ outb(dma1[dev], 0x29); /* dma1 boundary 64KB */
+ if (dma1[dev] != dma2[dev] && dma2[dev] >= 0) {
+ outb(0, 0x5f); /* wait */
+ outb(dma2[dev], 0x29); /* dma2 boundary 64KB */
intr_bits |= 0x04;
+ }

if (PC9800_SOUND_ID() == PC9800_SOUND_ID_118) {
/* Set up CanBe control registers. */

Regards,
Osamu Tomita

2003-03-31 16:15:04

by Osamu Tomita

[permalink] [raw]
Subject: [PATCH 2.5.66-ac1] Update PC-9800 support (3/3) floppy driver

This is the update patch for NEC PC-9800 subarchitecture
against 2.5.66-ac1. (3/3)
Please apply.

Update floppy driver for PC-98 to syncronize with floppy.c in 2.5.66.

diff -Nru linux-2.5.66-ac1/drivers/block/floppy98.c linux98-2.5.66-ac1/drivers/block/floppy98.c
--- linux-2.5.66-ac1/drivers/block/floppy98.c 2003-03-28 08:40:11.000000000 +0900
+++ linux98-2.5.66-ac1/drivers/block/floppy98.c 2003-03-25 09:13:24.000000000 +0900
@@ -3727,6 +3727,8 @@
name = default_drive_params[type].name;
allowed_drive_mask |= 1 << drive;
}
+ else
+ allowed_drive_mask &= ~(1 << drive);
} else {
params = &default_drive_params[0].params;
sprintf(temparea, "unknown type %d (usb?)", type);

Regards,
Osamu Tomita