diff options
author | Simon Wilson <simonwilson@google.com> | 2011-07-26 20:12:51 -0700 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2011-07-29 14:55:57 -0700 |
commit | 046e31e67ed01632e94b095982d3b133b68bb05f (patch) | |
tree | e6ace925387273599ef013954beb174d0e6b3970 /audio/ril_interface.h | |
parent | c7c238aaa2e92673e4739ff321fd8304b7912f16 (diff) | |
download | device_samsung_tuna-046e31e67ed01632e94b095982d3b133b68bb05f.zip device_samsung_tuna-046e31e67ed01632e94b095982d3b133b68bb05f.tar.gz device_samsung_tuna-046e31e67ed01632e94b095982d3b133b68bb05f.tar.bz2 |
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
Diffstat (limited to 'audio/ril_interface.h')
-rw-r--r-- | audio/ril_interface.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |