Merge "Update (disabled) audio policy implementation to new interface" into jb-mr1-dev

This commit is contained in:
Jean-Michel Trivi 2012-08-28 10:44:27 -07:00 committed by Android (Google) Code Review
commit 50b9a1eb11
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); struct qcom_audio_policy *qap = to_qap(pol);
return qap->apm->setDeviceConnectionState( return qap->apm->setDeviceConnectionState(
(AudioSystem::audio_devices)device, device,
(AudioSystem::device_connection_state)state, (AudioSystem::device_connection_state)state,
device_address); 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); const struct qcom_audio_policy *qap = to_cqap(pol);
return (audio_policy_dev_state_t)qap->apm->getDeviceConnectionState( return (audio_policy_dev_state_t)qap->apm->getDeviceConnectionState(
(AudioSystem::audio_devices)device, device,
device_address); device_address);
} }