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
Fix problem with defaulting to MONO playback on USB devices that
report 1 & 2 channels.
Bug: 24366970
Change-Id: I6ee1376be998ad1aade66927bf64ff5a2518c0f4
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
1 and 2 channels will default to mono and stereo
n > 2 will default to channel index masks
Bug: 16245854
Change-Id: I39f9d43385a93f48e323653fbde2e38a99b6256f
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
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
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
2015-01-13 09:37:06 -08:00
Renamed from modules/usbaudio/audio_hw.c (Browse further)