[mythtv-users] Installing alsa-driver 1.0.23 - what did I miss?

Don Brett dlbrett at zoominternet.net
Tue Jul 27 03:44:22 UTC 2010


Jarod Wilson wrote:
> On Sun, Jul 25, 2010 at 11:47 PM, Don Brett <dlbrett at zoominternet.net> wrote:
>   
>> Jarod Wilson wrote:
>>     
>>> On Sun, Jul 25, 2010 at 3:40 PM, German Pulido <gapf2010 at gmail.com> wrote:
>>>
>>>       
>>>>> This distro is based on Fedora-12, but from what I've seen, Fedora-12
>>>>> provides alsa version 1.0.21.  I'd love to install the new one by RPM
>>>>> but
>>>>> haven't found it anywhere.  Was it on the original distribution CD's, or
>>>>> do
>>>>> you have a link to it?  I tried the rpm from ATrps, but it required the
>>>>> Fedora-13 kernel.
>>>>>
>>>>>           
>>>> Hi again!
>>>>
>>>> alsa 1.0.23 is in the official Fedora updates repository:
>>>>
>>>>         
>>> That's the *userspace* alsa bits. He needs alsa *kernel* drivers,
>>> which are typically included in the kernel package itself. The
>>> currently shipping Fedora 12 kernel has (apparently) alsa 1.0.21
>>> drivers in it. He's trying to build new alsa kernel drivers and get
>>> them to load in preference of the older kernel-provided ones.
>>>
>>> Don, if you run (as root) 'depmod -a', then 'modinfo snd', what does
>>> it give as a file path to snd.ko? (actually, it would be interesting
>>> to see what it is both before and after the depmod, particularly if it
>>> changes -- if it does, the depmod was all that was missing).
>>>
>>>
>>>       
>> Hi Jarod, it's been an interesting weekend.  The box is a bit twisted at the
>> moment; I've reloaded MD-12 from scratch, run all the alsa-1.0.23 updates
>> (lib, lib-devel, util), , then "yum update", which did about 257 packages.
>>  Interesting though, it's still reporting the alsa version as 1.0.23.
>>
>> [mythtv at vanson videos]$ cat /proc/asound/version
>> Advanced Linux Sound Architecture Driver Version 1.0.21.
>>
>> Here it is before and after:
>>
>> Before depmod -a:
>> [root at vanson ~]# modinfo snd
>> filename:
>> /lib/modules/2.6.32.16-141.fc12.i686/kernel/sound/core/snd.ko
>>
>>
>> After depmod -a:
>> [root at vanson ~]# modinfo snd
>> filename:
>> /lib/modules/2.6.32.16-141.fc12.i686/kernel/sound/core/snd.ko
>>
>> ...not sure this is what you meant, so I built and installed alsa-driver
>> from source again.  I've wiped the box and re-installed MD-12 since the last
>> build.
>>
>> ...then ran depmod:
>> [root at vanson alsa-driver-1.0.23]# modinfo snd
>> filename:
>> /lib/modules/2.6.32.16-141.fc12.i686/kernel/sound/acore/snd.ko
>>
>> ...then reboot and depmod -a again
>> [root at vanson ~]# modinfo snd
>> filename:
>> /lib/modules/2.6.32.16-141.fc12.i686/kernel/sound/acore/snd.ko
>>
>> ...now it sees the new version.
>> [root at vanson ~]# cat /proc/asound/version
>> Advanced Linux Sound Architecture Driver Version 1.0.23.
>> Compiled on Jul 25 2010 for kernel 2.6.32.16-141.fc12.i686 (SMP).
>> [root at vanson ~]#
>>
>>
>> Is it right?  Is depmod -a all I needed to do in the first place?
>>     
>
> I'm not quite sure. Your output before and after depmod is identical
> in both cases there. But the modinfo from the last two id different
> from the first two -- sound/core/snd.ko vs. sound/acore/snd.ko. Or is
> that a typo transcribing? (Transcribing is frowned upon, straight
> copy-n-paste preferred, to be sure we don't chase our tails due to a
> typo). :) But perhaps there was something different about the last
> build and install from source vs. prior runs that was actually the
> key, not the depmod. (Haven't built out-of-tree alsa in ages, no clue
> about all the possible gotchas).
>
>   
Well, I said the box was twisted, so I reloaded it again...got slightly 
different results.  Now it reports version 1.0.21 again.  The previous 
install had the modules in the new location (as a result of the 
update?), so the alsa build was installed in the right place 
(coincidentally).  This pass....it's still looking at the old location.

After MD-12 installation:
[root at vanson ~]# modinfo snd
filename:       /lib/modules/2.6.32.11-99.fc12.i686/kernel/sound/core/snd.ko

After depmod -a
[root at vanson ~]# depmod -a
[root at vanson ~]# modinfo snd
filename:       /lib/modules/2.6.32.11-99.fc12.i686/kernel/sound/core/snd.ko

...download driver source, unpack,
./configure --with-kernel=/usr/src/kernels/2.6.32.16-141.fc12.i686
make
make install
./snddevices

[root at vanson ~]# modinfo snd
filename:       /lib/modules/2.6.32.11-99.fc12.i686/kernel/sound/core/snd.ko

[root at vanson ~]# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.21.

After depmod -a:
[root at vanson ~]# modinfo snd
filename:       /lib/modules/2.6.32.11-99.fc12.i686/kernel/sound/core/snd.ko

[root at vanson ~]# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.21.

After reboot:
[root at vanson ~]# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.21.

[root at vanson ~]# modinfo snd
filename:       /lib/modules/2.6.32.11-99.fc12.i686/kernel/sound/core/snd.ko

After depmod -a:
[root at vanson ~]# modinfo snd
filename:       /lib/modules/2.6.32.11-99.fc12.i686/kernel/sound/core/snd.ko

[root at vanson ~]# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.21.

After shutdown -h now:
[root at vanson ~]# depmod -a
[root at vanson ~]# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.21.
[root at vanson ~]# modinfo snd
filename:       /lib/modules/2.6.32.11-99.fc12.i686/kernel/sound/core/snd.ko
[root at vanson ~]# /usr/src/alsa/alsa-driver-1.0.23/snddevices
Creating mixer?...done.
.....

Not sure what to try from here.








More information about the mythtv-users mailing list