Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Issue 1199413008: Work around for HDMI audio output rediscovering transistion loss. (Closed)

Created:
5 years, 6 months ago by jennyz
Modified:
5 years, 5 months ago
Reviewers:
stevenjb, cychiang
CC:
chromium-reviews, kalyank, stevenjb+watch_chromium.org, sadrul, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Work around for HDMI audio output rediscovering transistion loss. When audio output is playing on HDMI device, each time user opens or closes the lid of the device, changes the resolution of the hdmi display, or the device resumes after suspension, there is a short period of time the audio will be played on internal speaker, then goes back to hdmi device., The root cause is due to the fact that cras will lose hdmi output audio device for a short period of time and rediscover it later during the transition period of these scenarios. The hot plug cause the internal speaker be selected as an alternative active output device during the transition period. For some platform, the transition period is quite long as several seconds and it is an annoying user experience. I've made a workaround in CrasAudioHandler to mute the output during the hdmi rediscovering grace period, so that the audio will NOT be leaked. BUG=503667 Committed: https://crrev.com/c770dc778a8d2aedf0cc2f9a803a75db4211e4ac Cr-Commit-Position: refs/heads/master@{#336681}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fix a nit. #

Total comments: 4

Patch Set 3 : Changed to VLOG. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -23 lines) Patch
M ash/system/audio/tray_audio.h View 2 chunks +6 lines, -6 lines 0 comments Download
M ash/system/audio/tray_audio.cc View 2 chunks +15 lines, -15 lines 0 comments Download
M ash/system/audio/tray_audio_delegate.h View 1 chunk +9 lines, -0 lines 0 comments Download
M ash/system/chromeos/audio/tray_audio_chromeos.h View 2 chunks +13 lines, -1 line 0 comments Download
M ash/system/chromeos/audio/tray_audio_chromeos.cc View 3 chunks +38 lines, -0 lines 0 comments Download
M ash/system/chromeos/audio/tray_audio_delegate_chromeos.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M ash/system/win/audio/tray_audio_delegate_win.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ash/system/win/audio/tray_audio_delegate_win.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/audio/cras_audio_handler.h View 1 4 chunks +25 lines, -0 lines 0 comments Download
M chromeos/audio/cras_audio_handler.cc View 1 2 6 chunks +64 lines, -1 line 0 comments Download
M chromeos/audio/cras_audio_handler_unittest.cc View 4 chunks +104 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
jennyz
5 years, 6 months ago (2015-06-24 21:57:59 UTC) #2
cychiang
lgtm https://codereview.chromium.org/1199413008/diff/1/ash/system/audio/tray_audio.cc File ash/system/audio/tray_audio.cc (right): https://codereview.chromium.org/1199413008/diff/1/ash/system/audio/tray_audio.cc#newcode141 ash/system/audio/tray_audio.cc:141: void TrayAudio::ChangeInternalSpeakerChannelMode() { I guess you actually move ...
5 years, 6 months ago (2015-06-26 10:00:22 UTC) #3
jennyz
https://codereview.chromium.org/1199413008/diff/1/ash/system/audio/tray_audio.cc File ash/system/audio/tray_audio.cc (right): https://codereview.chromium.org/1199413008/diff/1/ash/system/audio/tray_audio.cc#newcode141 ash/system/audio/tray_audio.cc:141: void TrayAudio::ChangeInternalSpeakerChannelMode() { On 2015/06/26 10:00:21, cychiang wrote: > ...
5 years, 5 months ago (2015-06-29 20:49:41 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1199413008/40001
5 years, 5 months ago (2015-06-29 20:50:11 UTC) #8
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
5 years, 5 months ago (2015-06-29 20:50:14 UTC) #10
jennyz
5 years, 5 months ago (2015-06-29 21:01:39 UTC) #13
stevenjb
https://codereview.chromium.org/1199413008/diff/40001/chromeos/audio/cras_audio_handler.cc File chromeos/audio/cras_audio_handler.cc (right): https://codereview.chromium.org/1199413008/diff/40001/chromeos/audio/cras_audio_handler.cc#newcode602 chromeos/audio/cras_audio_handler.cc:602: LOG(WARNING) << "Mute the output during HDMI re-discovering grace ...
5 years, 5 months ago (2015-06-29 21:57:20 UTC) #14
jennyz
https://codereview.chromium.org/1199413008/diff/40001/chromeos/audio/cras_audio_handler.cc File chromeos/audio/cras_audio_handler.cc (right): https://codereview.chromium.org/1199413008/diff/40001/chromeos/audio/cras_audio_handler.cc#newcode602 chromeos/audio/cras_audio_handler.cc:602: LOG(WARNING) << "Mute the output during HDMI re-discovering grace ...
5 years, 5 months ago (2015-06-29 22:07:30 UTC) #15
stevenjb
lgtm
5 years, 5 months ago (2015-06-29 22:10:43 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1199413008/60001
5 years, 5 months ago (2015-06-29 23:01:20 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:60001)
5 years, 5 months ago (2015-06-29 23:46:13 UTC) #20
commit-bot: I haz the power
5 years, 5 months ago (2015-06-29 23:48:25 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c770dc778a8d2aedf0cc2f9a803a75db4211e4ac
Cr-Commit-Position: refs/heads/master@{#336681}

Powered by Google App Engine
This is Rietveld 408576698