OSDN Git Service

Fix "invalid device combination" in system audio mode.
authorJungshik Jang <jayjang@google.com>
Fri, 5 Sep 2014 12:25:48 +0000 (21:25 +0900)
committerJungshik Jang <jayjang@google.com>
Fri, 5 Sep 2014 12:25:48 +0000 (21:25 +0900)
commita1f9917243caafd1da5fa743c6fda1d0614ed167
tree5ffd1f439162dab1f76b6b1bb51b03aa8f3901a8
parent6a548e9114c4a283a6e08a2d35540f8549f44b82
Fix "invalid device combination" in system audio mode.

HDMI-CEC system audio mode removes speaker from output
list. It also has multiple outputs by connected outputs.
However, getDeviceForVolume() doesn't cover multiple
output with no speaker or bluetooth case.
This change picks one of system audio outputs in order.

Bug: 17400026
Change-Id: I102fd0052c9c4c9543f9e8f3b16ec6815d7485d8
services/audiopolicy/AudioPolicyManager.cpp