summaryrefslogtreecommitdiffstats
path: root/libaudio/AudioHardware.h
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2011-08-25 18:45:44 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2011-08-26 07:34:36 +0700
commitc4ac9e2cbf5521f857b1255f1ee48d9713e7ba78 (patch)
treebc69ce1cd9515327bebc9742b06a8bba1d48a3cc /libaudio/AudioHardware.h
parent259752f4761b3464b1e3ad7dc224cf514dd9d7c3 (diff)
downloaddevice_samsung_aries-common-c4ac9e2cbf5521f857b1255f1ee48d9713e7ba78.zip
device_samsung_aries-common-c4ac9e2cbf5521f857b1255f1ee48d9713e7ba78.tar.gz
device_samsung_aries-common-c4ac9e2cbf5521f857b1255f1ee48d9713e7ba78.tar.bz2
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
Diffstat (limited to 'libaudio/AudioHardware.h')
-rw-r--r--libaudio/AudioHardware.h7
1 files changed, 7 insertions, 0 deletions
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;