I have written a simple equalizer state manager for Alsaequal. You can find more information on the project page.