523b3047af443d0a51141ddabd328d52be5a23b0 |
|
13-Sep-2017 |
Phil Burk <philburk@google.com> |
aaudio: keep track of streams using strong pointers Maintain strong pointer to service stream during service calls. Use simple AAudioStreamTracker instead of complex HandleTracker. Bug: 65280854 Test: affects all MMAP streams, run all CTS tests, etcetera Change-Id: I3d2ed8b588ea39c216dacd4dea503b11c33f36f3
/frameworks/av/services/oboeservice/AAudioServiceStreamShared.h
|
39f02ddfbfd9313370d862a6c4727826379a319a |
|
04-Aug-2017 |
Phil Burk <philburk@google.com> |
aaudio: fix EXCLUSIVE mode interfering with SHARED The MMAP endpoints were not tracked by the EndpointManager so it could not broker EXCLUSIVE access. To fix this the MMAP stream was refactored to use a per-client stream and a per-device endpoint. Cleanup close() of MMAP stream. Add AAudioServiceEndpointShared.cpp. Extract AAudioServiceEndpointMMAP from AAudioServiceStreamMMAP. Track MMAP endpoints so we can manage EXCLUSIVE and SHARED access. Bug: 64494572 Bug: 64310586 Test: see bug, use write_sine to play a shared stream and a excl stream Change-Id: I5053193abfd9b8a69a2f7e1110739d65e2af5d64 Merged-In: I5053193abfd9b8a69a2f7e1110739d65e2af5d64
/frameworks/av/services/oboeservice/AAudioServiceStreamShared.h
|
a5222e298c294781067950a7cc319d3278fa845a |
|
28-Jul-2017 |
Phil Burk <philburk@google.com> |
aaudio: improve error logging Report when INVALID_STATE returned. This was used to debug monkey test errors. Cleanup some log messages. Improve "dumpsys media.aaudio" Bug: 64310586 Test: CTS nativemedia/aaudio Change-Id: Ifbcac4794cda22cccbacff6352243c0ef4589c53
/frameworks/av/services/oboeservice/AAudioServiceStreamShared.h
|
97350f9df7252c881f011a410fcd9e6d766d2bee |
|
22-Jul-2017 |
Phil Burk <philburk@google.com> |
aaudio: improve accuracy of timestamps Account for latency added by the AAudio service. Fix input timestamps. Bug: 37080396 Test: test_timestamps.cpp input_monitor.cpp Change-Id: I1053cd21af722bb9b9371df4e5731bf4a0a57b0b
/frameworks/av/services/oboeservice/AAudioServiceStreamShared.h
|
a54f1283fdd9adbd64ecca4e14af56aaa0e8c825 |
|
02-Jul-2017 |
Eric Laurent <elaurent@google.com> |
aaudio: indicate client UID and PID to audio flinger Implement correct indication of client UID and PID to audio flinger for AAudio MMAP streams in both exclusive mode and shared mode. - Add start/stop client methods on MMAP streams used only when the MMAP stream is in AAudio service and carries a mix of shared streams. - Add "In Service'" indication from "client" side to AAudioServiceStreamMMAP so that the behavior can be adapted accordingly. - Modify logic on audio flinger side with regard to mmap tracks and audio HAL stream activity: - use same audio session for all clients on a same stream to match audio policy logic to share same direct output stream for clients on same session. This is also more consistent with current volume and effect handling as all MMAP clients sharing the same output stream have the same volume and use case. - start/stop the HAL when the stream is started/stopped with the initial client handle (returned when the stream is opened) but do not create a track. AAudioService implementation will always send an additional start command before first client starts and a stop command after last client stops, in both shared and exclusive mode. - start/stop a track only if the start/stop stream command is received with a handle different from the initial handle. - Allow more than one active client from the same UID on a MMAP input in audio policy. Bug: 62950008 Test: verify playback and capture in mmap mode Change-Id: I86151bbb637ff172d2fd5f813056eab13a7bcd3c
/frameworks/av/services/oboeservice/AAudioServiceStreamShared.h
|
98d6d9227f6599a5aa7b023217c02a01cc4536cb |
|
06-Jul-2017 |
Phil Burk <philburk@google.com> |
aaudio: stop calling virtual methods from destructor Was calling close(), which is abstract and virtual. This may have been related to some audioserver crashes. Also cleaned up some strong pointer handling. Bug: 63390734 Bug: 63353455 Test: run CTS nativemedia/aaudio many times Change-Id: Ib95aed60a64771b64395c67f0921c67146f9d10f
/frameworks/av/services/oboeservice/AAudioServiceStreamShared.h
|
5ef003b750ae5188c36d6512584da442be125148 |
|
30-Jun-2017 |
Phil Burk <philburk@google.com> |
aaudio: disconnect when onTearDown() called It will be called, for example, when switching from speaker to Bluetooth. Bug: 62883778 Test: run a long app and switch to or from Bluetooth Change-Id: Iafb9b52d85c30fee71de46abfb99a27a1daabf59
/frameworks/av/services/oboeservice/AAudioServiceStreamShared.h
|
ec89b2e2f8c84a7d3936db1a888034f4a4b0df16 |
|
21-Jun-2017 |
Phil Burk <philburk@google.com> |
aaudio: fix CTS for MMAP mode Improve calculation of buffer capacity based on requested minimum. Adjust timing of start() to reduce underflows. Track ServiceEndpoints based on requested deviceId. Fix getFramesRead() and flush() behavior. Fix timeouts due to ClockModel lateness bug. Misc cleanup. Bug: 37755299 Test: test_aaudio.cpp Change-Id: I637c16e87fbe14b6f28c60aeea0b9dfed965ecd0
/frameworks/av/services/oboeservice/AAudioServiceStreamShared.h
|
87c9f646a94259d7c321c3b3d5947fa1778f5ac2 |
|
17-May-2017 |
Phil Burk <philburk@google.com> |
aaudio: lower latency using MMAP capture MMAP can be enabled by setting system properties. Bug: 38267780 Test: input_monitor.cpp Change-Id: I5e86fd1d9baef4fe59837ccbca7971acbb54d8b5 Signed-off-by: Phil Burk <philburk@google.com>
/frameworks/av/services/oboeservice/AAudioServiceStreamShared.h
|
71f35bb687476694882a617ba4a810a0bb56fe23 |
|
14-Apr-2017 |
Phil Burk <philburk@google.com> |
aaudio: fix SHARED MMAP mode in server plus other bugs Fixed some buffer miscalculations, and some NPEs in the close() code. Added debugging and some general cleanup. Fixed data conversion. Fixed start/pause/flush in server. Added reference counting in server for endpoints. Programs can now be ran more than once. General code cleanup. Reconnect with service if server dies. Move stop() logic into server for better synchronization. Add sleep to prevent race condition when closing an MMAP stream. Bug: 33398120 Test: two write_sine_callback.cpp can be run simultaneously Change-Id: Ibb006215a498868c222228d675ff961d7e0bf514 Signed-off-by: Phil Burk <philburk@google.com>
/frameworks/av/services/oboeservice/AAudioServiceStreamShared.h
|
c0c70e3c7dd10bc2c0caffcab1f3f5fb406b35fb |
|
09-Feb-2017 |
Phil Burk <philburk@google.com> |
AAudioService: integrated with audioserver Call the MmapStreamInterface from AudioFlinger instead of the FakeHAL. Fix sending timestamps from the thread. Add shared mode in service. Bug: 35260844 Bug: 33398120 Test: CTS test_aaudio.cpp Change-Id: I44c7e4ecae4ce205611b6b73a72e0ae8a5b243e5 Signed-off-by: Phil Burk <philburk@google.com> (cherry picked from commit 7f6b40d78b1976c78d1300e8a51fda36eeb50c5d)
/frameworks/av/services/oboeservice/AAudioServiceStreamShared.h
|