Re-factoring pre gain and supplementary Qualcomm-specific code for Dolby DS
AudioFlinger refactoring in jb_mr2 requires DS code be re-factored accordingly

Change-Id: I0d031258e06a5ff837b2b93f58bbb7f9f751ecb1