Fix problem with AMS PCM driver that caused mpegplayer lockup. It pre-decremented...
commit79113a9ccc567288018f014a8fc304820814e5b5
authorjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Sat, 15 Jan 2011 12:13:56 +0000 (15 12:13 +0000)
committerjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Sat, 15 Jan 2011 12:13:56 +0000 (15 12:13 +0000)
tree32aef72605b0f9fe5cc29d781d8cf234aa61f442
parente43dc30fe612878246f023640372f50e16292a9e
Fix problem with AMS PCM driver that caused mpegplayer lockup. It pre-decremented the size remaining where it is supposed to be post-decremented by the last transfer size in the callback. Pending callbacks also must be cleared when stopping or pausing a channel if they happened before the lock flag was set.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29059 a1c6a512-1295-4272-9138-f99709370657
firmware/target/arm/as3525/pcm-as3525.c