summaryrefslogtreecommitdiffstats
path: root/audio/ril_interface.h
diff options
context:
space:
mode:
authorSimon Wilson <simonwilson@google.com>2011-07-26 20:12:51 -0700
committerSimon Wilson <simonwilson@google.com>2011-07-29 14:55:57 -0700
commita25a688a9f15cb8e89fb5dc04ca97576701eb380 (patch)
tree7e42dca53317b1ea6c78b9384e8403cab4ced84e /audio/ril_interface.h
parent94f92f176c0ba63c616e7e70f3808d704209a7c2 (diff)
downloaddevice_samsung_tuna-a25a688a9f15cb8e89fb5dc04ca97576701eb380.zip
device_samsung_tuna-a25a688a9f15cb8e89fb5dc04ca97576701eb380.tar.gz
device_samsung_tuna-a25a688a9f15cb8e89fb5dc04ca97576701eb380.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.h3
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