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

Issue 620673002: Flip the left/right speaker when the device is in yoga mode. (Closed)

Created:
6 years, 2 months ago by jennyz
Modified:
6 years, 2 months ago
Reviewers:
flackr, oshima, cychiang
CC:
chromium-reviews, sadrul, hashimoto+watch_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, ben+ash_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Flip the left/right speaker when the device is in yoga mode. BUG=418656 Committed: https://crrev.com/cdeffd2c7a44895aafbf1f615cc3937ea2fd280a Cr-Commit-Position: refs/heads/master@{#297766}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix the windows compiling issue. #

Patch Set 3 : Observe DisplayObserver::OnDisplayMetricsChanged for rotation change. #

Total comments: 11

Patch Set 4 : Address code review comments. #

Patch Set 5 : Fix the AudioApiTest. #

Total comments: 4

Patch Set 6 : Swap the internal speaker left/right channel regardless of active node. #

Total comments: 2

Patch Set 7 : Change internal speaker channel mode OnDisplayAdded. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -1 line) Patch
M ash/system/audio/tray_audio.h View 1 2 3 4 5 3 chunks +11 lines, -1 line 0 comments Download
M ash/system/audio/tray_audio.cc View 1 2 3 4 5 6 4 chunks +40 lines, -0 lines 1 comment Download
M ash/system/audio/tray_audio_delegate.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M ash/system/chromeos/audio/tray_audio_delegate_chromeos.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M ash/system/win/audio/tray_audio_delegate_win.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ash/system/win/audio/tray_audio_delegate_win.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/audio/cras_audio_handler.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chromeos/audio/cras_audio_handler.cc View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
M chromeos/dbus/cras_audio_client.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chromeos/dbus/cras_audio_client.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M chromeos/dbus/cras_audio_client_stub_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/dbus/cras_audio_client_stub_impl.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (3 generated)
jennyz
6 years, 2 months ago (2014-09-30 21:19:43 UTC) #3
jennyz
6 years, 2 months ago (2014-09-30 22:12:39 UTC) #4
oshima
https://codereview.chromium.org/620673002/diff/1/ash/display/display_manager.cc File ash/display/display_manager.cc (right): https://codereview.chromium.org/620673002/diff/1/ash/display/display_manager.cc#newcode443 ash/display/display_manager.cc:443: // Swap the left/right channel of the speaker only ...
6 years, 2 months ago (2014-09-30 22:29:53 UTC) #5
jennyz
https://codereview.chromium.org/620673002/diff/1/ash/display/display_manager.cc File ash/display/display_manager.cc (right): https://codereview.chromium.org/620673002/diff/1/ash/display/display_manager.cc#newcode443 ash/display/display_manager.cc:443: // Swap the left/right channel of the speaker only ...
6 years, 2 months ago (2014-10-01 00:22:59 UTC) #6
oshima
one more. https://codereview.chromium.org/620673002/diff/40001/ash/system/audio/tray_audio.cc File ash/system/audio/tray_audio.cc (right): https://codereview.chromium.org/620673002/diff/40001/ash/system/audio/tray_audio.cc#newcode160 ash/system/audio/tray_audio.cc:160: gfx::Display::InternalDisplayId()); you should check if there is ...
6 years, 2 months ago (2014-10-01 00:45:52 UTC) #7
sadrul
Drive-by: can I suggest having something (e.g. SpeakerFlipController) in //ui/chromeos/ instead that can also be ...
6 years, 2 months ago (2014-10-01 00:54:09 UTC) #8
cychiang
https://codereview.chromium.org/620673002/diff/40001/chromeos/audio/cras_audio_handler.h File chromeos/audio/cras_audio_handler.h (right): https://codereview.chromium.org/620673002/diff/40001/chromeos/audio/cras_audio_handler.h#newcode187 chromeos/audio/cras_audio_handler.h:187: // Swaps the left and right channel of the ...
6 years, 2 months ago (2014-10-01 02:36:29 UTC) #9
flackr
https://codereview.chromium.org/620673002/diff/40001/ash/system/audio/tray_audio.cc File ash/system/audio/tray_audio.cc (right): https://codereview.chromium.org/620673002/diff/40001/ash/system/audio/tray_audio.cc#newcode160 ash/system/audio/tray_audio.cc:160: gfx::Display::InternalDisplayId()); On 2014/10/01 00:45:52, oshima wrote: > you should ...
6 years, 2 months ago (2014-10-01 17:25:28 UTC) #10
jennyz
On 2014/10/01 00:54:09, sadrul wrote: > Drive-by: can I suggest having something (e.g. SpeakerFlipController) in ...
6 years, 2 months ago (2014-10-01 17:43:49 UTC) #11
jennyz
https://codereview.chromium.org/620673002/diff/40001/ash/system/audio/tray_audio.cc File ash/system/audio/tray_audio.cc (right): https://codereview.chromium.org/620673002/diff/40001/ash/system/audio/tray_audio.cc#newcode160 ash/system/audio/tray_audio.cc:160: gfx::Display::InternalDisplayId()); On 2014/10/01 00:45:52, oshima wrote: > you should ...
6 years, 2 months ago (2014-10-01 17:43:54 UTC) #12
jennyz
6 years, 2 months ago (2014-10-01 18:28:07 UTC) #13
flackr
https://codereview.chromium.org/620673002/diff/80001/chromeos/audio/cras_audio_handler.cc File chromeos/audio/cras_audio_handler.cc (right): https://codereview.chromium.org/620673002/diff/80001/chromeos/audio/cras_audio_handler.cc#newcode263 chromeos/audio/cras_audio_handler.cc:263: active_output_node_id_, swap); We shouldn't swap the channels on any ...
6 years, 2 months ago (2014-10-01 20:32:33 UTC) #14
jennyz
https://codereview.chromium.org/620673002/diff/80001/chromeos/audio/cras_audio_handler.cc File chromeos/audio/cras_audio_handler.cc (right): https://codereview.chromium.org/620673002/diff/80001/chromeos/audio/cras_audio_handler.cc#newcode263 chromeos/audio/cras_audio_handler.cc:263: active_output_node_id_, swap); On 2014/10/01 20:32:33, flackr wrote: > We ...
6 years, 2 months ago (2014-10-01 20:41:20 UTC) #15
jennyz
https://codereview.chromium.org/620673002/diff/80001/chromeos/audio/cras_audio_handler.cc File chromeos/audio/cras_audio_handler.cc (right): https://codereview.chromium.org/620673002/diff/80001/chromeos/audio/cras_audio_handler.cc#newcode263 chromeos/audio/cras_audio_handler.cc:263: active_output_node_id_, swap); On 2014/10/01 20:32:33, flackr wrote: > We ...
6 years, 2 months ago (2014-10-01 20:52:11 UTC) #16
jennyz
I have swapped the internal speaker's left/right channel based on the display rotation regardless of ...
6 years, 2 months ago (2014-10-01 21:30:34 UTC) #17
jennyz
PTAL.
6 years, 2 months ago (2014-10-01 21:30:46 UTC) #18
oshima
https://codereview.chromium.org/620673002/diff/100001/ash/system/audio/tray_audio.cc File ash/system/audio/tray_audio.cc (right): https://codereview.chromium.org/620673002/diff/100001/ash/system/audio/tray_audio.cc#newcode140 ash/system/audio/tray_audio.cc:140: void TrayAudio::OnDisplayAdded(const gfx::Display& new_display) { you should do the ...
6 years, 2 months ago (2014-10-01 21:53:56 UTC) #19
jennyz
https://codereview.chromium.org/620673002/diff/100001/ash/system/audio/tray_audio.cc File ash/system/audio/tray_audio.cc (right): https://codereview.chromium.org/620673002/diff/100001/ash/system/audio/tray_audio.cc#newcode140 ash/system/audio/tray_audio.cc:140: void TrayAudio::OnDisplayAdded(const gfx::Display& new_display) { On 2014/10/01 21:53:55, oshima ...
6 years, 2 months ago (2014-10-01 22:03:51 UTC) #20
oshima
my bits lgtm Please address other reviewers comments before landing.
6 years, 2 months ago (2014-10-01 23:18:29 UTC) #21
flackr
lgtm https://codereview.chromium.org/620673002/diff/120001/ash/system/audio/tray_audio.cc File ash/system/audio/tray_audio.cc (right): https://codereview.chromium.org/620673002/diff/120001/ash/system/audio/tray_audio.cc#newcode173 ash/system/audio/tray_audio.cc:173: audio_delegate_->SetInternalSpeakerChannelMode(channel_mode); This feels a little misplaced since it ...
6 years, 2 months ago (2014-10-02 00:39:19 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/620673002/120001
6 years, 2 months ago (2014-10-02 00:44:32 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001) as 075e48b45eca14a44256f6ec9d91639f10213608
6 years, 2 months ago (2014-10-02 02:06:55 UTC) #25
commit-bot: I haz the power
6 years, 2 months ago (2014-10-02 02:08:07 UTC) #26
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/cdeffd2c7a44895aafbf1f615cc3937ea2fd280a
Cr-Commit-Position: refs/heads/master@{#297766}

Powered by Google App Engine
This is Rietveld 408576698