* [ALSA - driver 0001588]: alsa1.0.10 driver compilation error in adriver.h
@ 2005-11-23 7:15 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2005-11-23 7:15 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1588>
======================================================================
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-23-2005 08:15 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
======================================================================
----------------------------------------------------------------------
alanmann - 11-22-05 20:01
----------------------------------------------------------------------
Sorry, I meant 2.4.21-99 kernel! Suse 9.0.
But anyway the 1.0.10 code section above is faulty surely?
Changing the syntax removes compiler problem.
----------------------------------------------------------------------
Clemens Ladisch - 11-23-05 08:15
----------------------------------------------------------------------
The code that doesn't detect the HAVE_VARIABLE_HZ symbol is faulty.
Could you grep the kernel headers for it to see where it's defined?
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
11-22-05 17:28 Clemens LadischNote Added: 0006788
11-22-05 18:06 alanmann Note Added: 0006789
11-22-05 18:08 alanmann Note Edited: 0006789
11-22-05 20:01 alanmann Note Edited: 0006789
11-23-05 08:15 Clemens LadischNote Added: 0006808
======================================================================
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 8+ messages in thread* [ALSA - driver 0001588]: alsa1.0.10 driver compilation error in adriver.h
@ 2005-12-02 13:52 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2005-12-02 13:52 UTC (permalink / raw)
To: alsa-devel
The following issue has been RESOLVED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1588>
======================================================================
Reported By: alanmann
Assigned To: perex
======================================================================
Project: ALSA - driver
Issue ID: 1588
Category: 0_compilation problem_!!!
Reproducibility: always
Severity: major
Priority: normal
Status: resolved
Distribution:
Kernel Version: 2.4.99
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 11-22-2005 15:30 CET
Last Modified: 12-02-2005 14:52 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
======================================================================
----------------------------------------------------------------------
alanmann - 11-24-05 23:43
----------------------------------------------------------------------
The patch seemed to do the trick, thanks. Compile successful.
----------------------------------------------------------------------
tiwai - 12-02-05 14:52
----------------------------------------------------------------------
Fixed on CVS.
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
11-22-05 17:28 Clemens LadischNote Added: 0006788
11-22-05 18:06 alanmann Note Added: 0006789
11-22-05 18:08 alanmann Note Edited: 0006789
11-22-05 20:01 alanmann Note Edited: 0006789
11-23-05 08:15 Clemens LadischNote Added: 0006808
11-23-05 12:52 alanmann Note Added: 0006809
11-23-05 17:20 tiwai Note Added: 0006812
11-23-05 17:20 tiwai File Added: suse-2.4-fix.diff
11-24-05 23:43 alanmann Note Added: 0006846
12-02-05 14:52 tiwai Status assigned => resolved
12-02-05 14:52 tiwai Resolution open => fixed
12-02-05 14:52 tiwai Note Added: 0006896
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread* [ALSA - driver 0001588]: alsa1.0.10 driver compilation error in adriver.h
@ 2005-11-24 22:43 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2005-11-24 22:43 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1588>
======================================================================
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-24-2005 23:43 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
======================================================================
----------------------------------------------------------------------
tiwai - 11-23-05 17:20
----------------------------------------------------------------------
The older version caused errors on other kernels without variable HZ.
The uploaded patch should fix the problem.
----------------------------------------------------------------------
alanmann - 11-24-05 23:43
----------------------------------------------------------------------
The patch seemed to do the trick, thanks. Compile successful.
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
11-22-05 17:28 Clemens LadischNote Added: 0006788
11-22-05 18:06 alanmann Note Added: 0006789
11-22-05 18:08 alanmann Note Edited: 0006789
11-22-05 20:01 alanmann Note Edited: 0006789
11-23-05 08:15 Clemens LadischNote Added: 0006808
11-23-05 12:52 alanmann Note Added: 0006809
11-23-05 17:20 tiwai Note Added: 0006812
11-23-05 17:20 tiwai File Added: suse-2.4-fix.diff
11-24-05 23:43 alanmann Note Added: 0006846
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread* [ALSA - driver 0001588]: alsa1.0.10 driver compilation error in adriver.h
@ 2005-11-23 16:20 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2005-11-23 16:20 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1588>
======================================================================
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-23-2005 17:20 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
======================================================================
----------------------------------------------------------------------
alanmann - 11-23-05 12:52
----------------------------------------------------------------------
Forgive me if I'm mistaken, but I think this suggestion is going in the
wrong direction. Make fails with syntax errors, no mention of
HAVE_VARIABLE_HZ, rather complaints about '('s; surely brakets are missing
in the first #if.. line in the above section, and '#' preceeds some lines
and not other similar ones?
----------------------------------------------------------------------
tiwai - 11-23-05 17:20
----------------------------------------------------------------------
The older version caused errors on other kernels without variable HZ.
The uploaded patch should fix the problem.
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
11-22-05 17:28 Clemens LadischNote Added: 0006788
11-22-05 18:06 alanmann Note Added: 0006789
11-22-05 18:08 alanmann Note Edited: 0006789
11-22-05 20:01 alanmann Note Edited: 0006789
11-23-05 08:15 Clemens LadischNote Added: 0006808
11-23-05 12:52 alanmann Note Added: 0006809
11-23-05 17:20 tiwai Note Added: 0006812
======================================================================
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread* [ALSA - driver 0001588]: alsa1.0.10 driver compilation error in adriver.h
@ 2005-11-23 11:52 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2005-11-23 11:52 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1588>
======================================================================
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-23-2005 12:52 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
======================================================================
----------------------------------------------------------------------
Clemens Ladisch - 11-23-05 08:15
----------------------------------------------------------------------
The code that doesn't detect the HAVE_VARIABLE_HZ symbol is faulty.
Could you grep the kernel headers for it to see where it's defined?
----------------------------------------------------------------------
alanmann - 11-23-05 12:52
----------------------------------------------------------------------
Forgive me if I'm mistaken, but I think this suggestion is going in the
wrong direction. Make fails with syntax errors, no mention of
HAVE_VARIABLE_HZ, rather complaints about '('s; surely brakets are missing
in the first #if.. line in the above section, and '#' preceeds some lines
and not other similar ones?
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
11-22-05 17:28 Clemens LadischNote Added: 0006788
11-22-05 18:06 alanmann Note Added: 0006789
11-22-05 18:08 alanmann Note Edited: 0006789
11-22-05 20:01 alanmann Note Edited: 0006789
11-23-05 08:15 Clemens LadischNote Added: 0006808
11-23-05 12:52 alanmann Note Added: 0006809
======================================================================
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 8+ messages in thread* [ALSA - driver 0001588]: alsa1.0.10 driver compilation error in adriver.h
@ 2005-11-22 17:06 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2005-11-22 17:06 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1588>
======================================================================
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 18:06 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
======================================================================
----------------------------------------------------------------------
Clemens Ladisch - 11-22-05 17:28
----------------------------------------------------------------------
Kernel 2.4.99 doesn't exist. Which distribution are you using?
----------------------------------------------------------------------
alanmann - 11-22-05 18:06
----------------------------------------------------------------------
Sorry, I meant 2.4.21-99 kernel!
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
11-22-05 17:28 Clemens LadischNote Added: 0006788
11-22-05 18:06 alanmann Note Added: 0006789
======================================================================
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 8+ messages in thread* [ALSA - driver 0001588]: alsa1.0.10 driver compilation error in adriver.h
@ 2005-11-22 16:28 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2005-11-22 16:28 UTC (permalink / raw)
To: alsa-devel
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1588>
======================================================================
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 17:28 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
======================================================================
----------------------------------------------------------------------
Clemens Ladisch - 11-22-05 17:28
----------------------------------------------------------------------
Kernel 2.4.99 doesn't exist. Which distribution are you using?
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
11-22-05 17:28 Clemens LadischNote Added: 0006788
======================================================================
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 8+ messages in thread* [ALSA - driver 0001588]: alsa1.0.10 driver compilation error in adriver.h
@ 2005-11-22 14:30 bugtrack
0 siblings, 0 replies; 8+ messages in thread
From: bugtrack @ 2005-11-22 14:30 UTC (permalink / raw)
To: alsa-devel
The following issue has been SUBMITTED.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1588>
======================================================================
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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-12-02 13:52 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-23 7:15 [ALSA - driver 0001588]: alsa1.0.10 driver compilation error in adriver.h bugtrack
-- strict thread matches above, loose matches on Subject: below --
2005-12-02 13:52 bugtrack
2005-11-24 22:43 bugtrack
2005-11-23 16:20 bugtrack
2005-11-23 11:52 bugtrack
2005-11-22 17:06 bugtrack
2005-11-22 16:28 bugtrack
2005-11-22 14:30 bugtrack
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.