e230b51 audio: Add THD_F calculation

Authored and Committed by benzea 6 years ago
    audio: Add THD_F calculation
    
    This is relevant to check whether the microphone input is distorting a
    lot. It should be reasonably independent of background noise (with high
    enough amplitudes) and should allow us detecting cases where the
    microphone gain appears to be too high, requiring in kernel microphone
    gain limiting.
    
        
file modified
+24 -7