19e990e480245af25ec03ff3a3f53b820b0732cd |
|
22-Mar-2018 |
Phil Burk <philburk@google.com> |
aaudio: improve logging to help debugging Use __func__ more often. Show thread entry and exit. Log illegal state transitions. Remove some unnecessary logs. Bug: 64310586 Test: use AAudio then look at the logs Change-Id: I2e289698efc897640588ba534b5513ac39b15043
/frameworks/av/services/oboeservice/AAudioServiceEndpointPlay.cpp
|
2329638e097622653cb2c4acc145b996e317a38b |
|
21-Nov-2017 |
Phil Burk <philburk@google.com> |
aaudio: use xruns detected in the service The service knows when an actual xrun occurs so we pass that value to the client. Bug: 38512417 Test: write_sine_callback -pl -n1 -s20 -c2 -u Change-Id: I9e5ff1edd2e9378957309280162d7cda855f5adb
/frameworks/av/services/oboeservice/AAudioServiceEndpointPlay.cpp
|
fbf031e8f197c916ae9c399f42926494ebdeb497 |
|
13-Oct-2017 |
Phil Burk <philburk@google.com> |
aaudio: cleanup logs and comments This CL should not change any code behavior except for log text. Mostly it removes redundant class names from the log. Test: CTS nativemedia/aaudio Change-Id: I6a6d01da080f536d5345f2b0deb32e92ed1e3d47
/frameworks/av/services/oboeservice/AAudioServiceEndpointPlay.cpp
|
83fb84498b8a83865e285ee84c253454c6f0a25b |
|
06-Oct-2017 |
Phil Burk <philburk@google.com> |
aaudio: fix small underflow when a stream is stopped Also remove inconsequential volume parameter. Bug: 67910437 Test: test_aaudio_monkey.cpp and write_sine_callback.cpp Change-Id: I6d11f3bfced3d579440f99c02d01a7d68af5c1e0
/frameworks/av/services/oboeservice/AAudioServiceEndpointPlay.cpp
|
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/AAudioServiceEndpointPlay.cpp
|
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/AAudioServiceEndpointPlay.cpp
|
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/AAudioServiceEndpointPlay.cpp
|
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/AAudioServiceEndpointPlay.cpp
|
fd34a9310659aa53e9e10d6826651577a75f6447 |
|
19-Jul-2017 |
Phil Burk <philburk@google.com> |
aaudio: reduce glitching by improving sleep timing ALways sleep a minimum time to avoid busy wait in real-time thread. Account for wakeup jitter in threads on the other side of a FIFO. Avoid race condition that caused a longer sleep than necessary. Fix calculation of mFreeRunning for capture mode. Also added systrace logging, which was used to debug this. Bug: 63814792 Test: Run GStomper on Walleye with MMAP on, see bug Change-Id: I7b20098580ff454365425bd21e43c17ade532a0a
/frameworks/av/services/oboeservice/AAudioServiceEndpointPlay.cpp
|
c7abac4329e15cda4bbbd25f8fc4a93b70d70d0a |
|
17-Jul-2017 |
Phil Burk <philburk@google.com> |
audio: reduce logspam from MMAP mode Bug: 63760826 Test: run CTS nativemedia/aaudio and notice less logging Change-Id: I04564963f85577a53f40f1bad064f5e79723ac76
/frameworks/av/services/oboeservice/AAudioServiceEndpointPlay.cpp
|
cb4dae216758d9e9a28050f65097f1ce905c03e9 |
|
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 Merged-In: I86151bbb637ff172d2fd5f813056eab13a7bcd3c Change-Id: I86151bbb637ff172d2fd5f813056eab13a7bcd3c
/frameworks/av/services/oboeservice/AAudioServiceEndpointPlay.cpp
|
097da17bd5af3689194fa6d7fce3a5a114717c4c |
|
01-Jul-2017 |
TreeHugger Robot <treehugger-gerrit@google.com> |
Merge "aaudio: fix mixer volume" into oc-dr1-dev
|
968e85e37906545fc85ee42a1e61700d26543a65 |
|
01-Jul-2017 |
Phil Burk <philburk@google.com> |
aaudio: fix mixer volume Bug: 63176151 Test: play write_sine.cpp in both legacy and MMAP modes Change-Id: If5fb61fe959dbc361ff8f95ca3d743e877800163
/frameworks/av/services/oboeservice/AAudioServiceEndpointPlay.cpp
|
a17ae74e3570a5afa2ece02d2b4090ba7b731bc1 |
|
30-Jun-2017 |
Eric Laurent <elaurent@google.com> |
aaudio: modify endpoint sharing logic A new Client stream in shared mode can share an existing endpoint if it has no preferences or compatible device, sample rate and channel count requests. Bug: 62961537 Test: play and capture with AAudio in mmap mode Change-Id: I38536fb486dfc06f4399f7d02248384583fd3a17
/frameworks/av/services/oboeservice/AAudioServiceEndpointPlay.cpp
|
11e8d335b1da528ee771b19b63df23ae6fd52f41 |
|
24-May-2017 |
Phil Burk <philburk@google.com> |
aaudio: close MMAP stream if client dies Notify client when audio service dies. Clear connection. Notify AAudio service when client dies. Close client streams. Use sp<> to track ServiceStreams. Bug: 38267698 Test: test_no_close.cpp Change-Id: I5f1699ed3b8b7bd960947c0028a89ca8419ce7a0
/frameworks/av/services/oboeservice/AAudioServiceEndpointPlay.cpp
|
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/AAudioServiceEndpointPlay.cpp
|