diff options
author | Eric Laurent <elaurent@google.com> | 2013-07-25 21:15:23 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-07-25 21:15:23 +0000 |
commit | ad3f4624b4260dcb411b2a5312c8d94db3d96fe7 (patch) | |
tree | ad41c42c1e4524c71b48a0d969db36bd81e18174 | |
parent | bd1468921eac095f43e1d0e9a5a2584ae834d90e (diff) | |
parent | 072a79d3e4d732dbdeee3b24c68bb36fef92aca5 (diff) | |
download | hardware_libhardware-ad3f4624b4260dcb411b2a5312c8d94db3d96fe7.zip hardware_libhardware-ad3f4624b4260dcb411b2a5312c8d94db3d96fe7.tar.gz hardware_libhardware-ad3f4624b4260dcb411b2a5312c8d94db3d96fe7.tar.bz2 |
Merge "Code changes for offload support in hardware libhardware"
-rw-r--r-- | modules/audio/audio_policy.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/audio/audio_policy.c b/modules/audio/audio_policy.c index 2dd3dbe..9335654 100644 --- a/modules/audio/audio_policy.c +++ b/modules/audio/audio_policy.c @@ -99,7 +99,8 @@ static audio_io_handle_t ap_get_output(struct audio_policy *pol, uint32_t sampling_rate, audio_format_t format, audio_channel_mask_t channelMask, - audio_output_flags_t flags) + audio_output_flags_t flags, + const audio_offload_info_t *info) { return 0; } @@ -229,6 +230,12 @@ static int ap_dump(const struct audio_policy *pol, int fd) return -ENOSYS; } +static bool ap_is_offload_supported(const struct audio_policy *pol, + const audio_offload_info_t *info) +{ + return false; +} + static int create_default_ap(const struct audio_policy_device *device, struct audio_policy_service_ops *aps_ops, void *service, @@ -278,6 +285,8 @@ static int create_default_ap(const struct audio_policy_device *device, dap->policy.is_stream_active = ap_is_stream_active; dap->policy.dump = ap_dump; + dap->policy.is_offload_supported = ap_is_offload_supported; + dap->service = service; dap->aps_ops = aps_ops; |