Coral board: After plug and unplug Headphone, the Hangouts call voice output becomes low by internal microphone. |
||
Issue descriptionAfter plug and unplug Headphone, the Hangouts call voice output becomes low by internal microphone. What steps will reproduce the problem? 1. Download Google Hangouts from Web Store. 2. Open Hangouts call and connected to another Hangouts call account. 3. Check internal microphone output is normal. 4. Plug in Headphone, check the external microphone output is normal. 5. Unplug Headphone, check the internal microphone output is normal or not. What is the expected output? The Hangouts call voice output is normal by internal microphone after plug and unplug Headphone. How frequently does this problem reproduce? Always
,
Aug 8
One possible solution is add new MinSoftwareGain flag. Currently, we only have MaxSoftwareGain and it is set to 20 dB. The MinSoftwareGain is -50 dB by default. If we add a flag MinSoftwareGain and set it to 20dB as well, we can fix the software gain such that it always apply 20 dB on internal mic.
,
Aug 8
,
Aug 10
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/adhd/+/faa1b2bd0fbe6348cd7353c5af0393ae354acdda commit faa1b2bd0fbe6348cd7353c5af0393ae354acdda Author: Yu-Hsuan Hsu <yuhsuan@chromium.org> Date: Fri Aug 10 15:31:32 2018 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> [modify] https://crrev.com/faa1b2bd0fbe6348cd7353c5af0393ae354acdda/cras/src/tests/alsa_io_unittest.cc [modify] https://crrev.com/faa1b2bd0fbe6348cd7353c5af0393ae354acdda/cras/src/tests/alsa_ucm_unittest.cc [modify] https://crrev.com/faa1b2bd0fbe6348cd7353c5af0393ae354acdda/cras/src/server/cras_iodev.h [modify] https://crrev.com/faa1b2bd0fbe6348cd7353c5af0393ae354acdda/cras/src/server/cras_alsa_ucm.c [modify] https://crrev.com/faa1b2bd0fbe6348cd7353c5af0393ae354acdda/cras/src/server/cras_alsa_io.c [modify] https://crrev.com/faa1b2bd0fbe6348cd7353c5af0393ae354acdda/cras/src/server/cras_alsa_ucm.h
,
Aug 13
Now we can set MinSoftwareGain value in UCM config to have the fixed capture volume. |
||
►
Sign in to add a comment |
||
Comment 1 by yuhsuan@chromium.org
, Aug 8