libaudio: complete overhaul for mr2

Change-Id: I5fbec0a6b052512d2c74c6a195aefd78f2c0267b