CRAS: cras_alsa_ucm - Support setting MinSoftwareGain value in UCM

Now we can set MinSoftwareGain after MaxSoftwareGain is set. It is used
to limit the range of software gain.

When WebRTC uses headset mic, automatic gain control (AGC) may change
the system gain. After removing headset mic, AGC can not understand and
set it back if there is a large difference between internal mic and
headset mic. If we keep software gain of internal mic always at the
same value, we can solve this problem.

BUG=chromium:872192
TEST=Succussly set MinSoftwareGain on Coral board.

Change-Id: I0a6af2be7e544fd243670a8b6a06c2da6d23187f
Reviewed-on: https://chromium-review.googlesource.com/1167010
Commit-Ready: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Tested-by: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
6 files changed