Refactor equalizer

Change-Id: I6e13a7fd5d6a9a250ddd414939e38573be912899