commit | 493404d8c396e15ed73455acd39aa0f1940996e2 | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Tue Apr 21 15:07:36 2015 -0700 |
committer | Eric Laurent <elaurent@google.com> | Wed Apr 22 08:12:53 2015 -0700 |
tree | a07080e7733732fd7273963cca1c93436b86b997 | |
parent | c9c3804a2caf3c0f96e7a8985f82db7ceef490df [diff] |
audio policy: fix AudioTrack output device selection Have AudioTrack::setOutputDevice() set CBLK_INVALID flag instead of calling restoreTrack_l(). This allows restoreTrack_l() to be called in a safe context. Allow device change while the AudioTrack is active by forcing a new device selection in startOutput() if the output route for this session was changed. Remove some warnings. Change-Id: I2d921a63c9bfa0e122233645e2d6d39f95f5f17d