MLK-18578: hdmi_rx: wait longer time for audio info frame
authorShengjiu Wang <shengjiu.wang@nxp.com>
Fri, 8 Jun 2018 10:36:03 +0000 (18:36 +0800)
committerSandor Yu <Sandor.yu@nxp.com>
Fri, 19 Apr 2019 02:40:50 +0000 (10:40 +0800)
The wait time is short that cause recording failed sometimes

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Sandor.yu <sandor.yu@nxp.com>
drivers/media/platform/imx8/hdmi/mxc-hdmi-rx-audio.c

index d7d9a5e..22a55df 100644 (file)
@@ -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), &regread);
-               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;
        }