lkml.org 
[lkml]   [1998]   [Jan]   [5]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromSteffen Grunewald <>
SubjectRe: pas2 fix for 2.1.77
DateMon, 5 Jan 1998 09:27:40 +0100 (MET)
"Michael Harnois writes"
|> 
|> This should fix the failure of pas2_mixer.c to compile ...
|> 
|> --- linux/drivers/sound/pas2_mixer.c.orig	Sun Jan  4 13:45:35 1998
|> +++ linux/drivers/sound/pas2_mixer.c	Sun Jan  4 13:46:36 1998
|> @@ -260,7 +260,7 @@
|>  		if (__get_user(level, (int *)arg))
|>  			return -EFAULT;
|>  		if (level == -1)	/* Return current settings */
|> -			level = = !(pas_read(0x0B8A) & 0x20);
|> +			level == !(pas_read(0x0B8A) & 0x20);
It might compile, but: does it really make sense ?????
Maybe I'm lacking of modern C knowledge (I'm still a K&R guy)...
|>  		else {
|>  			if (level)
|>  				pas_write(pas_read(0x0B8A) & (~0x20), 0x0B8A);

-- 
name  : Steffen Grunewald         | disclaimer: My opinions are mine.
email : steffen(at)gfz-potsdam.de |        You can rent them. Ask me.
snail : GeoForschungsZentrum Potsdam, PB 2.5, Albert-Einstein-Straße,
	Telegrafenberg Haus G, D-14473 Potsdam, Germany
tel   : (+49)-331-288 1245        | quotation (Pablo Picasso):
fax   : (+49)-331-288 1266        |            Computers are useless.
URL   : http://www.gfz-potsdam.de |   They only can give you answers.
\
 
 \ /
  Last update: 2005-03-22 12:41    [from the cache]
©2003-2008