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

From: Adrian Bunk
Date: Tue Dec 20 2005 - 14:13:10 EST


On Tue, Dec 20, 2005 at 10:24:55AM -0800, Linus Torvalds wrote:
>
>
> On Tue, 20 Dec 2005, Sergey Vlasov wrote:
> >
> > saa7134-alsa is trying to initialize before the ALSA core has initialized.
> > Probably no one has tested CONFIG_VIDEO_SAA7134=y.
>
> 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 and make the
module_init() in drivers/media/video/saa7134/saa7134-alsa.c a
late_initcall() (plus disabling building of saa7134-oss.o because
otherwise saa7134-alsa.o wouldn't do anything).

> That should make sure that the sound core gets to initialize before normal
> drivers do.
>
> Linus

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

-
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/