summaryrefslogtreecommitdiff
path: root/audio/hal/audio_hw.h
AgeCommit message (Collapse)Author
2015-08-14Fix distorted audio while on hangouts callGlenn Kasten
Bug: 22594886 Change-Id: I1caa47d0b217de083a68483a1cea4b9addb1b170
2015-06-22Dynamic configuration of low latency buffer sizeGlenn Kasten
Bug: 20226809 Change-Id: I864aa498c3a04545a9e61aa56a96adc949393777
2015-06-22audio: set smp affinity for FastMixer thread on T132Maneet Singh
On T132, IPI latency is observed to be 100's of microseconds. This change and corresponding kernel change for APB DMA interrupts will ensure that audio interrupt and waking thread, FastMixer, both run on same core, thereby eliminating IPI latency altogether. Bug: 20226809 Change-Id: I6d3b7006acfaee4d21ea7ac89ad2cce3494a99eb
2015-06-22audio: handle audio underruns using silence playbackManeet Singh
Audio underruns can be handled either by stopping pcm device and preparing it again or by playing silence frames till application fills the buffer again. On average, stopping and preparing pcm device takes 2-4 times more time than just playing silence frames and let the application catch-up. So switching to that approach now. Bug: 20226809 Bug: 20300203 Change-Id: I53a1d32879e594d15fa2b0142852649edb2b5835
2015-06-19audio HAL: fix thread starvationEric Laurent
Fix thread starvation issue where the capture or playback threads running in FIFO priority would constantly acquire the stream mutex preventing other threads to complete routing commands. Bug: 21880828. Change-Id: I36e9c609857dd1bc959809326350a04c3af92228
2015-03-26Revert "Revert "Revert "Revert "audio: use same card and device for PCM amd ↵Eric Laurent
compress offload path"""" This reverts commit 83472e8f2be82832d36d4de9324624e6d0d417ed.
2015-03-25Revert "Revert "Revert "audio: use same card and device for PCM amd compress ↵Eric Laurent
offload path""" This reverts commit 6ea970a1e88c14219708b1f1ad0937d149167fa0.
2015-03-04Revert "Revert "audio: use same card and device for PCM amd compress offload ↵Eric Laurent
path"" This reverts commit 5da021f1ae8f12ae6e23edeea44ea805960d6e53. Bug: 16683770. Change-Id: Ib8494c37725eb00dcb64ff490985cc1d0c0e4b8a
2015-01-06flounder: Disable FastCapture on BT-SCORoger Hsieh
Current SCO_PERIOD_SIZE will make FastCapture turned on for a call initiated with BT-SCO. Increase it to apply AudioStreamIn instead. Bug 18710410 Change-Id: Idfe641a96c137d8a7973a7b9e638d9911e5cb0f9
2014-11-26Revert "audio: use same card and device for PCM amd compress offload path"Eric Laurent
This reverts commit 476a97240a37b5ad79f2db295a7f1eb58959982a.
2014-11-25audio: use same card and device for PCM amd compress offload pathRoger Hsieh
Bug: 16683770 Change-Id: I6fe056db6ea1ed3a7be7341873b8b2c3876fb935
2014-11-21device: htc: audio: Modify offload out_pause functionandy_su
Fix codec doesn't close during pause condition (mr1) Bug: 16683770 Change-Id: Idff3ad7dc942021d300a23b70560e9039b284879 Signed-off-by: andy_su <andy_su@htc.com>
2014-11-21device: htc: flounder: audio: Add support offload volume controlandy_su
Add support for offload volume control. Bug: 16683770 Change-Id: I6ceb89b6c3fa016c4f1ff00e7573a1337f158415 Signed-off-by: andy_su <andy_su@htc.com>
2014-10-07flounder: Speaker L/R channel based on orientationandy_su
Bug: 17459931 Change-Id: I654c9034281e024b8ce82f65c50eeea26ada6db6 Signed-off-by: andy_su <andy_su@htc.com>
2014-10-06audio: fix deadlock with echo reference accessEric Laurent
There is a problem with mutex acquisition order when removing or adding an echo reference from do_input_standby_l() or start_input_stream(): the output stream mutex is acquired after the audio device mutex creating a potential cross deadlock as the required order is output stream mutex then audio device mutex. Bug: 17830596. Change-Id: I465f4eeb1f1f2e76d6cc3d685d96e4758c6bc473
2014-09-16Change lock order to avoid priority inversionsGlenn Kasten
Bug: 17129712 Change-Id: Ib0336e2b7f4c15f999d3e5984b1d87bfde884a65
2014-09-06Audio streaming from DSP after hotword on flounderChris Thornton
Modifies the HAL and soundtrigger to support streaming audio samples from the DSP. Bug: 16731718 Change-Id: I65c98281f6f01c9974714324b14d0a2c390d4e00
2014-08-14Temporary workaround for boot failureGlenn Kasten
Squashed commit of the following: commit 99773ffa56d912bb585ea72b0bd8147d811aa56b Author: Glenn Kasten <gkasten@google.com> Date: Thu Aug 14 15:12:29 2014 -0700 Revert "flounder: audio: add support for offload" This reverts commit 62e1aabc8b0528bbacd3cd587933d6567027097c. commit f68ef772f6c83cf0c246c075dabd35c28c0bea4f Author: Glenn Kasten <gkasten@google.com> Date: Thu Aug 14 15:12:14 2014 -0700 Revert "flounder: audio: fix headphone control name typo" This reverts commit eaf2647725208900eb48efb35bc8cf2e9333ba29. commit 168e3f9cd3d4ca67e3442f3b09268eb7affd6221 Author: Glenn Kasten <gkasten@google.com> Date: Thu Aug 14 15:11:05 2014 -0700 Revert "flounder: audio: Route pcm to low latency path" This reverts commit 302af93c0d414d8ff177199c279b1be9f3ab0e31. Bug: 17034131 Change-Id: I406155176d55c03cd0e4f984047371d15e70ee8d
2014-08-13flounder: audio: add support for offloadRavindra Lokhande
Bug: 14616443 Change-Id: I7d4db479eba1086af0a1641af3b4089471dcdba0 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2014-08-09audio HAL: remove unneeded HDMI audioXia Yang
Bug: 16900929. Change-Id: Ib6c07533cde93685dec49f112fe1b18198388a85
2014-08-07flounder: audio: add support for visualizer offloadingRavindra Lokhande
Change-Id: I669c2c3a5802378e8490690f09ab143876dc71d3
2014-07-31device: htc: flounder: audio: Change input period size by audio_input_flagbryant_liu
Bug: 16522823 Change-Id: Idb568e872a965bf37cec1aabe3ba49127f98c3b9
2014-07-22flounder: audio: Add headset VR settings and increase record gain for 6dBbryant_liu
Bug: 15879456 Change-Id: I6adc35063cb9677267fb9b6123e855dece138e00 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2014-07-15flounder: audio: Add AEC function for VOIP callbryant_liu
Change-Id: I40b44d7c42cadb607d8d86106dde81d31b68062f
2014-07-02Reduce input and output to 2 buffers of 256 frames eachGlenn Kasten
Bug: 16011714 Change-Id: I961954c53128cd5b67035383721ae7b7027d2378
2014-07-01Use symbols for cardsGlenn Kasten
Change-Id: Ieace75510ce351b1f7953fb938e8e0a200015ba7
2014-06-25flounder: audio: trigger codec I2S when on bootyuchao_hsu
Change-Id: Ia655c9a169148f1c40eed6cbbc3ac712efc05c90 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2014-06-12Revert "flounder: audio: add support for offload"Dmitry Shmidt
This reverts commit 4b4b696972b2978c81948e400734b7a4c94f5ac9. Change-Id: If522ae0fbf808c3484e06349a2dd2db31707acee
2014-06-11flounder: audio: add support for offloadRoger Hsieh
Change-Id: I2d7d31c99c320ae34b234f4f2f685f2907c78938 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2014-05-02audio: fix bluetooth SCO downsamplingEric Laurent
- Take rounding into consideration when calculating output frame count after downsampling to always ask more frames than needed to the resampler. - Adjust SCO ALSA PCM device frame size so that writes are evenly paced to avoid underruns due to bursty writes. Bug: 14240418. Change-Id: I119454d9725cc400cd5f53d7f9cb11ffd31b1574
2014-04-02flounder: audio: hal: Set BT sample rate to 8K Hz and add resample inwesley_wang
output stream Change-Id: Ibcada2e7e28551062f78f13522833c5798f016ef Signed-off-by: wesley_wang <wesley_wang@htc.com>
2014-03-20Reduce audio output configuration to 2 buffers of 512 framesGlenn Kasten
Change-Id: I7d4a7497fbe1c8e25184c358b239041524da0333
2014-02-21flounder: audio: hal: Set TFA9895 amplifier mode in Audio HALwesley_wang
Change-Id: I09bbc2af9ecb9a12c2493056fa461a71ac7a7bf5 Signed-off-by: wesley_wang <wesley_wang@htc.com>
2014-02-10flounder: audio: hal: Set RT5506 amplifier mode in Audio HALTony Hsieh
Change-Id: I26e129d200d9c889e5c61abb27923d47a092415b Signed-off-by: Tony Hsieh <tony.ml_hsieh@htc.com>
2013-12-19audio: new audio HALEric Laurent
First flounder audio HAL implementation. - Supports several mixer cards with one mixer_paths_X.xml file for each card. - Each output stream can drive several ALSA PCM streams. All PCM streams on the same output stream must have the same configuration (sampling rate, period size ...). - Each PCM stream can be connected to only one output device (e.g headphone) at a time. - PCM capture device is always at 48kHz to allow concurent playback and capture. Resampling is done by the input stream in the HAL. Resampling will be removed when AudioFlinger supports down sampling from 48 to 8. - SCO playback and capture relies on Audio HUB for 48 to 8/16 resampling. - Only tested on Ardbeg board - Only tested playback and capture to/from headset. - mixer_paths_1.xml only defines headset paths. - place holders for voice call use cases are present to prepare migration to a generic tegra HAL. Change-Id: I8f95a53bb85ca7e42611eee0418fa58442a7f750