audio: auge: add HDMIRX SPDIF in support [1/2]
authorJian Xu <jian.xu@amlogic.com>
Wed, 19 Dec 2018 03:19:51 +0000 (11:19 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 19 Dec 2018 10:47:18 +0000 (02:47 -0800)
commitb315b2ba0b0bb57e0d12479220b27a2282674536
treedce55b5dc7caeb11afe5da3af3f1f130883a76cc
parent8dfdb019ef67b4865655718126364fdf7be5e416
audio: auge: add HDMIRX SPDIF in support [1/2]

PD#SWPL-2956

Problem:
HDMI in DTS/Dolby input has noise when treated to LPCM

Solution:
By default,we are using PAO mode for HDMIRX,but we have not
enabled the PaPb search for 61937 raw data input, after add
that, we can detect the raw data, but it can not by clear when
switch from NONE-LPCM to NONE-LPCM, need add IRQ function to
clear that by sw.we enabled spdif in from HDMIRX, which is  the same
design as txl/txlx.we can get the Pc information now.
also we add a new interface to set spdif in source when hdmirx input.

Verify:
x301

Change-Id: I3c4e8b387308ef862a069c29d15b8b5a9e865564
Signed-off-by: Jian Xu <jian.xu@amlogic.com>
sound/soc/amlogic/auge/extn.c
sound/soc/amlogic/auge/frhdmirx_hw.c
sound/soc/amlogic/auge/frhdmirx_hw.h
sound/soc/amlogic/auge/spdif.c
sound/soc/amlogic/auge/spdif_hw.c
sound/soc/amlogic/auge/spdif_hw.h
sound/soc/amlogic/auge/tdm.c