diff options
Diffstat (limited to 'modules/audio/audio_policy.c')
-rw-r--r-- | modules/audio/audio_policy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/audio/audio_policy.c b/modules/audio/audio_policy.c index 2dd3dbe..82aa449 100644 --- a/modules/audio/audio_policy.c +++ b/modules/audio/audio_policy.c @@ -164,6 +164,7 @@ static int ap_get_stream_volume_index(const struct audio_policy *pol, return -ENOSYS; } +#ifndef ICS_AUDIO_BLOB static int ap_set_stream_volume_index_for_device(struct audio_policy *pol, audio_stream_type_t stream, int index, @@ -179,6 +180,7 @@ static int ap_get_stream_volume_index_for_device(const struct audio_policy *pol, { return -ENOSYS; } +#endif static uint32_t ap_get_strategy_for_stream(const struct audio_policy *pol, audio_stream_type_t stream) @@ -267,8 +269,10 @@ static int create_default_ap(const struct audio_policy_device *device, dap->policy.init_stream_volume = ap_init_stream_volume; dap->policy.set_stream_volume_index = ap_set_stream_volume_index; dap->policy.get_stream_volume_index = ap_get_stream_volume_index; +#ifndef ICS_AUDIO_BLOB dap->policy.set_stream_volume_index_for_device = ap_set_stream_volume_index_for_device; dap->policy.get_stream_volume_index_for_device = ap_get_stream_volume_index_for_device; +#endif dap->policy.get_strategy_for_stream = ap_get_strategy_for_stream; dap->policy.get_devices_for_stream = ap_get_devices_for_stream; dap->policy.get_output_for_effect = ap_get_output_for_effect; |