avsync-lib: remove no reqired mutex and avoid blocking  [1/1]

PD#SWPL-53639

Problem:
For 60fps 4K content playing have frame freeze then drop occationally
it is due to display refresh thread was blocked and cannot be finished
in one VSync. optimized the possible blocking codes in that thread
to avoid schedule switch out

Solution:
*Removed no need mutex in pattern module
*Log use CLOCK_MONOTONIC instead of timeofdate to avoid possible
NTP adjustment check block.
*avsync lib time compare use CLOCK_MONOTONIC also.
*frame queue use rd/wr index to check fullbess instead of
fullness field to avoid mutex.

Verify:
NTS test case PLAY-DV-60FPS-HEAAC

Change-Id: I0703bc2f9455b3ad24d53951c9e0e025f4cc2cd8
Signed-off-by: yongchun.li <yongchun.li@amlogic.com>
4 files changed
tree: b0f5bf099b078cc5eb8bee8e97f129cf5d4d3823
  1. src/
  2. avsync-lib.mk
  3. Config.in
  4. Makefile