History log of /hardware/libhardware/modules/usbaudio/audio_hal.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
981f7744968c858838a453f796fc5796ab04bbdb 03-May-2017 Eric Laurent <elaurent@google.com> usb audio: check proxy_prepare() errors in opne_input_stream()

Make sure that open_input_stream() reflects audio parameters
modifications done by proxy_prepare() and returns an error with
proposed parameters if needed.
Alos do not overwrite adev->device_sample_rate when opening an
input stream as this is driven by the output stream.

Bug: 37949012
Test: audio capture, playback and calls over USB headset.
Change-Id: I45fcd895b9a95e7673f2232b4a98c74be0548d0d
/hardware/libhardware/modules/usbaudio/audio_hal.c
64345f8f2e80b96182e1ac30d0235761e85dd6c2 06-Jun-2016 Paul McLean <pmclean@google.com> Simplify and clarify channel count/mask calculation for stream open routines.

Bug: 29154372
Change-Id: I849c02da0cc500e906cbda97b7258a3acf1e38f2
/hardware/libhardware/modules/usbaudio/audio_hal.c
994ac07b9699ea8d36855974314f86b66ee6ca86 02-Jun-2016 Paul McLean <pmclean@google.com> replace naked pthread_mutex_ functions with semantics-explicit lock/unlock functions.

Bug: 29103653
Change-Id: Ic91f75f8653f7946790b8b433236fd918b41f3a6
/hardware/libhardware/modules/usbaudio/audio_hal.c
76dba68c964d6cd54aab2dd012811ff93f950206 01-Jun-2016 Paul McLean <pmclean@google.com> Fix up inconsistent variable names.

Bug: 29065081
Change-Id: I1c8305afdebd7e1eedb4afafb0d06003c6a9e576
/hardware/libhardware/modules/usbaudio/audio_hal.c
6a75e4e06ab30d16e6e09affc0d68bd034c2d581 25-May-2016 Paul McLean <pmclean@google.com> Add dump() (i.e dumpsys media.audio_flinger) functionality to USB HAL

Bug: 28960293

Change-Id: Ia3a2b966079633d9357e5ae96247b771073f2de6
/hardware/libhardware/modules/usbaudio/audio_hal.c
9a1c30572b3b27e66cb7d50fd89ae52e22d8718c 25-May-2016 Paul McLean <pmclean@google.com> Ensure we get a default sample rate for "query" cases in open_input_device().

Bug: 28474561
Change-Id: I2946dda95ab47bd38a582f49e566541bc4e20bbf
/hardware/libhardware/modules/usbaudio/audio_hal.c
1d585cc7ab82ae96b95fcc85457e1834b08eabcf 24-May-2016 Paul McLean <pmclean@google.com> Lock input and output sample rates

Bug: 28474561
Change-Id: I551d346aea9c4f36b51a9c1a1c557c5e2757334b
/hardware/libhardware/modules/usbaudio/audio_hal.c
6d2cb933e0770e4b14179cc74f8ea1159815dd40 16-Dec-2015 Glenn Kasten <gkasten@google.com> Use FCC_2 and FCC_8 to highlight channel count assumptions

Bug: 21656069
Change-Id: Id2ef8e4ec716bf037a47da5ff7aec5d7ce35a1bf
/hardware/libhardware/modules/usbaudio/audio_hal.c
698dbd76b9c16bf1d2a3cb2d0268511e1ff4cd1d 03-Nov-2015 Paul McLean <pmclean@google.com> USB MONOtization issue fix.

Fix problem with defaulting to MONO playback on USB devices that
report 1 & 2 channels.

Bug: 24366970
Change-Id: I6ee1376be998ad1aade66927bf64ff5a2518c0f4
/hardware/libhardware/modules/usbaudio/audio_hal.c
c9515ce60d45556cb11f49a3e35eb8ddc40548a7 05-Aug-2015 Andy Hung <hunga@google.com> Add USB out_get_presentation_position() for timestamps

Bug: 21196672
Change-Id: Ic509e91a9c0d3421b78371207d7e63425e895e71
/hardware/libhardware/modules/usbaudio/audio_hal.c
703180998f088cc83ff8e58f5881c65963d557a8 20-Jun-2015 Eric Laurent <elaurent@google.com> audio HAL: reverse mutex locking order

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
/hardware/libhardware/modules/usbaudio/audio_hal.c
5e58a30b6f625d3c28d1c6b15eec3edf5643e227 11-Jun-2015 Andy Hung <hunga@google.com> Update USB channel mask handling

1 and 2 channels will default to mono and stereo
n > 2 will default to channel index masks

Bug: 16245854
Change-Id: I39f9d43385a93f48e323653fbde2e38a99b6256f
/hardware/libhardware/modules/usbaudio/audio_hal.c
f90f8f8ada73f8bbfc7cb70a3795cdcfad0c3240 08-May-2015 Andy Hung <hunga@google.com> Remove unused data conversion functions from usb hal

Change-Id: I4ccf8441171ad796e8954b1960f76411ebb86e9d
/hardware/libhardware/modules/usbaudio/audio_hal.c
182ddc7d130d078e3cdb1e1fbf02d86368a2ac47 06-May-2015 Andy Hung <hunga@google.com> Add output channel index mask to USB hal

Change-Id: I17818ac89f7ca591422cadfaa388590ff9c08613
/hardware/libhardware/modules/usbaudio/audio_hal.c
780f1f8149996442f43c77ec50518cc8030cd682 23-Apr-2015 Andy Hung <hunga@google.com> Add multichannel input to USB hal

Change-Id: I297669f7ba5a711923cf2f371d161819fad04740
/hardware/libhardware/modules/usbaudio/audio_hal.c
f55fdb2d555ae4047225238755209db02db40ebc 21-Feb-2015 Paul McLean <pmclean@google.com> Back out locking order and (over) simplification in out_write(), in_read().

Change-Id: I96954f883798f8e10adce56d9c33b70574999d1c
/hardware/libhardware/modules/usbaudio/audio_hal.c
3546c8d66bc9391c3605fa63f1cd34080d1a0224 20-Feb-2015 Paul McLean <pmclean@google.com> USB device disconnect latency

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
/hardware/libhardware/modules/usbaudio/audio_hal.c
65ec72b72b01fa2269e91de7c6eb3e6285f9fa86 18-Feb-2015 Paul McLean <pmclean@google.com> Improve locking/unlocking in *_set_params().

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
/hardware/libhardware/modules/usbaudio/audio_hal.c
9ab869acfd02cf841a6c8309ae45acf936557720 13-Jan-2015 Paul McLean <pmclean@google.com> Technical Debt Paydown - move/rename files

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
/hardware/libhardware/modules/usbaudio/audio_hal.c