All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] possible fix for misbehaving hdsp
@ 2004-01-26 13:54 Thomas Charbonnel
  2004-01-26 14:48 ` Takashi Iwai
  2004-01-26 18:43 ` Tim Blechmann
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas Charbonnel @ 2004-01-26 13:54 UTC (permalink / raw)
  To: alsa-devel, Paul Davis, Tim Blechmann

[-- Attachment #1: Type: text/plain, Size: 120 bytes --]

Hi,

Could people experiencing problems with their hdsp (namely Tim and Paul) 
try the attached patch ?

Thanks,
Thomas

[-- Attachment #2: pci_latency_timer.patch --]
[-- Type: text/plain, Size: 762 bytes --]

--- hdsp.c.old	2004-01-26 14:34:48.000000000 +0100
+++ hdsp.c	2004-01-26 14:51:18.000000000 +0100
@@ -4982,6 +4982,16 @@
 	tasklet_init(&hdsp->midi_tasklet, hdsp_midi_tasklet, (unsigned long)hdsp);
 	
 	pci_read_config_word(hdsp->pci, PCI_CLASS_REVISION, &hdsp->firmware_rev);
+	
+	/* From Martin Björnsen :
+	    "It is important that the card's latency timer register in
+	    the PCI configuration space is set to a value much larger
+	    than 0 by the computer's BIOS or the driver.
+	    The windows driver always sets this 8 bit register [...]
+	    to its maximum 255 to avoid problems with some computers."
+	*/
+	pci_write_config_byte(hdsp->pci, PCI_LATENCY_TIMER, 0xFF);
+	
 	strcpy(card->driver, "H-DSP");
 	strcpy(card->mixername, "Xilinx FPGA");
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-01-26 18:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-26 13:54 [PATCH] possible fix for misbehaving hdsp Thomas Charbonnel
2004-01-26 14:48 ` Takashi Iwai
2004-01-26 14:54   ` Thomas Charbonnel
2004-01-26 15:09     ` Takashi Iwai
2004-01-26 18:43 ` Tim Blechmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.