There's an interim buffer which should only be used when PxP CSC is used.
Otherwise the video buffer gets incorrect data by copying the content of
interim buffer. The patch fixes this by moving the memcpy to the right place.
Signed-off-by: Robby Cai <R63905@freescale.com>
(cherry picked from commit
8e0b8ff485dd7cdeabc653f1e27c271ac923710e)
return retval;
}
pxp_complete_update(cam);
+ memcpy(cam->frame[buf->index].vaddress,
+ cam->frame[req_buf_number].vaddress,
+ cam->v2f.fmt.pix.sizeimage);
}
up(&cam->busy_lock);
- memcpy(cam->frame[buf->index].vaddress,
- cam->frame[req_buf_number].vaddress,
- cam->v2f.fmt.pix.sizeimage);
return retval;
}