mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
Merge "msm_vidc: Skip mbpf check for image sessions"
This commit is contained in:
commit
8c35bce4a2
1 changed files with 5 additions and 1 deletions
|
|
@ -5849,7 +5849,11 @@ int msm_vidc_check_session_supported(struct msm_vidc_inst *inst)
|
|||
width_max, height_max);
|
||||
rc = -ENOTSUPP;
|
||||
}
|
||||
if (!rc && NUM_MBS_PER_FRAME(input_width, input_height) >
|
||||
/* Image size max capability has equal width and height,
|
||||
* hence, don't check mbpf for image sessions.
|
||||
*/
|
||||
if (!rc && !is_image_session(inst) &&
|
||||
NUM_MBS_PER_FRAME(input_width, input_height) >
|
||||
mbpf_max) {
|
||||
dprintk(VIDC_ERR, "Unsupported mbpf %d, max %d\n",
|
||||
NUM_MBS_PER_FRAME(input_width, input_height),
|
||||
|
|
|
|||
Loading…
Reference in a new issue