All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Refactor codec handling
@ 2014-02-28 18:01 Andrzej Kaczmarek
  2014-02-28 18:01 ` [PATCH 1/5] android/hal-audio: Add open/close_endpoint helpers Andrzej Kaczmarek
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Andrzej Kaczmarek @ 2014-02-28 18:01 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Andrzej Kaczmarek

Hi,

Here are few patches to refactor a bit and cleanup hal-audio code. Primary
goal here is to decouple codec abstraction from any write/sync operations so
in case new codec is added, it can just do encoding and does not need to care
about writing anything to socket or dealing with synchronization.

In addition, "sleeping code" is changed to use clock_nanosleep with absolute
time which results in almost perfect distribution of media packets over time,
where previously we had to "catch up" from time to time. This also seemed to
be quite unreliable over long periods of time since after some time playback
became distorted. Now it seems this issue is gone.


Andrzej Kaczmarek (5):
  android/hal-audio: Add open/close_endpoint helpers
  android/hal-audio: Add encode_mediapacket function
  android/hal-audio: Write and sync in common code
  android/hal-audio: Use payload length for codec init
  android/hal-audio: Provide better audio synchronization

 android/hal-audio.c | 409 ++++++++++++++++++++++++++++------------------------
 1 file changed, 220 insertions(+), 189 deletions(-)

-- 
1.8.5.4


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-03-03  8:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-28 18:01 [PATCH 0/5] Refactor codec handling Andrzej Kaczmarek
2014-02-28 18:01 ` [PATCH 1/5] android/hal-audio: Add open/close_endpoint helpers Andrzej Kaczmarek
2014-03-01 11:51   ` Szymon Janc
2014-03-03  8:32     ` Andrzej Kaczmarek
2014-02-28 18:01 ` [PATCH 2/5] android/hal-audio: Add encode_mediapacket function Andrzej Kaczmarek
2014-02-28 18:01 ` [PATCH 3/5] android/hal-audio: Write and sync in common code Andrzej Kaczmarek
2014-03-01 12:00   ` Szymon Janc
2014-02-28 18:01 ` [PATCH 4/5] android/hal-audio: Use payload length for codec init Andrzej Kaczmarek
2014-02-28 18:01 ` [PATCH 5/5] android/hal-audio: Provide better audio synchronization Andrzej Kaczmarek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.