summaryrefslogtreecommitdiffstats
path: root/audio
Commit message (Collapse)AuthorAgeFilesLines
* Allow headset plug/unplug in the emulatorJim Kaye2017-01-251-8/+27
| | | | | | | | | | | | | | | | Have the goldfish device support WIRED_HEADPHONE and WIRED_HEADSET in addition to SPEAKER. Support more audio sample rates. Set 'useDevInputEventForAudioJack' so we respond to settings from the emulator. BUG: http://b/32437768 Test: Required for and covered by CTS Verifier (cherry picked from commit e5d00ff412de76d1d0146d0aa7fc6243f6d98ffa) Change-Id: Ic35c38d7169a02bedf19b148703ff4993d1037b4
* Increase audio input buffer sizesJoshua Lang2017-01-191-1/+1
| | | | | | | | Audio input was distorted at the small buffer size. Test: Record audio and playback Change-Id: Iff92957a4452aea69238cc2cdb39c7e8a95fc799 (cherry picked from commit 037f564660877780b64151e0bbd05ce6735d5985)
* Fix audio input channel verificationJoshua Lang2017-01-191-4/+2
| | | | | | | | Channel mask verification bug caused wrong channel count to be selected. Test: Run CtsMedia module Change-Id: I2275511a136bfc61bdf57a09ae800a37b145e948
* Reduce audio buffer sizesJoshua Lang2017-01-191-3/+4
| | | | | | | | | | Reduce input stream buffer size to accommodate tests Set output stream buffer size in terms of ms to match input buffer Test: CtsMediaTestCases android.media.cts.AudioRecordTest#testTimestamp Bug: 31648354 Change-Id: Ifba7773cf48bfe985be955e0911b15dc85ec9b54 (cherry picked from commit 6b8a4352230ca15aa859d532f0d5eb967ad02985)
* Rearrange audio locking on standbyJoshua Lang2017-01-191-6/+15
| | | | | | Test: Run CtsMedia module Change-Id: I8947f8a84047101748df93b12d2b20651225b83a (cherry picked from commit a7444150fec00213b73c69a59c0472f6217d7e48)
* Fix audio mem corruption on stereo-mono conversionJoshua Lang2017-01-191-1/+1
| | | | | | | Test: Run CtsMedia module and look for audioflinger crashes Bug: 31648354 Change-Id: Ia7594bca0fbb495f83e9dd4ace170c9cdf87df52 (cherry picked from commit a3381f3117bfc112d50e278c38a8b97562a621c6)
* Fix for dropped output audio framesJoshua Lang2017-01-191-1/+17
| | | | | | | | | | On every standby, some audio frames were being dropped causing the presentation frame count to slowly drift from the written frames. Test: Run CtsMedia module repeatedly Bug: 31648354 Change-Id: I1075ffaad4e1baec7fdc7ebdcc9391fbb6945d28 (cherry picked from commit 818cfde6a65e7a212486092dbbcbb6f0b8de8cce)
* Offload goldfish audio device read/writesJoshua Lang2017-01-191-221/+631
| | | | | | | | | | | Offload pcm read/write to worker threads as these accesses sometimes get blocked by the host for longer than 30 ms. Whenever there is a lack of data during recording or buffer space for playback, the audio data and time duration is faked to simulate a smooth audio device. Test: Run CtsMedia module Bug:31648354 Change-Id: I323fdfcb8b273ac606021c10315a7a9f1d4027a6
* Enable audio channels and set default volumeJoshua Lang2017-01-191-0/+30
| | | | | | | This fixes the audio device being muted by default. Test: Boot emulator and check audio is not muted Change-Id: Ied6b02910dcb23fdebd3b8a1e3f8ec23d2d78ff1
* Adding get_presentation_position to gf audioJoshua Lang2017-01-191-10/+64
| | | | | | | | | | | | | Cts tests require keeping track of audio presentation position at various playback rates. Added playback rates to match required 6.0 CDD document. Added get_presentation_position which simulates a playback rate. Test: Run CtsMedia module Bug: 31648354 Change-Id: I688c9db784a5ebbd9a790df38f5d07ca7ac24572
* Fix gf audio to return success when setting paramsJoshua Lang2017-01-191-4/+18
| | | | | | | | | CTS tests failing caused by being unable to create audio patches caused by audio device not returning success status when setting parameters Test: Run CtsMedia module Bug:31648354 Change-Id: I40acf834afc694faa7514dc9b1f83bffc0f118ee
* Reduce period size to improve audio stutteringJoshua Lang2017-01-191-1/+1
| | | | | | Test: Listen to audio Change-Id: Ic16dbb56c6fdd320126db08580eb24b18316f3dc (cherry picked from commit ed9c5643996f2973d9aad5f9fc371d51fb3d4188)
* Fix audio output period size and buffer sizeJoshua Lang2017-01-191-6/+7
| | | | | | | | | Previous values were causing many test failures due to increased audio latency and incorrect buffer sizing. Test: Run cts audio playback tests Change-Id: If68449bbbca0ef219b44401192fa5d22a6c45413 (cherry picked from commit 0cc9aef3408231a7d5cec47879f2fe65102d9441)
* Add tinyalsa goldfish audio deviceJoshua Lang2017-01-192-1/+1052
| | | | | | | | | | | | | This is a basic implementation of a tinyhal audio hal. It reduces the restrictions on audio input to rates/formats described by 6.0 CDD. It keeps legacy audio output restrictions: 44.1khz, stereo, 16 bit. Fallback to legacy audio device when alsa device not detected. Test: Boot emulator and test audio with kernel supporting both alsa and legacy audio device Change-Id: Ia2c92fc5f4858dcd007159d14c76b81d18a7b605 (cherry picked from commit b002dd7726d2003d3294e026d61af90dc30f8efb)
* Deprecating old golfish_audio HALJoshua Lang2017-01-191-0/+0
| | | | | | | | Moving to _legacy to use as fallback. Test: Boot emulator kernel built with old goldfish_audio device Change-Id: Ia2519589a3c6baf28a8b84eb4a8c6bcfe4a59d08 (cherry picked from commit 7c87461bf6f9dc1c211c33d241a0117c690ff5df)
* audio HAL: add parameters to open stream functionsEric Laurent2014-07-271-2/+5
| | | | | | | | Pass device address (and audio source for inputs) to open_output_stream() and open_input_stream() audio HAL functions. Bug: 14815883. Change-Id: I35932bd5c54d9da2e495d8edc54c044e7fc7c2a2
* Add audio_input_flags_t to HAL open_input_streamGlenn Kasten2014-07-161-1/+2
| | | | Change-Id: I14a437e0a93f26002c27aca17e11a771478ea84b
* Fix warningsGlenn Kasten2014-07-151-0/+1
| | | | Change-Id: I343bc4f81eb08b8cc29b02c94632f03b435abe0c
* Move goldfish from fdprintf to POSIX dprintf.Elliott Hughes2014-05-221-35/+35
| | | | | Bug: 11156955 Change-Id: Ice06dcd5e1a1b6c682a5c5f4dbec5ac6a4837f84
* device/generic/goldfish: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATHColin Cross2014-01-241-1/+1
| | | | | | | LOCAL_MODULE_PATH doesn't work for multiarch builds, replace it with LOCAL_MODULE_RELATIVE_PATH. Change-Id: I4e4ceec61d026bbe74ba604554c06104bde42e5e
* Add liblogYing Wang2013-04-091-1/+1
| | | | | Bug: 8580410 Change-Id: I2c07b8ce85aff341575ee8c3f509f64e252b8ed4
* audio: get rid of legacy audio HAL.Eric Laurent2012-11-164-582/+693
| | | | Change-Id: Iab96f1cdae507976fff6073ac2c1905d8381e62f
* Remove obsolete dependency on libmediaGlenn Kasten2012-03-192-2/+0
| | | | | | Also remove include AudioRecord.h Change-Id: I7f8cc22fe199a4a51279c508974c03bf1173f001
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-2/+2
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: If872bb8ca6774d4e27eaa7f6f92405fb4737125e
* Rename LOGV(_IF) to ALOGV(_IF) DO NOT MERGESteve Block2011-10-251-5/+5
| | | | | | | See https://android-git.corp.google.com/g/#/c/143865 Bug: 5449033 Change-Id: I8bed42053c6ec23943e1ea3546167f422671fc0f
* Merge "Remove the simulator target from all makefiles. Bug: 5010576"android-sdk-adt_r20android-sdk-adt_r16.0.1android-sdk-4.0.3_r1android-sdk-4.0.3-tools_r1android-cts-verifier-4.0_r1android-cts-verifier-4.0.3_r1android-cts-4.0_r1android-cts-4.0.3_r2android-cts-4.0.3_r1android-4.0.4_r2.1android-4.0.4_r2android-4.0.4_r1.2android-4.0.4_r1.1android-4.0.4_r1android-4.0.3_r1.1android-4.0.3_r1android-4.0.2_r1android-4.0.1_r1.2android-4.0.1_r1.1android-4.0.1_r1tools_r20ics-plus-aospics-mr1-releaseics-mr1ics-mr0-releaseics-mr0ics-factoryrom-2-releaseJeff Brown2011-07-121-8/+0
|\
| * Remove the simulator target from all makefiles.Jeff Brown2011-07-111-8/+0
| | | | | | | | | | | | Bug: 5010576 Change-Id: Iaacba217266598d499a8d2027dd1dab29dde82ba
* | Audio HAL: added interface for audio preprocessingEric Laurent2011-07-051-0/+2
|/ | | | Change-Id: Ie69bb2151155dd5aa4072c28fed60a0096a08fe5
* goldfish: add legacy audio HALDima Zavin2011-04-275-0/+807
Change-Id: I7096af32ae11b955e4127864ad2768eca8c424ff Signed-off-by: Dima Zavin <dima@android.com>