Re: emu10k1_audio_open?? 2.5.2 problem

Nikita Gergel (fc@yauza.ru)
Tue, 15 Jan 2002 17:19:35 +0300


This is a multi-part message in MIME format.

--Multipart_Tue__15_Jan_2002_17:19:35_+0300_08352ac0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Tue, 15 Jan 2002 07:14:24 -0700
Frank Jacobberger <f1j@xmission.com> wrote:

> gcc -D__KERNEL__ -I/usr/src/linux-2.5.2/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer
> -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
> -march=i686 -DMODULE -DMODVERSIONS -include
> /usr/src/linux-2.5.2/include/linux/modversions.h -c -o audio.o audio.c
> audio.c: In function `emu10k1_audio_open':
> audio.c:1101: invalid operands to binary &
> make[3]: *** [audio.o] Error 1
> make[3]: Leaving directory `/usr/src/linux-2.5.2/drivers/sound/emu10k1'
> make[2]: *** [_modsubdir_emu10k1] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.5.2/drivers/sound'
> make[1]: *** [_modsubdir_sound] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.5.2/drivers'
> make: *** [_mod_drivers] Error 2
>
> What to do?

I've already contributed patch for 2.5 kernels to fix this. There are problems with 'MINOR' function.
Look in attach for the patch.

-- 
Nikita Gergel					System Administrator
Moscow, Russia					YAUZA-Telecom

--Multipart_Tue__15_Jan_2002_17:19:35_+0300_08352ac0 Content-Type: application/octet-stream; name="emu10k1.diff" Content-Disposition: attachment; filename="emu10k1.diff" Content-Transfer-Encoding: base64

ZGlmZiAtdSAtLXJlY3Vyc2l2ZSAtLW5ldy1maWxlIHYyLjUuMS9saW51eC9kcml2ZXJzL3NvdW5k L2VtdTEwazEvYXVkaW8uYyBsaW51eC9kcml2ZXJzL3NvdW5kL2VtdTEwazEvYXVkaW8uYwotLS0g djIuNS4xL2xpbnV4L2RyaXZlcnMvc291bmQvZW11MTBrMS9hdWRpby5jICAgICA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Wlub3IpCisJCWlmIChjYXJkLT5hYzk3LmRldl9taXhlciA9PSBlbXVfbWlub3Ip CiAJCQlnb3RvIG1hdGNoOwogCX0KIAo=

--Multipart_Tue__15_Jan_2002_17:19:35_+0300_08352ac0-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/