Update of /cvsroot/alsa/alsa-kernel/isa/ad1848
In directory sc8-pr-cvs1:/tmp/cvs-serv16310
Modified Files:
ad1848_lib.c
Log Message:
fixed thinkpad_twiddle(). it was handled as always on.
Index: ad1848_lib.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/isa/ad1848/ad1848_lib.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- ad1848_lib.c 8 Jul 2003 10:41:05 -0000 1.27
+++ ad1848_lib.c 8 Jul 2003 17:21:07 -0000 1.28
@@ -634,13 +634,13 @@
outb(0x1c, AD1848_THINKPAD_CTL_PORT1);
tmp = inb(AD1848_THINKPAD_CTL_PORT2);
- switch (on) {
- case 0: /* turn it off */
- tmp &= ~AD1848_THINKPAD_CS4248_ENABLE_BIT;
- default: /* turn it on */
- tmp |= AD1848_THINKPAD_CS4248_ENABLE_BIT;
- }
-
+ if (on)
+ /* turn it on */
+ tmp |= AD1848_THINKPAD_CS4248_ENABLE_BIT;
+ else
+ /* turn it off */
+ tmp &= ~AD1848_THINKPAD_CS4248_ENABLE_BIT;
+
outb(tmp, AD1848_THINKPAD_CTL_PORT2);
}
-------------------------------------------------------
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/bulletproofapps
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog