CRAS: iodev_list - Adjust input ui gain range

Allowing max 40dB in input gain is too much that in
some cases user would accidentally break the recording.
This change lowers the gain range to max at 20dB, and
adjust the curve to two segments of linear map.

BUG=b:168671872
TEST=Manual test on octopus using online voice recorder.
Verify using cras_test_client that the max scale is 9.999
and the corresponding scale at 75% is 3.16

Change-Id: Id7a46b84c8177665e69ffab36587adfdb3a96d6a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/2425973
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
2 files changed