CRAS: alsa_io - Specify default node gain in UCM

Some boards require different default gain rather than 2000 dBm defined
in cras_system_state. Now we expose a new UCM config DefaultNodeGain
so we can use different default node gain for board customization.
Note that user can still change gain after the node is selected, so AGC
still works either on system gain or on node gain.

BUG=chrome-os-partner:60744
TEST=make check
TEST=On chell, add DefaultNodeGain to "Mic" and "Internal Mic" section.
     Select active input node and see recorded audio gain is changed.
TEST=On chell, switch active node, goto appr.tc and append
     ?debug=loopback in the URL, and check AGC in WebRTC works.
Change-Id: Ibf8ad7a1252d4a53ba700e5dc355efa7ce3e70f1
Reviewed-on: https://chromium-review.googlesource.com/430528
Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
5 files changed