4e1af9fc9c1108d4514e92774f750bcd434dbbcc |
|
04-Jan-2018 |
Phil Burk <philburk@google.com> |
aaudio: implement sessionId for effects If a sessionID other than AAUDIO_SESSION_ID_NONE is requested then legacy data path will be forced. SessionID is implemented for MMAP data path but not used. It is easier to implement it now then try to figure it out later. Bug: 33268927 Test: test_session_id.cpp will be moved to CTS when stable Change-Id: I3ea67f57c1cbe24a512980f1352b917ab3cb6387
/frameworks/av/include/media/MmapStreamInterface.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/include/media/MmapStreamInterface.h
|
18b570146c971fe729c391bfbb869391084e623d |
|
14-Feb-2017 |
Eric Laurent <elaurent@google.com> |
audioflinger: add standby() method to MmapStreamInterface Bug: 33398120 Test: open/start/stop/close MMAP no IRQ stream for capture and playback Change-Id: I48ec202a71565f759c441c2a835d8c8190e76334
/frameworks/av/include/media/MmapStreamInterface.h
|
fc23520d9c3f15e28baa81de5f7dfa6c1b0af426 |
|
21-Dec-2016 |
Eric Laurent <elaurent@google.com> |
audioflinger: define MMAP HAL Stream control interface Added definition of MmapStreamInterface used by Oboe service to open, configure and control MMAP streams at the audio HAl. This interface is implemented by audioflinger and abstracts the details of interacting with audio policy manager and audio HAL from Oboe service. A callback interface MmapStreamCallback is also defiend to communicate volume and routing changes back to Oboe service. Bug: 33398120 Test: build Change-Id: If953d44903aaa4eb17ff16f1922ca16e5e0e0a87
/frameworks/av/include/media/MmapStreamInterface.h
|