From c4ac9e2cbf5521f857b1255f1ee48d9713e7ba78 Mon Sep 17 00:00:00 2001 From: Pawit Pornkitprasan Date: Thu, 25 Aug 2011 18:45:44 +0700 Subject: libaudio: Improve FM Radio - Set the volume control of the Si4709 chip (I891574d6 originally did this) - Set the playback path to HP, HP_NO_MIC, SPK as appropriate (allows WM8994 to apply its analog gain) - Turn off FM Radio properly to allow WM8994 to be turned off after disabling FM Radio (fixes battery drain and routing problems which caused FM Radio to be mute if you listen to FM, listen to music and listen to FM again.) Change-Id: Id04aaddc6de5ffe1c0826bea33fc8ec633afd419 --- libaudio/AudioHardware.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libaudio/AudioHardware.h') diff --git a/libaudio/AudioHardware.h b/libaudio/AudioHardware.h index 71f11e7..b50e273 100644 --- a/libaudio/AudioHardware.h +++ b/libaudio/AudioHardware.h @@ -86,6 +86,9 @@ public: virtual status_t setVoiceVolume(float volume); virtual status_t setMasterVolume(float volume); +#ifdef HAVE_FM_RADIO + virtual status_t setFmVolume(float volume); +#endif virtual status_t setMode(int mode); @@ -177,6 +180,10 @@ private: void loadRILD(void); status_t connectRILDIfRequired(void); +#ifdef HAVE_FM_RADIO + int mFmFd; +#endif + // trace driver operations for dump int mDriverOp; -- cgit v1.1