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

* Re: [PATCH] au88x0 - do codec init more like windows does
  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
  1 sibling, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2005-02-23 11:00 UTC (permalink / raw)
  To: Jeff Muizelaar; +Cc: alsa-devel

At Tue, 22 Feb 2005 22:35:06 -0500,
Jeff Muizelaar wrote:
> 
> The following patch makes the codec init code act more like the windows
> code.
> 
> Signed-off-by: Jeff Muizelaar <jeff@infidigm.net>

Thanks, applied now to CVS.


Takashi


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

* Re: [PATCH] au88x0 - do codec init more like windows does
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Thierry Vignaud @ 2005-02-23 14:48 UTC (permalink / raw)
  To: Jeff Muizelaar; +Cc: alsa-devel

Jeff Muizelaar <jeff@infidigm.net> writes:

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

shouldn't the same comment be added to second occurence too?

aka sg like:
--- 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
@@ -2502,6 +2503,7 @@
 		hwwrite(vortex->mmio, VORTEX_CODEC_CTRL, 0x00e8);
 	}
 	for (i = 0; i < 32; i++) {
+		/* the windows driver writes -i, so we write -i */
 		hwwrite(vortex->mmio, (VORTEX_CODEC_CHN + (i << 2)), -i);
 		msleep(5);
 	}



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

* Re: [PATCH] au88x0 - do codec init more like windows does
  2005-02-23 14:48 ` Thierry Vignaud
@ 2005-02-23 15:25   ` Jeff Muizelaar
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff Muizelaar @ 2005-02-23 15:25 UTC (permalink / raw)
  To: Thierry Vignaud; +Cc: alsa-devel

On Wed, Feb 23, 2005 at 03:48:14PM +0100, Thierry Vignaud wrote:
> shouldn't the same comment be added to second occurence too?
> 

I thought about that, but the first occurence is close enough that saying
it twice isn't really of much value. However, if anyone cares enough to
submit a patch, I won't object.

-Jeff


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