FS#6614 - iRiver H120 Peak Meter Displayed Incorrectly

Attached to Project: Rockbox
Opened by Riley McNiff (rmcniff) - Friday, 02 February 2007, 19:35 GMT
Last edited by Alexander Spyridakis (xaviergr) - Tuesday, 31 July 2007, 09:33 GMT
Task Type Bugs
Category Themes
Status Closed
Assigned To No-one
Operating System Iriver H100 series
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Under certain circumstances the peak meter on the WPS or the Recording screen will be incorrectly displayed as solid full bars. This is a problem that I have been able to reproduce as follows:

Set the theme to Marquee (because it has peak meter displayed on the WPS during playback)

On the main menu navigate to the peak meter settings menu:
General settings -> Display -> Peak Meter

Set the scale to Linear (%)
Set the scale to Logarithmic (dB)
This causes both the minimum and maximum of range to be set to 0 dB, but don't change them yet.
The peak meter is now displayed as solid bars
With both as zero this should really show two permanently empty bars unless it clips

Next, set the minimum of range to another lower value such as -60
This should make the peak meter display normally, bouncing between -60 and 0 dB, but they remain two solid bars
To verify, return to the WPS screen and the peak meter is still displayed as two solid bars

The problem eventually seems to correct itself after 10-15 minutes, but I have not found a way to return it to a normal state through the settings. Rebooting seems to be the only way so far that I've found to correct it.
This task depends upon

Closed by  Alexander Spyridakis (xaviergr)
Tuesday, 31 July 2007, 09:33 GMT
Reason for closing:  Fixed
Comment by Václav Brožík (pabouk) - Wednesday, 07 February 2007, 13:43 GMT
I confirm the bug on iriver H120 with firmware r12224-070207.
Comment by Michael Sevakis (MikeS) - Wednesday, 07 February 2007, 17:07 GMT
So this doesn't appear to be a problem with the low level calculation then which is the only code in that I ever worked on? Will try out reproducing still to be certain.
Comment by Michael Sevakis (MikeS) - Friday, 09 February 2007, 00:30 GMT
With the max range at 0db, -55db for the min seems to be the threshold for setting mix/max to the same level. It's higher if the max is lower but not a linear sum...hmm. Why it should correct itself at all is even stranger.
Comment by Peter D'Hoye (petur) - Sunday, 24 June 2007, 00:24 GMT
related fix committed: switching between lin/log scales should no longer result in min/max being both zero
Comment by Alexander Spyridakis (xaviergr) - Tuesday, 31 July 2007, 09:32 GMT
As Peter said it is now fixed, I can no longer reproduce it.