[PATCH] bt87x interrupt disable fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
In my experiment, sometimes, the bt878 will not send interrupt to interrupt controller after something happened.
(It appeared easily when bt878 shared IRQ with many other drivers)
 
I found there is something error in the interrupt handler of alsa-bt87x.
so, I wrote an patch for it.
(Ref : In the Bt878/879 document, section of interrupt status register says that " To clear the interrupts, read this register, then write the same data back.")
 
jjhuang
 
--- alsa-driver-1.0.11/alsa-kernel/pci/bt87x.c 2006-03-13 18:36:44.000000000 +0800
+++ alsa-driver-1.0.11-fix-bug/alsa-kernel/pci/bt87x.c 2006-09-18 17:44:43.000000000 +0800
@@ -277,7 +277,10 @@
  status = snd_bt87x_readl(chip, REG_INT_STAT);
  irq_status = status & chip->interrupt_mask;
  if (!irq_status)
-  return IRQ_NONE;
+          {
+            snd_bt87x_writel (chip, REG_INT_STAT, status);
+            return IRQ_NONE;
+          }
  snd_bt87x_writel(chip, REG_INT_STAT, irq_status);
 
  if (irq_status & ERROR_INTERRUPTS) {
 
 
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux