DescriptionWork 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. #Messages
Total messages: 21 (9 generated)
|