Commit: 99849cb584bf30ebe8be93279de637de24926374
Parent: c44c923bc9789348e5f7d10dbb734b4da32234f7
Author: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-06-06 11:27:45
Tree: 6ffde616a101bd5eba0bcc139204fda9faa0e448

android/hal-audio: Allow codec to init on startup This patch adds optional load/unload methods for codec which can be used to initialize some static data for codec, e.g. load shared library which provides encoder. Unlike init/cleanup which are called on stream open/close these methods are called when audio device is opened/closed thus most likely only once. Codecs which are loaded properly (or do not have load callback) are added to separate queue and used later to register endpoints.

Diffstat

M android/Android.mk | 2 ++
M android/hal-audio.c | 77 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - -
M android/hal-audio.h | 3 +++

3 files changed, 66 insertions(+), 16 deletions(-)

View Full Diff | Patch