Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#32261 - 06/06/2001 13:40 Voladj and 1.03 kernel?
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
I'm attemoting to get the Voladj patch applied to the 1.03 kernel, and have ran into a snag. It appears that most of my problems are in empeg/kernel/include/asm-arm/arch-sa1100/empeg.h. In the recent patch, this is added

#define EMPEG_DSP_GRAB_OUTPUT _IOR(EMPEG_DSP_MAGIC, 2, int)

The Voladj also tries to add a define line here. I tried this:

#define EMPEG_DSP_VOLADJ _IOW(EMPEG_DSP_MAGIC, 3, int)

but it didn't seem to work. Has anyone gotten the Voladj into 1.03?


Top
#32262 - 09/06/2001 07:05 Re: Voladj and 1.03 kernel? [Re: drakino]
rjlov
member

Registered: 16/12/1999
Posts: 188
Loc: Melbourne, Australia
Huh? I must have missed a patch. I'll look into this tomorrow.

It ought to work with the ioctl as 3, but you would have to change any clients that hard code the ioctl number, if you are actually using the ioctl.

Richard.


Top
#32263 - 09/06/2001 10:12 Re: Voladj and 1.03 kernel? [Re: rjlov]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Beyond your selector, was there anything else that referred to it by number specificially? I thought I searched but I might have missed something. (The problem with working on that type of thing between doing real work)


Top
#32264 - 09/06/2001 23:15 Re: Voladj and 1.03 kernel? [Re: drakino]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Beyond your selector, was there anything else that referred to it by number specificially?

Frank wrote a command-line Ioctl selector for Volad that's used in my "Picker and Voladj For Dummies" package. I don't totally understand how it works under the hood, perhaps that's related to what you're referring to?

___________
Tony Fabris
_________________________
Tony Fabris

Top
#32265 - 10/06/2001 02:03 Re: Voladj and 1.03 kernel? [Re: tfabris]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
I did recompile Frank's code with no problems. (Once I realised I had the old broken code first anyhow... .

I don't believe any other part of the voladj patch needed to be changed for the one adjustment I made to the ioctl number. But for some reason when I applied all the code to where it needed to go and compiled the kernel, the code was just not working. I didn't save all the kernel compilation output, so I don't know if I simply missed a non-critical error that would point me to what is wrong.

For now, it's probably just best to wait for the final version of 1.03.

(I guess thats one benefit to not being an alpha tester. No constant need to apply all the patches you use on a regular basis to new kernel code. I still need to go in and move all my custom stuff off the player partition though, so I can one day apply a new upgrade file. I would have imagined I would have learned this back from the beta days on the MK1.)


Top
#32266 - 10/06/2001 20:08 Re: Voladj and 1.03 kernel? [Re: drakino]
rjlov
member

Registered: 16/12/1999
Posts: 188
Loc: Melbourne, Australia
It turns out I did miss some kernel patches. It would be nice if the guys would release a full snapshot of their kernel source again sometime. It's easy to miss one of the patches, when you have to go all the way from 11d. :)

Did you make clean after fixing the voladj patch? I guess weird things could happen if the empeg_audio3 code was using the wrong ioctl numbers??? I'm a bit paranoid about that kind of thing, I make clean lots. I haven't been using 1.03 very much (the Mk1 uses my old head unit for the tuner, and I don't have a tuner for the Mk2). I've just built a v1.03beta4 kernel, and hopefully I'll get time to try it with 1.03beta6 today.

Richard.


Top
#32267 - 11/06/2001 14:23 Re: Voladj and 1.03 kernel? [Re: rjlov]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
I'll try it again later. I'm pretty sure I had untarred my patched but never compiled kernel backup, but who knows. I was still working out some kinks. I will download all the new kernel patches that have come out and try it again. One day I might upgrade to the 1.03 beta


Top
#32268 - 11/06/2001 19:51 Re: Voladj and 1.03 kernel? [Re: rjlov]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Wait, should voladj be patching empeg_audio2.c or empeg_audio3.c? That may be my problem...


Top
#32269 - 11/06/2001 20:20 Re: Voladj and 1.03 kernel? [Re: drakino]
rjlov
member

Registered: 16/12/1999
Posts: 188
Loc: Melbourne, Australia
I think that if there is an empeg_audio3.c, then the others are probably being ignored. I'd forgotten that I hadn't publicly published this patch yet. I'll send you a copy now, and put it with the other voladj stuff soon (a day or two). I haven't tested it on a Mk1 and I haven't actually used the different ioctl number, but at the very least the player functions, and the volume adjustment is working on my (tunerless) Mk2.

Richard.


Top
#32270 - 12/06/2001 00:14 Re: Voladj and 1.03 kernel? [Re: rjlov]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
I received it and will try it tomorrow. (I don't feel like trying to compile a kernel correctly this tired).

Thank you for all the work on this. I think I speak for many people here when I say thanks.


Top