Dave Dillow wrote: > The sis7019 driver uses __ffs(), which is available in 2.6 kernels, but > not in most earlier ones. This patches the driver to use a local version > assembly version, as the hardware is SiS 55x only (i486/Pentium-ish). > > ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) > ++static inline unsigned long sis_ffs(unsigned long word) > ++{ > ++ __asm__("bsfl %1,%0" > ++ :"=r" (word) > ++ :"rm" (word)); > ++ return word; > ++} > ++#endif This should go into alsa-driver/include/adriver.h. Regards, Clemens _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel