Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Charbonnel <thomas@undata.org>
To: alsa-devel@lists.sourceforge.net,
	Paul Davis <paul@linuxaudiosystems.com>,
	Tim Blechmann <TimBlechmann@gmx.net>
Subject: [PATCH] possible fix for misbehaving hdsp
Date: Mon, 26 Jan 2004 14:54:42 +0100	[thread overview]
Message-ID: <40151C22.6020005@undata.org> (raw)

[-- 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");
 

             reply	other threads:[~2004-01-26 13:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-26 13:54 Thomas Charbonnel [this message]
2004-01-26 14:48 ` [PATCH] possible fix for misbehaving hdsp Takashi Iwai
2004-01-26 14:54   ` Thomas Charbonnel
2004-01-26 15:09     ` Takashi Iwai
2004-01-26 18:43 ` Tim Blechmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40151C22.6020005@undata.org \
    --to=thomas@undata.org \
    --cc=TimBlechmann@gmx.net \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=paul@linuxaudiosystems.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox