Commit Graph

5 Commits

Author SHA1 Message Date
Andrzej Kaczmarek
683aa4bf36 android/hal-audio-aptx: Add initial support for aptX codec
This patch adds support for aptX codec. Since this is proprietary codec
it requires to obtain license form vendor (CSR) in order to use it.
Also shared library which provices encoder implementation is required
since this implementation only wraps it into audio HAL.
2014-06-06 11:27:45 +03:00
Andrzej Kaczmarek
99849cb584 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.
2014-06-06 11:27:45 +03:00
Andrzej Kaczmarek
60bcd3bcd9 android/hal-audio: Make RTP header optional
Not every codec on A2DP will use RTP so it's now optional - codec can
be defined to use it and core will take care of filling the data.
2014-06-01 10:17:16 +03:00
Andrzej Kaczmarek
8f14d896d1 android/hal-audio: Fix media_packet definition
rtp_payload field in media_packet is specific for SBC codec thus it
should be moved to SBC codec implementation and removed from generic
structs.
2014-06-01 10:17:16 +03:00
Andrzej Kaczmarek
342269ddfb android/hal-audio: Decouple SBC codec from core HAL
Codec abstraction in hal-audio is now good enough to allow splitting
code into core and codec implementation easily so this patch moves
SBC codec code into separate file and provides interface required for
other codecs to be implemented.
2014-05-23 09:20:40 +02:00