Update (disabled) audio policy implementation to new interface

Update implementation of AudioPolicyInterface to use the
  audio_devices_t type of system/audio.h instead of the
  device enum in AudioSystem.
Note that the affected file is currently disabled in the makefile.

Change-Id: I54f07aa3c803643ea530de0e4d27aee73a9fc1fc
This commit is contained in:
Jean-Michel Trivi 2012-08-27 11:55:19 -07:00
parent 91bf891a50
commit e195436fce
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ static int ap_set_device_connection_state(struct audio_policy *pol,
{
struct qcom_audio_policy *qap = to_qap(pol);
return qap->apm->setDeviceConnectionState(
(AudioSystem::audio_devices)device,
device,
(AudioSystem::device_connection_state)state,
device_address);
}
@ -80,7 +80,7 @@ static audio_policy_dev_state_t ap_get_device_connection_state(
{
const struct qcom_audio_policy *qap = to_cqap(pol);
return (audio_policy_dev_state_t)qap->apm->getDeviceConnectionState(
(AudioSystem::audio_devices)device,
device,
device_address);
}