Click to See Complete Forum and Search --> : trying to patch i810_audio diff file


McQuaid
11-28-2002, 01:33 PM
I'm trying to patch this diff file listed here by Alan cox:

deja post (http://groups.google.com/groups?selm=1036971426.1099.33.camel%40irongate.sw ansea.linux.org.uk&oe=UTF-8&output=gplain)

I modified the 2nd line to point to where my source is.
I tried patch </path/i810_audio.c while in the dir of my source.

But I get 1 out of 48 hunk errors:

Hunk #27 FAILED at 2689
patch unexpectedly ends in middle of line

I thought it might be formatting issue so i tried patch with the -l switch but didn't help.

Here is the section 2689 from the diff file:

@@ -2689,7 +2899,7 @@

/* Don't attempt to get eid until powerup is complete */
eid = i810_ac97_get(codec, AC97_EXTENDED_ID);
-
+
if(eid==0xFFFFFF)
{
printk(KERN_WARNING "i810_audio: no codec attached ?\n");


I've just installed mdk 9 a week ago and this is probably more advanced stuff that I shouldn't be mucking with yet, but from reading other people's posts, I'm pretty sure this will solve my sound problems.

I didn't like getting this diff file from a newsgroup post, but couldn't find it anywhere else. Does Alan Cox post diff files anywhere else? I couldn't find it at www.kernel.org.

I just want to get sound working so if someone could help me fix this file it would be great. Or would there be a way to dump the mandrake kernel in favour of the alan cox kernel? As this patch has been part of the AC kernel for some time. If I could do this would alot of Mdk stuff break?

Also once I patch this file I"m not sure if I have all the steps after that in order, So if anyone can help there as well it would be great.

mdwatts
11-28-2002, 07:40 PM
http://www.kernel.org/pub/linux/kernel/people/ for patches etc. submitted by the kernel developers.

What problems are you having with your soundcard? Are you sure the patch will fix the problem?

You might be better off downloading and installing the 2.4.19 kernel source, then apply the 2.4.20-rc4 and then AC's 2.4.20-rc4-ac1 patch.

McQuaid
11-28-2002, 11:27 PM
Thanks for the response.

I've read some guides but I am still finding it confusing to recompile.

Some guides I've read don't mention when I would apply the AC patches for example.

And I've read some stuff (like supermount) aren't in the standard kernel. I'm wondering what else might break.

And, I'm pretty sure this would solve my sound problems.

I get an arts server error: sound error cpu overload error.

I've made sure all the volumes are maxed in the mixer.

I've gone over my modules.conf with other people and they have told me they are set up fine.

Right now programs like xmms and mpg123 play mp3s with no audio and whip through songs. A 3 min song is done in about 10 seconds.

I read another post where a person had my exact same problem with the same hardware and this patch fixed it.

This is my 3rd crack at linux and there has always been some critical stuff stopping me from using it and I just ended up drifting back to windows. I hope I don't end up doing that again, but its difficult some times.

mdwatts
11-29-2002, 06:57 AM
I've had the same 'arts server error: sound error cpu overload error' on occasion though with different soundcards.

It's been a while since I've had the overload error and I can't remember what I did to fix it. I believe I just stopped artsd and restarted with something like

artsd -F 10 -S 4096 &

How are you applying the patch?

cd /usr/src/linux

patch -p1 < i810_audio.c

The patch manpage (man patch) may also help.