2.4.16 alsa 0.5.12 mixer ioctl problem
Yeah, they changed/broke (depending on your point of view) the file fs/proc/inode.c in the kernel source.
You're the third person to post about this problem.
There's a work-around for the problem. (I'm currently running ALSA 0.9beta9, so the file contents may not exactly match up): in the ALSA driver source, edit the file kernel/info.c. Look for the following lines
if (p) {
snd_info_device_entry_prepare(p,entry);
#ifdef LINUX_2_3
p->proc_fops = &snd_fops;
#else
p->ops = &snd_info_device_inode_operations;
#endif
} else {
up(&info_mutex);
snd_info_free_entry(entry);
return NULL;
}
}they should be near line 890 or so.
Next, comment out the line
p->proc_fops = &snd_fops;
Rebuild. Everything should work now.
Hope this helps.
-Alex
Alex Reisen wrote
Hi, all
just tried to compile the mentioned alsa drivers under 2.4.16. Mixer doesnt work, yes. It compiles, installs, loads. And
any program trying to open mixer (through libasound) get EINVAL.
All is compiled with gcc-2.95.3,
single CPU, with APIC (is any sense to enable it on uniprocessors?).
Does anybody know what to do about it?
-alex
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1