audio: make raw data from spdifin source to parser[1/1]
authorZhe Wang <Zhe.Wang@amlogic.com>
Wed, 11 Jul 2018 02:48:27 +0000 (10:48 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Wed, 11 Jul 2018 08:25:46 +0000 (01:25 -0700)
PD#166028: support dd/dd+ decoder from spdifin

Change-Id: Id2ef5a585427db2508e89f4bc595a8dc058e941b
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
sound/soc/amlogic/meson/audio_hw.c

index 107aa7c849fea668bdd8f19cbfe76a7051649f20..65ed7207ed9f382172d583738ce0b245158124a2 100644 (file)
@@ -409,6 +409,8 @@ static void i2sin_fifo0_set_buf(u32 addr, u32 size, u32 i2s_mode,
 
 static void i2sin_fifo2_set_buf(u32 addr, u32 size, u32 src, u32 ch)
 {
+       if (audio_in_source == 3)
+               src = SPDIF_IN;
        aml_audin_write(AUDIN_FIFO2_START, addr & 0xffffffc0);
        aml_audin_write(AUDIN_FIFO2_PTR, (addr & 0xffffffc0));
        aml_audin_write(AUDIN_FIFO2_END,