From d7657374cb9debe9e4763a5f9dce8b5088f82884 Mon Sep 17 00:00:00 2001 From: UK KIM Date: Sat, 19 Feb 2011 04:08:30 +0900 Subject: SOUND: set incall volume when user starts call. modem side doesn't store volume setting when device is rebooted. When audio mode is incall, set current voice volume to modem. Current incall volume is stored when upper layer sets or AudioService is started. Change-Id: Icfeb0273dda55354e207d464884ef99f41c5fdec Signed-off-by: UK KIM --- libaudio/AudioHardware.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libaudio/AudioHardware.h') diff --git a/libaudio/AudioHardware.h b/libaudio/AudioHardware.h index a23e6c9..c4f04e8 100644 --- a/libaudio/AudioHardware.h +++ b/libaudio/AudioHardware.h @@ -119,6 +119,8 @@ public: status_t setInputSource_l(audio_source source); + void setVoiceVolume_l(float volume); + static uint32_t getInputSampleRate(uint32_t sampleRate); sp getActiveInput_l(); @@ -154,6 +156,7 @@ private: uint32_t mPcmOpenCnt; uint32_t mMixerOpenCnt; bool mInCallAudioMode; + float mVoiceVol; audio_source mInputSource; bool mBluetoothNrec; -- cgit v1.1