From 046e31e67ed01632e94b095982d3b133b68bb05f Mon Sep 17 00:00:00 2001 From: Simon Wilson Date: Tue, 26 Jul 2011 20:12:51 -0700 Subject: audio: use per-device maximum RIL volume The maguro and toro devices have different radios, each supporting a different maximum volume. Determine the maximum volume for the device from the ro.config.vc_call_vol_steps property and use that to calculate the volume to send to the RIL. Change-Id: I02921ed41ddbae90f8d3a149c05d37d3e87deab0 --- audio/ril_interface.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'audio/ril_interface.h') diff --git a/audio/ril_interface.h b/audio/ril_interface.h index c47484d..4a7a839 100644 --- a/audio/ril_interface.h +++ b/audio/ril_interface.h @@ -32,6 +32,7 @@ struct ril_handle { void *handle; void *client; + int volume_steps_max; }; enum ril_sound_type { @@ -59,7 +60,7 @@ enum ril_clock_state { int ril_open(struct ril_handle *ril); int ril_close(struct ril_handle *ril); int ril_set_call_volume(struct ril_handle *ril, enum ril_sound_type sound_type, - int volume); + float volume); int ril_set_call_audio_path(struct ril_handle *ril, enum ril_audio_path path); int ril_set_call_clock_sync(struct ril_handle *ril, enum ril_clock_state state); #endif -- cgit v1.1