We're using a custom i.MX53-based board with Freescale's SGTL5000 audio codec (similar setup to Freescale's QSB) and face similar problems: Playing WAV-files (mono, stereo, different sample-rates) with Android media-player works fine without any problems. Playing MP3- or OGG-files with Android's media-player results in lots of noise; although the original audio data is still recognizable.
Just for a try we removed Freescale's MP3-codec leaving all other of Freescale's codecs in place. In this case Android seems to use its own SW-codec for MP3-playback and this works fine without any noise or distortions. Videos, which are still handled by Freescale's codec in this experimental configuration, with MP3 audio streams still don't work properly, though, and show the same audio problems. The video codecs themselves (H.263, H.264/AVC, and MPEG2) seem to work fine, though.
In our case these audio problems happen not just with Freescale's MP3 codec, but also with OGG and AAC codecs. Do you see similar problems with these codecs, as well?
We've tried with codecs from Freescale's Android releases R10.3, R10.3.1, R10.3.2, and R10.4 and alls versions seem to show the same problems on our system.
Regards,
Marc