Your mail is very lengthy and something seems to have stripped all the indentation from the source code you've pasted. This all makes it extremely hard to read, and the fact that it's discussing drivers which have never been sent upstream doesn't help either.
The last time I looked at MSM audio drivers I noticed several abuses of APIs in there which make me concerned about the robustness of any changes that one might make to the code. I've no idea if this was the same set of drivers as you are looking at, it's really unfortunate that work on these drivers appears so fragmented.
The reference code source is at: http://gitorious.org/htc-msm-2-6-32/leviathan-incoming/trees/android-msm-2.6...
And the audio patch that I rebased were attached The most important one is that one: [PATCH 2/4] sound: soc: msm7k: improve buffer underrun issue
There are only 2 patches.