At Fri, 28 Nov 2008 11:34:35 +0100, I wrote:
Hi,
since my original diet plan for HD-audio driver isn't going well as expected, I decided the traditional strategy: divide and conquer.
The below is the preliminary patch for modularizing snd-hda-intel. Now the codec-specific codes are split into several modules, and loaded automatically on demand.
The patch is against the latest sound.git tree: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6.git
It's also included in the recent sound-unstable tree, too (topic/hda-modularize branch): git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-unstable-2.6.git
A known issue is that "alsasound stop" may not work with this because of the explicit module refcount without dependency. But it's a script problem, basically. The similar problem must be there for snd-aoa, for example, too.
FYI, the hda-modularization patches are now merged to master branch on sound git tree. The snapshot tarball includes this change as well.
Please report if you get any build errors by this.
thanks,
Takashi