diff options
author | Richard Fitzgerald <rf@opensource.wolfsonmicro.com> | 2013-05-13 16:58:54 +0100 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2013-07-18 09:23:27 -0700 |
commit | 072a79d3e4d732dbdeee3b24c68bb36fef92aca5 (patch) | |
tree | b022d520845bbfa99dd600dee532d9ebcedad602 /modules/audio/audio_policy.c | |
parent | e68b3520f00e9b81264f83588742c33a48bee9e7 (diff) | |
download | hardware_libhardware-072a79d3e4d732dbdeee3b24c68bb36fef92aca5.zip hardware_libhardware-072a79d3e4d732dbdeee3b24c68bb36fef92aca5.tar.gz hardware_libhardware-072a79d3e4d732dbdeee3b24c68bb36fef92aca5.tar.bz2 |
Code changes for offload support in hardware libhardware
Change-Id: Icfe9bf4b4768bbdcb11e6c77ac26163018f9c7c8
Diffstat (limited to 'modules/audio/audio_policy.c')
-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; |