diff options
author | Shengjiu Wang <shengjiu.wang@nxp.com> | 2018-06-08 18:36:03 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:32:11 +0800 |
commit | eda4286844461bbde0087bfabe3523910ac060aa (patch) | |
tree | 44f09101d4f74f10e5f34daa51a8d9b02d9569bd /drivers | |
parent | 7c1827f556824777e7089eecd5325cd361d681c6 (diff) |
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 <shengjiu.wang@nxp.com>
Reviewed-by: Sandor.yu <sandor.yu@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/platform/imx8/hdmi/mxc-hdmi-rx-audio.c | 7 |
1 files changed, 3 insertions, 4 deletions
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; } |