HWJPEG is unable to handle YUV410. Therefore, the driver should check
if both of the horizontal and vertical chroma subsampling factor is 4.
However, the driver checked horizontal factor instead of vertical
factor.
SVACE WGID 2521
Change-Id: I187ff5e4d0c3ff9cf1efdd97b86b7e09c4754af0
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
u8 v = pos[1] & 0xF;
if ((pos[0] < 1) || (pos[0] > 4) || (pos[2] > 4)
- || (h > 4) || (h > 4)) {
+ || (h > 4) || (v > 4)) {
dev_err(ctx->smfc->dev,
"Invalid component data in SOF0 %02x%02x%02x",
pos[0], pos[1], pos[2]);