|
|
|
@ -668,7 +668,12 @@ int SetCallVolume(HRilClient client, SoundType type, int vol_level) { |
|
|
|
|
* Set external sound device path for noise reduction. |
|
|
|
|
*/ |
|
|
|
|
extern "C" |
|
|
|
|
int SetCallAudioPath(HRilClient client, AudioPath path, ExtraVolume mode) { |
|
|
|
|
#ifdef RIL_CALL_AUIO_PATH_EXTRAVOLUME |
|
|
|
|
int SetCallAudioPath(HRilClient client, AudioPath path, ExtraVolume mode) |
|
|
|
|
#else |
|
|
|
|
int SetCallAudioPath(HRilClient client, AudioPath path) |
|
|
|
|
#endif |
|
|
|
|
{ |
|
|
|
|
RilClientPrv *client_prv; |
|
|
|
|
int ret; |
|
|
|
|
char data[6] = {0,}; |
|
|
|
@ -696,7 +701,9 @@ int SetCallAudioPath(HRilClient client, AudioPath path, ExtraVolume mode) { |
|
|
|
|
data[2] = 0x00; // data length
|
|
|
|
|
data[3] = 0x06; // data length
|
|
|
|
|
data[4] = ConvertAudioPath(path); // audio path
|
|
|
|
|
#ifdef RIL_CALL_AUIO_PATH_EXTRAVOLUME |
|
|
|
|
data[5] = mode; // ExtraVolume
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
RegisterRequestCompleteHandler(client, REQ_SET_AUDIO_PATH, NULL); |
|
|
|
|
|
|
|
|
|