Re: pas2 fix for 2.1.77

Steffen Grunewald (steffen@gfz-potsdam.de)
Mon, 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.