From: Shengjiu Wang Date: Fri, 8 Jun 2018 10:36:03 +0000 (+0800) Subject: MLK-18578: hdmi_rx: wait longer time for audio info frame X-Git-Tag: rel_imx_4.19.35_1.1.0~727 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=311d2260301909ca96b3318cfca10e6ebd65cf4d;p=linux.git MLK-18578: hdmi_rx: wait longer time for audio info frame The wait time is short that cause recording failed sometimes Signed-off-by: Shengjiu Wang Reviewed-by: Sandor.yu --- diff --git a/drivers/media/platform/imx8/hdmi/mxc-hdmi-rx-audio.c b/drivers/media/platform/imx8/hdmi/mxc-hdmi-rx-audio.c index d7d9a5ebdd58..22a55df879d7 100644 --- a/drivers/media/platform/imx8/hdmi/mxc-hdmi-rx-audio.c +++ b/drivers/media/platform/imx8/hdmi/mxc-hdmi-rx-audio.c @@ -43,12 +43,11 @@ static int get_audio_infoframe(state_struct *state, unsigned int *chan) do { cdn_apb_read(state, ADDR_SINK_PIF + (PKT_INT_STATUS << 2), ®read); - udelay(10); + udelay(100); times++; - } while (!(regread & (1 << 0)) && times < 100); - + } while (!(regread & (1 << 0)) && times < 5000); - if (times == 100) { + if (times == 5000) { ret = -EINVAL; return ret; }