Skip to contentSkip to conversation

intel8x0m: 'semaphore is not ready' fix.

PATCH New Sasha Khapyorsky 1 participant 1 message Apr 5, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 intel8x0m: 'semaphore is not ready' fix.

Summary: Fix "semaphore is not ready" problem with snd-intel8x0m.

With some intel based ac97 modems codec access semaphore is not cleared after 0x54 AC97 register (GPIO_STATUS) reads. This may causes problems with newly applied modem mixer (Off-hook switch) and in other cases.

Index: alsa-kernel/pci/intel8x0m.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/intel8x0m.c,v retrieving revision 1.30

pci/intel8x0m.c +2 -0
diff -u -b -B -r1.30 intel8x0m.c
@@ -500,6 +500,8 @@
 			res = 0xffff;
 		}
 	}
+	if (reg == AC97_GPIO_STATUS)
+		iagetword(chip, 0); /* clear semaphore */
 	return res;
 }
 

-------------------------------------------------------
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