m7-common: libaudioamp: Refactor TFA9887 code

Change-Id: I95c4c378181d45980bb059f128debd41f1590125