[alsa-devel] ALSA with Ubuntu 8.04
This just an FYI
In Ubuntu 8.04, ubuntu has packaged alsa-drivers including some out of tree drivers in a separate package: linux-ubuntu-modules-$kernelver
This gets installed in /lib/modules/$kernelver/ubuntu/sound
The only things installed in /lib/modules/$kernelver/sound are soundcore.ko and ac97_bus.ko
However, when you do a default "make install" from alsa-driver source, the modules get installed in /lib/modules/$kernelver/kernel/sound
So, now there are 2 copies of the drivers in different places.
I have taken to removing (moving away to say /root) /lib/modules/$kernelver/ubuntu/sound to avoid any confusion and some odd module versioning problems that I was having.
regards
Eliot.
Actually, the best practice is to install your new drivers in /lib/modules/`uname -r`/updates/sound. depmod will automatically detect these as newer than the other modules. This is how I test new alsa builds on my test platforms.
The sound modules in linux-ubuntu-modules are modified from the stock version of alsa that comes with the kernel in Ubuntu. The patches are NOT for release into upstream alsa, as they have already been submitted and are in 1.0.16 and later (I know, I wrote them).
Tobin Davis
On Thu, 2008-06-26 at 11:47 +1200, Eliot Blennerhassett wrote:
This just an FYI
In Ubuntu 8.04, ubuntu has packaged alsa-drivers including some out of tree drivers in a separate package: linux-ubuntu-modules-$kernelver
This gets installed in /lib/modules/$kernelver/ubuntu/sound
The only things installed in /lib/modules/$kernelver/sound are soundcore.ko and ac97_bus.ko
However, when you do a default "make install" from alsa-driver source, the modules get installed in /lib/modules/$kernelver/kernel/sound
So, now there are 2 copies of the drivers in different places.
I have taken to removing (moving away to say /root) /lib/modules/$kernelver/ubuntu/sound to avoid any confusion and some odd module versioning problems that I was having.
regards
Eliot.
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
At Thu, 26 Jun 2008 11:47:13 +1200, Eliot Blennerhassett wrote:
This just an FYI
In Ubuntu 8.04, ubuntu has packaged alsa-drivers including some out of tree drivers in a separate package: linux-ubuntu-modules-$kernelver
This gets installed in /lib/modules/$kernelver/ubuntu/sound
The only things installed in /lib/modules/$kernelver/sound are soundcore.ko and ac97_bus.ko
However, when you do a default "make install" from alsa-driver source, the modules get installed in /lib/modules/$kernelver/kernel/sound
So, now there are 2 copies of the drivers in different places.
I have taken to removing (moving away to say /root) /lib/modules/$kernelver/ubuntu/sound to avoid any confusion and some odd module versioning problems that I was having.
FYI, the installation path can be specified via --with-moddir configure option, too.
Takashi
I happened to be in this territory a couple of nights ago... so here's a summary of what I learned.
The priority order for the case of multiple modules with the same name may be controlled by modifying /etc/depmod.conf .
As Takashi says, and quoting from `man depmod.conf`:
By default, depmod will give a higher priority to a directory with the name updates using this built-in search string: "updates built-in" but more complex arrangements are possible and are used in several popular distributions.
Other directories may be given priority by specifying your own search line as follows: in /etc/depmod.conf ------------------------- search my-custom-drivers updates built-in -------------------------
After installing a new module (and perhaps manually running depmod), you can check which module will actually be used with grep my-module-name /lib/modules/`uname -r`/modules.dep
This takes out all the guesswork and makes success a 'sure thing' :-) .
Ben Stanley.
On Thu, 2008-06-26 at 11:47 +1200, Eliot Blennerhassett wrote:
This just an FYI
In Ubuntu 8.04, ubuntu has packaged alsa-drivers including some out of tree drivers in a separate package: linux-ubuntu-modules-$kernelver
This gets installed in /lib/modules/$kernelver/ubuntu/sound
The only things installed in /lib/modules/$kernelver/sound are soundcore.ko and ac97_bus.ko
However, when you do a default "make install" from alsa-driver source, the modules get installed in /lib/modules/$kernelver/kernel/sound
So, now there are 2 copies of the drivers in different places.
I have taken to removing (moving away to say /root) /lib/modules/$kernelver/ubuntu/sound to avoid any confusion and some odd module versioning problems that I was having.
regards
Eliot.
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
participants (4)
-
Ben Stanley
-
Eliot Blennerhassett
-
Takashi Iwai
-
Tobin Davis