[ATrpms-users] alsa-kmdl-2.6.20-1.2925.fc6

Reza Naima reza at reza.net
Sat Mar 17 12:32:11 CET 2007


That happened to me too, and here's a patch to fix

---------------------------------------------------------------
--- alsa-kernel/core/rtctimer.c 2007-03-06 04:26:28.000000000 -0800
+++ /tmp/oi     2007-03-17 19:19:10.000000000 -0700
@@ -130,7 +130,7 @@
        struct snd_timer *timer;

        if (rtctimer_freq < 2 || rtctimer_freq > 8192 ||
-           !is_power_of_2(rtctimer_freq)) {
+       !(rtctimer_freq != 0 && ((rtctimer_freq & (rtctimer_freq - 1)) 
== 0))) {
                snd_printk(KERN_ERR "rtctimer: invalid frequency %d\n",
                           rtctimer_freq);
                return -EINVAL;
-------------------------------------------------------------------

Rather than trying to patch the rtctimer.c in the rpm to fix the 
problem, I copied the rtctimer.c file to my /tmp dir, patched it, and 
after I started the rpm build, I copied the patched version of the file 
over the one that rpmbuild had just untarred.  Compiled fine that way.  
I had to package stuff in RPMs at an old job, and I hated it... don't 
want to deal with any of that stuff..   Hope it helps.  :)

Reza


Axel Thimm wrote:
> On Sat, Mar 17, 2007 at 03:26:44AM -0700, Reza Naima wrote:
>   
>> I was wondering when to expect the alsa-kmdl to be compiled against the 
>> 2.6.20 kernel for fc6 (as of now, the latest one for fc6)?  I noticed 
>> that there are some .20 kernels in the fc7 section -- does this mean the 
>> have been discontinued for fc6?  I checked and fc7 isn't to be released 
>> till May.
>>
>> I tried building it myself from scratch, but at the end of it all, I 
>> never got it to work right.  Playing a sound resulted in numerous 
>> errors, even with a kernel module that seemed to load just fine. 
>>     
>
> The build fails for me on FC6 and FC5. I don't know why it works with
> FC7 and fails on the older ones.
>
>   CC [M]  /builddir/alsa-driver-1.0.14rc3/acore/rawmidi.o
>   CC [M]  /builddir/alsa-driver-1.0.14rc3/acore/rtctimer.o
> In file included from /builddir/alsa-driver-1.0.14rc3/acore/rtctimer.c:1:
> /builddir/alsa-driver-1.0.14rc3/acore/../alsa-kernel/core/rtctimer.c: In function 'rtctimer_init':
> /builddir/alsa-driver-1.0.14rc3/acore/../alsa-kernel/core/rtctimer.c:133: error: implicit declaration of function 'is_power_of_2'
> make[3]: *** [/builddir/alsa-driver-1.0.14rc3/acore/rtctimer.o] Error 1
> make[2]: *** [/builddir/alsa-driver-1.0.14rc3/acore] Error 2
> make[1]: *** [_module_/builddir/alsa-driver-1.0.14rc3] Error 2
>
>   



More information about the atrpms-users mailing list