Refactored equalizer functionality.

Change-Id: I50d16aa2d735b38b5d9bef2e7b4e9548a2461c0b