Re: [Alsa-devel] 2.6.15-rc6: boot failure in saa7134-alsa.c



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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



Relevant Pages

  • Re: [PATCH 1/5] kbuild: default kernel image
    ... to not depend on the f/w to do anything aside from load us into memory) ... that'd just load up the kernel and let it go. ... IIRC, sparc* has always been just a vmlinux, ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Switch back to Real mode and then boot strap
    ... it is really good if I have to load another kernel. ... > the hard disk has been imaged with requested operating system by a user. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: [RFC][PATCH] new timeofday core subsystem (v. A3)
    ... > be unable to load the kernel or load an executable. ... self-modifying code. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: linux-2.4.22 released
    ... ALSA: is very easy to configure it outside the kernel tree, ... XFS: the XFS needs yes or yes to patch kernel, is used enough in many instalations, ... 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/ ...
    (Linux-Kernel)
  • Re: 2.6.4 : 100% CPU use on EIDE disk operarion, VIA chipset
    ... >> deadline elevator or increased readahead for your load. ... > If the processor and the kernel could do other things during wa, ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)