CRAS: system mute breaks when switching user mute from UI |
|||
Issue descriptionWhat steps will reproduce the problem? (1) cras_test_client --mute 1 (2) Play youtube (3) toggle mute state from UI What is the expected result? when mute toggle, there should be no output at all What happens instead? during the short period of time user toggles mute, sound is heard. We should fix this although the "system mute" state is never used. And for testing purpose, I guess we should stick to "cras_test_client --user_mute" command. For graphics-related bugs, please copy/paste the contents of the about:gpu page at the end of this report.
,
Aug 24 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/adhd/+/59b4d524a24d0f597b8a6da0c2647d27b096b7bf commit 59b4d524a24d0f597b8a6da0c2647d27b096b7bf Author: Cheng-Yi Chiang <cychiang@chromium.org> Date: Thu Aug 24 10:24:13 2017 CRAS: system_state - Notify observers only when output mute is changed System state should not notify observer when the output mute is not changed. For example, if system mute is set, switch user mute will not change output mute. System state should not notify observers by output_mute_changed alert. This is needed since cras_iodev_list observe output_mute_changed to set ramping up/down. It expects that whenever output_mute_changed is observed, there should be mute->unmute or unmute->mute transition. BUG= chromium:756766 TEST=unittest TEST=cras_test_client --mute 1. Then, press mute and volume up keys. There will be no sound at all. Change-Id: I9b79436829b61fc925aee6a6e273c27fbe7e806e Reviewed-on: https://chromium-review.googlesource.com/627973 Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org> Reviewed-by: Hsinyu Chao <hychao@chromium.org> [modify] https://crrev.com/59b4d524a24d0f597b8a6da0c2647d27b096b7bf/cras/src/server/cras_system_state.c [modify] https://crrev.com/59b4d524a24d0f597b8a6da0c2647d27b096b7bf/cras/src/tests/system_state_unittest.cc
,
Aug 28 2017
,
Aug 31 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/adhd/+/c8b70583dbd5167e82cd3d80d36aca91bdc17e61 commit c8b70583dbd5167e82cd3d80d36aca91bdc17e61 Author: Cheng-Yi Chiang <cychiang@chromium.org> Date: Thu Aug 31 04:24:11 2017 CRAS: system_state - Notify observers only when output mute is changed System state should not notify observer when the output mute is not changed. For example, if system mute is set, switch user mute will not change output mute. System state should not notify observers by output_mute_changed alert. This is needed since cras_iodev_list observe output_mute_changed to set ramping up/down. It expects that whenever output_mute_changed is observed, there should be mute->unmute or unmute->mute transition. BUG= chromium:756766 TEST=unittest TEST=cras_test_client --mute 1. Then, press mute and volume up keys. There will be no sound at all. Change-Id: I9b79436829b61fc925aee6a6e273c27fbe7e806e Reviewed-on: https://chromium-review.googlesource.com/627973 Commit-Ready: Cheng-Yi Chiang <cychiang@chromium.org> Tested-by: Cheng-Yi Chiang <cychiang@chromium.org> Reviewed-by: Hsinyu Chao <hychao@chromium.org> (cherry picked from commit 59b4d524a24d0f597b8a6da0c2647d27b096b7bf) Reviewed-on: https://chromium-review.googlesource.com/645000 Tested-by: Hsinyu Chao <hychao@chromium.org> Commit-Queue: Hsinyu Chao <hychao@chromium.org> [modify] https://crrev.com/c8b70583dbd5167e82cd3d80d36aca91bdc17e61/cras/src/server/cras_system_state.c [modify] https://crrev.com/c8b70583dbd5167e82cd3d80d36aca91bdc17e61/cras/src/tests/system_state_unittest.cc |
|||
►
Sign in to add a comment |
|||
Comment 1 by cychiang@chromium.org
, Aug 18 2017