Rockbox

Tasklist

FS#8208 - Distortion on some tracks

Attached to Project: Rockbox
Opened by Bertrik Sikken (bertrik) - Wednesday, 21 November 2007, 20:49 GMT
Last edited by Bertrik Sikken (bertrik) - Sunday, 10 October 2010, 09:23 GMT
Task Type Bugs
Category Music playback
Status Closed
Assigned To No-one
Operating System Sansa e200
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I'm experiencing some kind of crackling effect on some tracks.
The same track sounds clean on the PC and on the OF (on the same headphones).

Things I already tried:
* turn down the volume -> still crackles at -40 dB
* convert track from mp3 to wav, no effect
* various settings in the AS3514, like enabling/disabling ZCU, HPCM, AGC, bias current reduction with no positive effect. I also tried to set the AS3514 to as-default-as-possible settings and that didn't work either.
* reversing the roles of headphone volume and DAC volume (which of the two is increased first when increasing total volume), no help either.

The current SVN version (15741) still has it. I tried going back to find out which revision caused it, but even version 15000 already had it. I tried going back to even older versions, but I'm having some trouble compiling them.

Attached is a small clip in which I experience the distortion, it's noticeable between second 2 and 3 and at second 7 (compressed with flac for file size reasons).
   clip.flac (867.9 KiB)
This task depends upon

Closed by  Bertrik Sikken (bertrik)
Sunday, 10 October 2010, 09:23 GMT
Reason for closing:  Wont Fix
Additional comments about closing:  Issue has been documented in the wiki (SansaFAQ). Cause is still unknown.
Comment by Michael Sevakis (MikeS) - Thursday, 22 November 2007, 17:37 GMT
You've turned off all DSP effects in rockbox? I can't hear a problem myself unless forcing what should be clipping (and I might hear wrapping noise).
Comment by Bertrik Sikken (bertrik) - Thursday, 22 November 2007, 18:13 GMT
Yes, I still hear it with all settings to default (no eq, no bass, no treble, no cross-fade, no cross-feed).
I tried to reproduce it with some synthetic sine waves of -6, -3 and 0 dB without success.
Comment by Michael Sevakis (MikeS) - Thursday, 22 November 2007, 19:07 GMT
That's odd that a 0db sine wave would be ok. Couldn't be wrapping in the i2s bus then since that would surely show it.
Comment by Bertrik Sikken (bertrik) - Thursday, 22 November 2007, 19:56 GMT
I just wiped my .rockbox dir and installed a fresh copy to be sure.
Maybe I should record it through my soundcard and have a look at it in an audio editor.

Attached are my test tones.
Comment by Steve Bavin (pondlife) - Tuesday, 11 December 2007, 17:16 GMT
r15873 fixed a clipping issue if dithering was enabled, don't suppose this was the problem?
Comment by Bertrik Sikken (bertrik) - Sunday, 23 December 2007, 17:29 GMT
r15966 still has the problem. Never used dither (I think the sansa already implements this in hardware anyway).
Comment by Bertrik Sikken (bertrik) - Friday, 28 December 2007, 18:21 GMT
Attached is a recording of the same clip from the line-in of my sound card, the sansa volume was set at -10 dB. The clip was recorded using audacity under windows xp and normalised afterwards to -3 dB.

I see discontinuities on the left channel at 2.555 and on the right channel at 2.548, 2.549 and at 2.554. When looking in spectral view at these artifacts, the normal music does not have any frequency content above 17 kHz or so (from being an mp3 originally), while the discontinuities show broad spectrum noise up to 22 kHz.
Comment by Michael Sevakis (MikeS) - Saturday, 29 December 2007, 07:41 GMT
This isn't clipping noise but wrapping noise and quite likely not bus-related overflow noise since it switches channels as I previously speculated.

Two things you're not going to want to hear:
1) The problem is worse the lower the volume which could be masking effects but the profile of the sound as volume changes doesn't match that too well.
2) The problem is far, far worse in the original firmware than in rockbox. (definitely confirmed on my device) It exhibits the same inverse relationship with volume.
Comment by Bertrik Sikken (bertrik) - Sunday, 06 January 2008, 14:36 GMT
During IRC discussions, MikeS discovered that the problem can be greatly reduced by enabling the equaliser (with flat response) and applying some precut.
Comment by Thomas Martitz (kugel.) - Sunday, 25 January 2009, 23:46 GMT
Is this bug still valid?
Comment by Bertrik Sikken (bertrik) - Monday, 26 January 2009, 10:14 GMT
As far as I know, there has been no explicit attempt to fix this. Some changes were made for the HPCM common mode output of the AS3514 codec, there's a very small chance that it affects this problem. I'll check if the problem is still there sometime this week (please remind me if I forget).

At some point we may just have to conclude that it's a hardware problem that rockbox cannot do anything about, document that fact and close this task. I still like to have at least a bit more insight about where the problem originates (e.g. at what point in the signal chain does it start, is it an analog or a digital artifact?).
Comment by Bertrik Sikken (bertrik) - Wednesday, 16 December 2009, 21:16 GMT
The problem is still here (in svn r24036). I did some experiments with the as3514 settings again (HPCM, various bias settings, headphone overcurrent setting, LRCK clock settings). Unfortunately it resists any attempts from my side to make it better or worse.
Comment by Bertrik Sikken (bertrik) - Tuesday, 24 August 2010, 08:26 GMT
I plan to document this problem on the wiki (with a link to here) and then close this task within the next week or so.

Loading...