Just upgraded to 17131 tonight and immediately noticied a sound problem when playing back any format (ogg, flac or mp3). The problem starts when I navigate away from WPS. It is a light clicking noise and seems to switch from left to right channels. It is very obvious and does not make for good listening. The only way I can see of resovling is to reboot. but it will return after a while or when I navigate. This is on a 3G 20GB ipod.

1. I upgraded from 17091, I tried the latest (17138) and this didn't work at all for some reason, it would not boot, just an apple. I have been upgrading a lot in hope that another problem gets fixed (idle timeout causing reboot when charging)2. I could always reproduce the problem by navigating away from the WPS. I have downgraded back to 17091 and all is working fine again. (Didn't want to be without music for the day) I am happy to try and reproduce again if needed or I can try the next build.

I'm very interested in checking whether r17097 introduced this bug. As owners of PP5002-based targets are quite rare: Is someone of you able to build rockbox by his own? If so, checking r17096 vs. r17097 would really help tracking this issue down.

I was able to reproduce the problem on my 2nd Gen. Unfortunately, the problem tends to go away during intensive testing, and so I can't be 100% sure it was caused by r17097.

I'm quite sure it is though, as I found a bug in the SVN assembler code for PP5002: It also enters the loop and writes a pair of samples if there's no or just one free FIFO slot. I prepared a fix, put a test build on my 2nd Gen, and prepared a test build for alleyoopster (3rd Gen). Attached the patch if someone else wants to test.

Will use the test build tomorrow during the day, and if it really fixes the problem, commit tomorrow night.