Update of /cvsroot/alsa/alsa-driver/pcmcia/pdaudiocf
In directory sc8-pr-cvs1:/tmp/cvs-serv16422
Modified Files:
pdaudiocf_irq.c
Log Message:
Fixed 32-bit mono
Index: pdaudiocf_irq.c
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/pcmcia/pdaudiocf/pdaudiocf_irq.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- pdaudiocf_irq.c 29 Jun 2003 14:56:19 -0000 1.1
+++ pdaudiocf_irq.c 15 Jul 2003 12:27:31 -0000 1.2
@@ -68,7 +68,7 @@
val1 = inw(rdp_port);
val2 = inw(rdp_port);
inw(rdp_port);
- *dst++ = (((val2 & 0xff) << 8) | ((u32)val1 << 16)) ^ xor;
+ *dst++ = ((((u32)val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor;
}
}
@@ -109,7 +109,7 @@
val1 = inw(rdp_port);
val2 = inw(rdp_port);
inw(rdp_port);
- *dst++ = swab32((((val2 & 0xff) << 8) | (val1 << 16)) ^ xor);
+ *dst++ = swab32((((val2 & 0xff) << 24) | ((u32)val1 << 8)) ^ xor);
}
}
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog