summaryrefslogtreecommitdiffstats
path: root/libaudio
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue 3119463.Eric Laurent2010-10-221-2/+2
| | | | | | | | | | There is no call audio uplink when headphones w/o mic are connected. This change together with a corresponding change in the kernel driver adds a separate device for headphonjes without mic: output is routed to headphones and input is routed from built-in mic. Change-Id: I19955f76ece19f661ae25d6a42bbcbe235a9e652
* Several audio HAL fixes:Eric Laurent2010-10-212-18/+72
| | | | | | | | | Anton Rogozin <ant.rogozin@samsung.com> - Move RIL clock sync to starting of ringtone mode as requested by modem team - BT noise reduction turning off support Change-Id: I95a8157ca0da7a4432fe0d5bc3a4adba94cdb19a
* Fix issue 3113477.Eric Laurent2010-10-201-2/+3
| | | | | | | | | | Fix problem in audio HAL AudioStreamInALSA::read() function when the down sampler is used and a read error from kernel driver occurs: the requested frame count should be reset before calling the resampler again otherwise we loop for ever requesting 0 frames. Change-Id: Ie85f7a1db4e417f5c1d97c0f0e0f5a28a62ee92a
* Issue 3058745: fix audio HAL downsampler.Eric Laurent2010-10-181-6/+9
| | | | | | | | | | | Latest audio HAL downsampler implementation had a problem that caused one sample to be dropped if the input buffer size was odd while downsampling by a factor of 2. This explains why record timing was correct for 22 and 16kHz but not for 11 or 8kHz: in the later case, the second stage of resampling (22 to 11) receives 503 frames for each buffer. Change-Id: Ib8fcba3ddfbbab50a908e6b0a6cdc2b398acd862
* Issue 3060335: new input stream resampler.Eric Laurent2010-10-152-48/+543
| | | | | | | | | | Previous input stream downsampler implementation was very cheap and for functional tests only. The quality was not suitable to voice recognition. Integrated a higher quality resampler handling conversions from 44100Hz down to 22020,16000,11025 and 8000 Hz. Change-Id: I5d6de5c137717e02ca6024c852c9a67285fd2df5
* Contribute to fixing bug 3060335 Make Crespo honour voice rec modeJean-Michel Trivi2010-10-151-1/+1
| | | | | | | | | Crespo libaudio fails to use the Voice Recognition configuration when doing a recording on the VOICE_RECOGNITION input because the associated setParameter always returns before the value is set due to a cast error. Change-Id: Icc7c7edb5f680de82140d6ece4e536c0d9cb2419
* S5PC11X: SOUND: changed amix name for recognition and deleted unused codesDooHyunHwang2010-10-142-16/+5
| | | | | Change-Id: Ia714d2f16205773c7e30db1d9e03aba6b8f08cf7 Signed-off-by: DooHyunHwang <dh0421.hwang@samsung.com>
* Several Audio HAL fixes:Eric Laurent2010-10-132-19/+36
| | | | | | | | | | | | | | | | | | | Lakkyung Jung <lakkyung.jung@samsung.com>: S5PC11X: SOUND: Change h/w parameters setting in setDevice(). Audio input/output stream will be used snd_pcm_hw_params_set_period_size() and snd_pcm_hw_params_get_period_size() when setting h/w params. because we already know period values by bufferSize / periodSize. So we don't need to set period values. audio input stream will be used period value 4. Anton Rogozin<ant.rogozin@samsung.com> libaudio: RIL clock functionality RIL clock functionality was added. Change-Id: I9f8f8d8b2851562e3c1bed3e4c7ae896d7865331
* Fix audio record brokenEric Laurent2010-10-111-5/+6
| | | | | | | | | | Audio input stream can not be opened because function snd_pcm_hw_params_get_period_size() now returns an error. Probably due to one of the recent kernel commits. The result of this call was not used anyway with current patch so removed it. Change-Id: I36f2dbdc94e6ec726d9c0df063d0ec3702c1b94a
* only build the alsalib libaudio if the board uses alsalibBrian Swetland2010-10-101-0/+2
| | | | Change-Id: I6819ea28e0d16f163a00f8d25ba77506b144a886
* Fix several in call audio issues.Eric Laurent2010-10-082-113/+183
| | | | | | | | | | | | - 1: make sure that we restore normal mode in codec when the call is ended. - 2: make sure that we set in call mode in codec when the call is started even if output stream is playing. Merged support for special mic gain setting for voice recognition. Some more cleanup. Change-Id: I00ab773ec294f7b186b463177372ece5b520a386
* libaudio: code cleanup & RIL interface updateAnton Rogozin2010-10-075-1052/+563
| | | | | | | | | | | | | | | | Anton Rogozin <ant.rogozin@samsung.com>: Unused code removed, dynamic loading of RIL lib, alsa lib resampler turning on UK KIM <w0806.kim@samsung.com>: 1. deleted unneeded standby_l() and set_wakelock func() in each stream class. 2. use StreamOPS:close() to close stream. 3. reference new libaudio. Eric Laurent <elaurent@google.com>: Some more cleanup Fixed clicks when playing call ended tone Change-Id: Ieea1319262576b2f6680c675957643eacbab9c11
* Workaround in audio HAL to fix audio inputEric Laurent2010-10-012-313/+423
| | | | | | | | | Patched audio HAL to allow minimal audio input functionality until real fixes are submitted. This will allow features like voice search, VoIP, camcorder and mms audio record to work (with poor audio quality). Change-Id: I18acb120c5c398ccaeac11c462d629d41e33eef4
* Restore use of AudioPolicyManagerBase class.Eric Laurent2010-10-014-4135/+17
| | | | | | | | | AudioPolicyManager implementation must use AudioPolicyManagerBase for all default behavior. Crespo was using an implementation of AudioPolicyManager based on a pre Eclair version that did not derive from AudioPolicyManagerBase and thus was missing a lot of improvements and bug fixes. Change-Id: I0dd8de15047109d1534e532c924e9beb46fd23e6
* Better handling of libsecril stub.Jean-Baptiste Queru2010-09-261-1/+5
| | | | | | | | | | | Use a different name for the stub than for the real library, so that the real library still appears in the list of proprietary files. Also, use the real library instead of the stub when building an open-source build with the proprietary files. Change-Id: I570e7b86be5be5c8e18326c9438b5736f6019d44
* Create a stub for libsecril-clientJean-Baptiste Queru2010-09-242-0/+58
| | | | | | | This allows to build libaudio even if we don't have the true libsecril-client Change-Id: I3f8c8aa975a96a144157505272cf9a4497bef196
* libaudio: updating supported recording sample ratesAnton Rogozin2010-09-172-0/+33
| | | | | | getInputBufferSize() function was added to AudioHardwareALSA for supporting of other sample rates in addition to 8 kHz Change-Id: I0bb7aa333f7c51135a3bc8b65c5e5528946c48d3
* LIBAUDIO: fit AudioPolicyManagerBase.cpp of libaudio to AudioFlinger'sUK KIM2010-09-031-18/+24
| | | | | | | fit latest code to enable A2DP feature Change-Id: I9e11a6e611efd9443fdecd496238efe575358c75 Signed-off-by: UK KIM <w0806.kim@samsung.com>
* Move crepo-conditionals to the leaves.Jean-Baptiste Queru2010-09-031-0/+2
| | | | | | | | | | | | Two benefits: -this follows the convention that all Android.mk files are included, i.e. that reading an Android.mk file shows the entire picture. -this allows some of the leaves to become non-conditional, to increase the number of device-specific modules that are compiled in each build, which allows catching build breakages earlier. Change-Id: I060a4aecc4b5d53b9ca56f13b8599b8fa560f896
* LIBAUDIO: use libaudio of lsi, alsa-lib, alsa-utils, not generic lib.UK KIM2010-08-313-3/+126
| | | | | | | disable BOARD_USES_GENERIC_AUDIO feature modified libaudio, alsa-lib, alsa-utils to build according to crespo's source tree. Change-Id: I3f8b57e60c1ddd691ab9d85a161705a833155e4e
* S5PC11X: crespo: add alsa-lib, alsa-utils, libaudio, libcameraJeong-Seok Yang2010-08-257-0/+7249
Change-Id: I4a6ee248b407c67682eb8884d1176f4807288c7c