From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugtrack@alsa-project.org Subject: [ALSA - driver 0001588]: alsa1.0.10 driver compilation error in adriver.h Date: Tue, 22 Nov 2005 15:30:26 +0100 Message-ID: <720e77562e2f74c71a6b4046ce6dfbd5@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [85.132.177.35]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id 62ED9197 for ; Tue, 22 Nov 2005 15:30:26 +0100 (MET) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org The following issue has been SUBMITTED. ====================================================================== ====================================================================== Reported By: alanmann Assigned To: perex ====================================================================== Project: ALSA - driver Issue ID: 1588 Category: 0_compilation problem_!!! Reproducibility: always Severity: major Priority: normal Status: assigned Distribution: Kernel Version: 2.4.99 ====================================================================== Date Submitted: 11-22-2005 15:30 CET Last Modified: 11-22-2005 15:30 CET ====================================================================== Summary: alsa1.0.10 driver compilation error in adriver.h Description: Mainstream alsa1.0.10 downloaded this morning. Make fails in adriver.h lines 675-713 (added since 1.0.9b); the syntax is wrong? Has this already been noticed and fixed? The section is below:- static inline unsigned int jiffies_to_msecs(const unsigned long j) { #ifndef HAVE_VARIABLE_HZ #if HZ <= 1000 && !(1000 % HZ) return (1000 / HZ) * j; #elif HZ > 1000 && !(HZ % 1000) return (j + (HZ / 1000) - 1)/(HZ / 1000); #else return (j * 1000) / HZ; #endif #else if (HZ <= 1000 && !(1000 % HZ)) return (1000 / HZ) * j; else if (HZ > 1000 && !(HZ % 1000)) return (j + (HZ / 1000) - 1)/(HZ / 1000); else return (j * 1000) / HZ; #endif } static inline unsigned long msecs_to_jiffies(const unsigned int m) { if (m > jiffies_to_msecs(MAX_JIFFY_OFFSET)) return MAX_JIFFY_OFFSET; #ifndef HAVE_VARIABLE_HZ #if HZ <= 1000 && !(1000 % HZ) return (m + (1000 / HZ) - 1) / (1000 / HZ); #elif HZ > 1000 && !(HZ % 1000) return m * (HZ / 1000); #else return (m * HZ + 999) / 1000; #endif #else if (HZ <= 1000 && !(1000 % HZ)) return (m + (1000 / HZ) - 1) / (1000 / HZ); else if (HZ > 1000 && !(HZ % 1000)) return m * (HZ / 1000); else return (m * HZ + 999) / 1000; #endif ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 11-22-05 15:30 alanmann New Issue 11-22-05 15:30 alanmann Kernel Version => 2.4.99 ====================================================================== ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click