msm: jpegdma: Remove even number check for crop left and top
Remove even number check for crop left and top dimensions as crop left and top can be odd numbers. CRs-Fixed: 1038370 Change-Id: Ia3b2aa484f764fb948680357ba6a89bc57b92b24 Signed-off-by: Gautham Mayyuri <gmayyuri@codeaurora.org>
This commit is contained in:
parent
5afcd06e40
commit
11611bb2ca
1 changed files with 0 additions and 6 deletions
|
@ -1009,15 +1009,9 @@ static int msm_jpegdma_s_crop(struct file *file, void *fh,
|
|||
if (crop->c.width % formats[ctx->format_idx].h_align)
|
||||
return -EINVAL;
|
||||
|
||||
if (crop->c.left % formats[ctx->format_idx].h_align)
|
||||
return -EINVAL;
|
||||
|
||||
if (crop->c.height % formats[ctx->format_idx].v_align)
|
||||
return -EINVAL;
|
||||
|
||||
if (crop->c.top % formats[ctx->format_idx].v_align)
|
||||
return -EINVAL;
|
||||
|
||||
ctx->crop = crop->c;
|
||||
if (atomic_read(&ctx->active))
|
||||
ret = msm_jpegdma_update_hw_config(ctx);
|
||||
|
|
Loading…
Add table
Reference in a new issue