Skip to contentSkip to conversation

C-Port midi bug.

DISCUSSION Clemens Ladisch 2 participants 4 messages Apr 26, 2005 – Apr 27, 2005 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 1 line · Geoff Beasley

I have midi output OK but no input.

This is the same old well-known bug -- for some reason, the MIDI interrupt isn't enabled.

I think it may be possible to change the driver to use polling instead.

Regards,
Clemens

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

#2 lore raw
Quoted 8 lines · I wrote:
Quoted 1 line · Geoff Beasley

I have midi output OK but no input.

This is the same old well-known bug -- for some reason, the MIDI interrupt isn't enabled.

I think it may be possible to change the driver to use polling instead.

Please try this patch.

Signature · 75 lines
--- alsa-kernel/pci/ice1712/ice1712.h	11 Apr 2005 13:08:40 -0000	1.31
+++ alsa-kernel/pci/ice1712/ice1712.h	27 Apr 2005 14:51:11 -0000
@@ -490,7 +490,8 @@
 	char *driver;
 	int (*chip_init)(ice1712_t *);
 	int (*build_controls)(ice1712_t *);
-	unsigned int no_mpu401: 1;
+	u8 no_mpu401;
+	u8 no_mpu401_irq;
 	unsigned int eeprom_size;
 	unsigned char *eeprom_data;
 };
--- alsa-kernel/pci/ice1712/hoontech.c	27 Sep 2004 14:44:14 -0000	1.8
+++ alsa-kernel/pci/ice1712/hoontech.c	27 Apr 2005 14:51:11 -0000
@@ -302,24 +302,28 @@
 		.name = "Hoontech SoundTrack Audio DSP24",
 		.model = "dsp24",
 		.chip_init = snd_ice1712_hoontech_init,
+		.no_mpu401_irq = 1,
 	},
 	{
 		.subvendor = ICE1712_SUBDEVICE_STDSP24_VALUE,	/* a dummy id */
 		.name = "Hoontech SoundTrack Audio DSP24 Value",
 		.model = "dsp24_value",
 		.chip_init = snd_ice1712_value_init,
+		.no_mpu401_irq = 1,
 	},
 	{
 		.subvendor = ICE1712_SUBDEVICE_STDSP24_MEDIA7_1,
 		.name = "Hoontech STA DSP24 Media 7.1",
 		.model = "dsp24_71",
 		.chip_init = snd_ice1712_hoontech_init,
+		.no_mpu401_irq = 1,
 	},
 	{
 		.subvendor = ICE1712_SUBDEVICE_EVENT_EZ8,	/* a dummy id */
 		.name = "Event Electronics EZ8",
 		.model = "ez8",
 		.chip_init = snd_ice1712_ez8_init,
+		.no_mpu401_irq = 1,
 	},
 	{ } /* terminator */
 };
--- alsa-kernel/pci/ice1712/ice1712.c	11 Apr 2005 15:58:28 -0000	1.66
+++ alsa-kernel/pci/ice1712/ice1712.c	27 Apr 2005 14:51:11 -0000
@@ -2703,9 +2703,11 @@
 		}

 	if (! c->no_mpu401) {
+		int irq = c->no_mpu401_irq ? -1 : ice->irq;
+
 		if ((err = snd_mpu401_uart_new(card, 0, MPU401_HW_ICE1712,
 					       ICEREG(ice, MPU1_CTRL), 1,
-					       ice->irq, 0,
+					       irq, 0,
 					       &ice->rmidi[0])) < 0) {
 			snd_card_free(card);
 			return err;
@@ -2714,7 +2716,7 @@
 		if (ice->eeprom.data[ICE_EEP1_CODEC] & ICE1712_CFG_2xMPU401)
 			if ((err = snd_mpu401_uart_new(card, 1, MPU401_HW_ICE1712,
 						       ICEREG(ice, MPU2_CTRL), 1,
-						       ice->irq, 0,
+						       irq, 0,
 						       &ice->rmidi[1])) < 0) {
 				snd_card_free(card);
 				return err;



-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
#3 lore raw
Quoted 2 lines

Please try this patch.

Hi,

we probably used this patch for the c-port midi prob.
but we have no idea how to get this patch into our
2.6.11.7 kernel - all files are ending with .v, but the .v must be away for overwriting the old files....

Michael

tom@SiRiUS ~ $ cd alsa/alsa-kernel/
tom@SiRiUS ~/alsa/alsa-kernel $ patch -p1 < ../../c
tom@SiRiUS ~/alsa/alsa-kernel $ patch -p1 < ../../cport_midi_20050427.patch Get file pci/ice1712/ice1712.h from RCS with lock? [y] pci/ice1712/ice1712.h,v --> pci/ice1712/ice1712.h
revision 1.31 (locked)
done
patching file pci/ice1712/ice1712.h
Get file pci/ice1712/hoontech.c from RCS with lock? [y] pci/ice1712/hoontech.c,v --> pci/ice1712/hoontech.c
revision 1.8 (locked)
done
patching file pci/ice1712/hoontech.c
Get file pci/ice1712/ice1712.c from RCS with lock? [y] pci/ice1712/ice1712.c,v --> pci/ice1712/ice1712.c
revision 1.66 (locked)
done
patching file pci/ice1712/ice1712.c

-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix

#4 lore raw

Sorry, but this is now already solved

http://alsa.opensrc.org/index.php?page=AlsaBuild2.6

Sorry

Quoted 31 lines

Hi,

we probably used this patch for the c-port midi prob.
but we have no idea how to get this patch into our
2.6.11.7 kernel - all files are ending with .v, but the .v must be away for overwriting the old files....

Michael

tom@SiRiUS ~ $ cd alsa/alsa-kernel/
tom@SiRiUS ~/alsa/alsa-kernel $ patch -p1 < ../../c
tom@SiRiUS ~/alsa/alsa-kernel $ patch -p1 < ../../cport_midi_20050427.patch Get file pci/ice1712/ice1712.h from RCS with lock? [y] pci/ice1712/ice1712.h,v --> pci/ice1712/ice1712.h
revision 1.31 (locked)
done
patching file pci/ice1712/ice1712.h
Get file pci/ice1712/hoontech.c from RCS with lock? [y] pci/ice1712/hoontech.c,v --> pci/ice1712/hoontech.c
revision 1.8 (locked)
done
patching file pci/ice1712/hoontech.c
Get file pci/ice1712/ice1712.c from RCS with lock? [y] pci/ice1712/ice1712.c,v --> pci/ice1712/ice1712.c
revision 1.66 (locked)
done
patching file pci/ice1712/ice1712.c

Quoted 9 lines

-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix