summaryrefslogtreecommitdiffstats
path: root/modules/usbaudio/audio_hal.c
Commit message (Collapse)AuthorAgeFilesLines
* Add USB out_get_presentation_position() for timestampsAndy Hung2015-08-061-2/+10
| | | | | Bug: 21196672 Change-Id: Ic509e91a9c0d3421b78371207d7e63425e895e71
* audio HAL: reverse mutex locking orderEric Laurent2015-06-191-26/+51
| | | | | | | | | | | | Do not use main audio HAL mutex but a specific stream mutex when preventing control thread starvation by playback or capture threads. This will prevent systematic locking of main HAL mutex in read ot write and avoid glitches. Bug: 21880828. Bug: 18489202. Change-Id: I3054e0d93b823bd9d2fb84a49e9c5bbbe728262a
* Update USB channel mask handlingAndy Hung2015-06-101-2/+8
| | | | | | | | 1 and 2 channels will default to mono and stereo n > 2 will default to channel index masks Bug: 16245854 Change-Id: I39f9d43385a93f48e323653fbde2e38a99b6256f
* Remove unused data conversion functions from usb halAndy Hung2015-05-111-68/+0
| | | | Change-Id: I4ccf8441171ad796e8954b1960f76411ebb86e9d
* Add output channel index mask to USB halAndy Hung2015-05-111-7/+18
| | | | Change-Id: I17818ac89f7ca591422cadfaa388590ff9c08613
* Add multichannel input to USB halAndy Hung2015-05-111-65/+35
| | | | Change-Id: I297669f7ba5a711923cf2f371d161819fad04740
* Back out locking order and (over) simplification in out_write(), in_read().Paul McLean2015-02-201-3/+4
| | | | Change-Id: I96954f883798f8e10adce56d9c33b70574999d1c
* USB device disconnect latencyPaul McLean2015-02-201-42/+3
| | | | | | | | | Eliminated unnecessay locking/unlocking in adev_set_parameters(). Corrected and simplified lock/unlock order in out_write() and in_read(). Bugs 19363750 Change-Id: Iede9a95f5f17645d9780b344fd5ee009cd9fa94d
* Improve locking/unlocking in *_set_params().Paul McLean2015-02-181-21/+27
| | | | | | | | | | Also clean up logging. This doesn't completely fix the referenced bug, but substantially reduces the instances of long latency on USB device disconnect. Bug: 19363750 Change-Id: If0a6d64c4973277ae2474e121198e47df973965e
* Technical Debt Paydown - move/rename filesPaul McLean2015-01-131-0/+1168
Moved audio (alsa actually) utils files to system/core/alsa_utils. Renamed "audio" utilities to "alsa" to better relect their purpose. Renamed audio_hw.c -> to audio_hal. c to better reflect its purpose. Change-Id: I67c7d47ee02abafd3e12c4c99d605a62e0f59122