CRAS: system_state - Only notify observer if needed

We should only notify observer when mute/unmute state is changed.
Otherwise, there will be redundant ramping for mute/unmute.

BUG=chromium:669662
TEST=make check
TEST=Play sine tone. Press mute multiple times. System remains silence.
Change-Id: Ie0c97d4e7f0ef34dce46dc61720c43db12db9933
Reviewed-on: https://chromium-review.googlesource.com/428732
Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-by: Chinyue Chen <chinyue@chromium.org>
2 files changed