avsync: spdif: fix the avsync for ms12 [1/4]
authorXiaoming Sui <xiaoming.sui@amlogic.com>
Mon, 15 Apr 2019 12:38:47 +0000 (20:38 +0800)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 06:18:10 +0000 (14:18 +0800)
commit6dfe8782528f0dc7c1e7832e39cb0e48620c7cff
tree68bbd9cfcfbba27cdb744e47911163bd06f7449d
parent920729957195eacc3cbb475bda78cb48526059db
avsync: spdif: fix the avsync for ms12 [1/4]

PD#SWPL-5837

Problem:
dtv is out of avsync when dolby ms12 certificate

Solution:
when the audio is played, recalculate the apts to sync
pcrsrc when pcrmaster.

Verify:
X301

Change-Id: I199383aa1c0de1b4f0ec646d9d066910b3bb2b42
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
avsync: tsync: fix the avsync for ms12 [3/4]

PD#SWPL-5837

Problem:
dtv is out of avsync when dolby ms12 certificate

Solution:
when the audio is played, recalculate the apts to sync
pcrsrc when pcrmaster.

Verify:
X301

Change-Id: Ia121e57ad69c5b0d211e14bf3a61f165457e54c7
Signed-off-by: Xiaoming Sui <xiaoming.sui@amlogic.com>
drivers/amlogic/media/frame_sync/timestamp.c
drivers/amlogic/media/frame_sync/tsync.c
include/linux/amlogic/media/frame_sync/tsync.h
sound/soc/amlogic/auge/spdif.c