By the way, I wanted to include AMR support. What should I do to make this possible?
No idea ... that's why it's not done, I have not yet analyzed how the DSP must be driven to handle AMR. I think it doesn't support it natively (or at least is bugged) and some DSP patches must be loaded.
Cheers,
Sylvain