commit | 7a15a3668a2c677b7a8c4490dc9e01b39b63796a | [log] [tgz] |
---|---|---|
author | Ben Zhang <benzh@google.com> | Thu Sep 15 19:12:18 2016 -0700 |
committer | Ben Zhang <benzh@google.com> | Fri Sep 16 23:10:05 2016 +0000 |
tree | 3bc8ffc207f1e62726d0ba4c5d8c6fe30aabb876 | |
parent | e1cedcd9bb73e8f2311196b71fd7b3f75ffff308 [diff] |
audio hal: Reverse speaker LR channels at 180 rotation RT5677 I2S2 ADC3 data swap control is used to swap LR when the device is rotated 180 degrees. RT5677 I2S2 only goes to MAX98357A so the swap does not affect headphones. Verifed speaker and headphone playback with device rotation at 0/90/180/270. Bug: 31060805 Change-Id: I3ad3925a94e92fe1b8f086ad2ebbf767aa0d7401 Signed-off-by: Ben Zhang <benzh@google.com> (cherry picked from commit a758f09e4cadc7f0c9597b07cab8dc617d458fcf)