From d2dbaf991e3f6b730624b7dfc9ce3cda8101b8d7 Mon Sep 17 00:00:00 2001 From: Simon Wilson Date: Tue, 27 Sep 2011 13:39:53 -0700 Subject: audio: support wideband call audio Some networks support wideband AMR for voice calls. To support this, implement a callback that the RIL uses to set the wideband config. Change-Id: Ifa75ff189cc300728f560b77fd4fb3f1798e776d --- audio/ril_interface.h | 5 +++++ 1 file changed, 5 insertions(+) mode change 100644 => 100755 audio/ril_interface.h (limited to 'audio/ril_interface.h') diff --git a/audio/ril_interface.h b/audio/ril_interface.h old mode 100644 new mode 100755 index 4a7a839..676772c --- a/audio/ril_interface.h +++ b/audio/ril_interface.h @@ -28,6 +28,10 @@ #define RIL_CLIENT_ERR_RESOURCE 6 // Resource not available #define RIL_CLIENT_ERR_UNKNOWN 7 +#define RIL_OEM_UNSOL_RESPONSE_BASE 11000 // RIL response base index +#define RIL_UNSOL_WB_AMR_STATE \ + (RIL_OEM_UNSOL_RESPONSE_BASE + 17) // RIL AMR state index + struct ril_handle { void *handle; @@ -63,5 +67,6 @@ int ril_set_call_volume(struct ril_handle *ril, enum ril_sound_type sound_type, 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); +void ril_register_set_wb_amr_callback(void *function, void *data); #endif -- cgit v1.1