hdmirx: optimize audio fifo config [1/1]

PD#SWPL-5579

Problem:
audio fifo underflow after switch audio pattern
on chroma 2233: only 2ch audio in, but audio fifo
is configed to read out 8ch afifo. chroma 2233
may change from multi-channel(witch audio overflows
and workaround to config read out all subpackets)
to 2-channel audio pattern, then issue happens.
so need to reset audio fifo config.

Solution:
except for workaround case, always config audio
fifo to only store valid subpackets.

Verify:
tl1

Change-Id: If32a55330fa7ebd9f6359a460eea4ad62872207b
Signed-off-by: Hang Cheng <hang.cheng@amlogic.com>
This commit is contained in:
Hang Cheng
2019-03-14 18:35:45 +08:00
committed by Luke Go
parent bdedd622cb
commit 64c3ddb087
2 changed files with 4 additions and 1 deletions

View File

@@ -41,7 +41,7 @@
*
*
*/
#define RX_VER1 "ver.2019/02/13"
#define RX_VER1 "ver.2019/03/14"
/*
*
*

View File

@@ -474,6 +474,8 @@ static int hdmi_rx_ctrl_irq_handler(void)
*/
if (rx.aud_info.auds_layout)
rx_afifo_store_all_subpkt(true);
else
rx_afifo_store_all_subpkt(false);
//if (rx.aud_info.real_sr != 0)
//error |= hdmirx_audio_fifo_rst();
}
@@ -481,6 +483,7 @@ static int hdmi_rx_ctrl_irq_handler(void)
if (log_level & 0x100)
rx_pr("[irq] UNDERFL\n");
rx.irq_flag |= IRQ_AUD_FLAG;
rx_afifo_store_all_subpkt(false);
//if (rx.aud_info.real_sr != 0)
//error |= hdmirx_audio_fifo_rst();
}