change LinearityTest algorithm to use RMS of the whole signal
and use linear regression to fit the result
volume level is fixed to 2/3 of max

Change-Id: I1b5b2130a6786c588ce47f1e2306db37539289d6
7 files changed