MLK-19913 media: csi: fix corrupted image issue when restart CSI bridge

Corrupted image is observed on the capture when do the resolution switch.
This usually happens with base address switch error (BIT_ADDR_CH_ERR_INT).
skip the frame if the frame index does not correspond to the requested one
to resolve it.

This patch was proposed by Tom Zheng <haidong.zheng@nxp.com>

Change-Id: Ifdf9474496c56861dc300bb8ee2105ec968b7784
Signed-off-by: Robby Cai <robby.cai@nxp.com>
(cherry picked from commit 91083be310df6595bf606cc12d0501b7cdad832e)
1 file changed