diff options
author | Pawit Pornkitprasan <p.pawit@gmail.com> | 2011-09-01 22:39:48 +0700 |
---|---|---|
committer | Pawit Pornkitprasan <p.pawit@gmail.com> | 2011-09-02 17:06:24 +0700 |
commit | 14513e1c14b88d7bee4596a14425ae6d7f76640d (patch) | |
tree | 4f7c4e4a7ca472273fba9148296bd7635be164b8 /libaudio/AudioHardware.h | |
parent | 81732be0729544209c80615129411a45a50bd90e (diff) | |
download | device_samsung_aries-common-14513e1c14b88d7bee4596a14425ae6d7f76640d.zip device_samsung_aries-common-14513e1c14b88d7bee4596a14425ae6d7f76640d.tar.gz device_samsung_aries-common-14513e1c14b88d7bee4596a14425ae6d7f76640d.tar.bz2 |
libaudio: Fix FM Radio to work with other android sounds
- Run openPcmOut_l and openMixer_l regardless if whether they are
already initialized or not. (These functions have a open counter
and they will be closed prematurely if we don't declare that
we are going to use them.)
- Fix invalid output device after playing notification
- Fix resuming FM radio after call ended
Note: resuming FM radio after notification is also dependent on a
patch to FM.apk
Change-Id: I8ab9fe74bb5a099252e0c1072a40e86209bc4a05
Diffstat (limited to 'libaudio/AudioHardware.h')
-rw-r--r-- | libaudio/AudioHardware.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libaudio/AudioHardware.h b/libaudio/AudioHardware.h index b50e273..2a1f6c7 100644 --- a/libaudio/AudioHardware.h +++ b/libaudio/AudioHardware.h @@ -121,6 +121,8 @@ public: status_t setIncallPath_l(uint32_t device); #ifdef HAVE_FM_RADIO + void enableFMRadio(); + void disableFMRadio(); status_t setFMRadioPath_l(uint32_t device); #endif @@ -182,6 +184,7 @@ private: #ifdef HAVE_FM_RADIO int mFmFd; + bool mFmResumeAfterCall; #endif // trace driver operations for dump |