All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] au88x0 - do codec init more like windows does
@ 2005-02-23  3:35 Jeff Muizelaar
  2005-02-23 11:00 ` Takashi Iwai
  2005-02-23 14:48 ` Thierry Vignaud
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Muizelaar @ 2005-02-23  3:35 UTC (permalink / raw)
  To: alsa-devel

The following patch makes the codec init code act more like the windows
code.

Signed-off-by: Jeff Muizelaar <jeff@infidigm.net>


Index: pci/au88x0/au88x0_core.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/au88x0/au88x0_core.c,v
retrieving revision 1.10
diff -u -r1.10 au88x0_core.c
--- pci/au88x0/au88x0_core.c	3 Jan 2005 12:08:24 -0000	1.10
+++ pci/au88x0/au88x0_core.c	23 Feb 2005 03:30:43 -0000
@@ -2480,7 +2480,8 @@
 	int i;
 
 	for (i = 0; i < 32; i++) {
-		hwwrite(vortex->mmio, (VORTEX_CODEC_CHN + (i << 2)), 0);
+		/* the windows driver writes -i, so we write -i */
+		hwwrite(vortex->mmio, (VORTEX_CODEC_CHN + (i << 2)), -i);
 		msleep(2);
 	}
 	if (0) {
@@ -2502,7 +2503,7 @@
 		hwwrite(vortex->mmio, VORTEX_CODEC_CTRL, 0x00e8);
 	}
 	for (i = 0; i < 32; i++) {
-		hwwrite(vortex->mmio, (VORTEX_CODEC_CHN + (i << 2)), 0);
+		hwwrite(vortex->mmio, (VORTEX_CODEC_CHN + (i << 2)), -i);
 		msleep(5);
 	}
 	hwwrite(vortex->mmio, VORTEX_CODEC_CTRL, 0xe8);


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

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

end of thread, other threads:[~2005-02-23 15:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-23  3:35 [PATCH] au88x0 - do codec init more like windows does Jeff Muizelaar
2005-02-23 11:00 ` Takashi Iwai
2005-02-23 14:48 ` Thierry Vignaud
2005-02-23 15:25   ` Jeff Muizelaar

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.