summaryrefslogtreecommitdiffstats
path: root/libaudio/AudioHardware.cpp
Commit message (Collapse)AuthorAgeFilesLines
* aries-common: libaudio fixes from crespoPawit Pornkitprasan2012-01-031-16/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit c79f9430a7aa73b8163c8be0e749517204e7950a Author: Eric Laurent <elaurent@google.com> Date: Thu Sep 8 18:36:19 2011 -0700 audio HAL: fix some audio mode transitions The logic controlling the CP clock and audio path in setMode() was incorrect for certain transitions. In particular, the sequence IN_CALL -> RINGTONE -> IN_COMMUNICATION -> IN_CALL would cause a loss of call audio. Change-Id: I4a6bcca32e6e33f965874ad2219f2728b9035e4a commit 0859b44015b1e137146cb9be9d09579835430880 Author: Eric Laurent <elaurent@google.com> Date: Thu Mar 17 18:57:48 2011 -0700 Fix issue 4126225: setMicMute() execution time The cause is that the thread executing setMicMute() can wait for several seconds before acquiring the input thread mutex when audio capture is active. The fix consists in forcing a sleep of the capture thread when standby() (called by setMicMute()) wants the mutex. Applied the same fix to output stream and to setParameters() function. Change-Id: I3e55670d2aad16b67d44ca8582ed16398143ff6e commit 240a174d3edc05c82821ab89337d3420cbc1564c Author: UK KIM <w0806.kim@samsung.com> Date: Sat Feb 19 04:08:30 2011 +0900 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 <w0806.kim@samsung.com> Change-Id: I13ff29935913a13a7ff200ae01ac69b01cd06c87
* Set proper FM volume on startPawit Pornkitprasan2011-09-181-0/+4
| | | | Change-Id: I144433443cbf5c65693cbe584e987977c9f4d24b
* ifdef the usage of FMRadioatinm2011-09-141-1/+2
| | | | Change-Id: Ibbc9581b15fbe802f60826237a88b2a42f2b4a4a
* libaudio: Fix FM Radio to work with other android soundsPawit Pornkitprasan2011-09-021-38/+68
| | | | | | | | | | | | | | | | - 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
* libaudio: Improve FM RadioPawit Pornkitprasan2011-08-261-7/+53
| | | | | | | | | | | | | | | - 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
* Allow FM radio to be used on non-mic headsetPawit Pornkitprasan2011-08-231-37/+28
| | | | | | | | The value associated with 'fm_on' and 'fm_off' should not be checked because the values are different for mic/non-mic headphones. (And there are no other instances where these properties are set.) Change-Id: I4c8eef2da554314045769a6ae5099e5c147699bb
* libaudio: added support for fmradiocodeworkx2011-05-311-3/+114
| | | | Change-Id: I859f06768e8cb3e60cadc17346b72952feffba09
* moved to device/samsung/aries-commonatinm2011-05-171-0/+2127