Linus Torvalds wrote:
On Tue, 20 Dec 2005, Adrian Bunk wrote:
Adrian, does it work if you change the "module_init()" in
sound/sound_core.c into a "fs_initcall()"?
No, this didn't work.
What did work was to leave sound/sound_core.c alone
Can you do try the other way again, with sound/core/sound.c fixed too?
A regular driver really _should_ use the regular "module_init()" sequence
(it is indeed just a compatibility define for "driver_init()").
The "late_init()" stuff is meant for stuff that literally runs after
everything else is up and running, it might want all drivers functional
(now, nobody really cares about a sound driver, so in that sense it would
be ok..)
Thanks,
Linus
This is an interesting problem actually.
alsa consists of a number of different modules.
They all load in the correct order if they are modules. The problem
comes when one compiles them into the kernel. They then load in the
wrong order and bad things happen, resulting in the recommendation that
alsa should always be modules.
In this basis, we should not have to change the code in alsa at all, but
instead change the kernel to understand the load order, even if compiled
into the kernel and not as modules.
I have no idea how to get the kernel to do this though. Any pointers?
James
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]