FS#9213 - Fix for audio dropout after startup
Since a few weeks, I've been noticing short audio dropouts a few seconds after starting Rockbox on an iAudio X5. I haven't changed any settings recently (at least I can't remember anything :-) and I haven't done any Rockbox software upgrades. My guess is that's it's caused by my disk becoming more and more filled.
Using the debug log, I noticed that the dropouts happen after the "reverse scan..." message. The "audio thread" debug menu showed me that the dropouts are caused by PCM buffer underruns. So I added a yield()-call to the check_deleted_files() function and the dropouts were gone.
The patch below is against the latest SVN version. I tested it with an older Rockbox version, but the code looks sufficiently similar that I don't see why this shouldn't also work with the latest trunk. Could somebody please apply it?
This task depends upon