mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 18:11:20 +00:00
media: atomisp: set DFS to MAX if sensor doesn't report fps
If the sensor doesn't implement support for g_frame_interval, it won't return the expected fps rate. Instead of keeping DFS on its minimal value (which will likely not work), set it to the max. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
92b2bc49fc
commit
baf768cf29
1 changed files with 6 additions and 2 deletions
|
@ -243,8 +243,12 @@ int atomisp_freq_scaling(struct atomisp_device *isp,
|
||||||
}
|
}
|
||||||
|
|
||||||
fps = atomisp_get_sensor_fps(asd);
|
fps = atomisp_get_sensor_fps(asd);
|
||||||
if (fps == 0)
|
if (fps == 0) {
|
||||||
return -EINVAL;
|
dev_info(isp->dev,
|
||||||
|
"Sensor didn't report FPS. Using DFS max mode.\n");
|
||||||
|
new_freq = dfs->highest_freq;
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
curr_rules.width = asd->fmt[asd->capture_pad].fmt.width;
|
curr_rules.width = asd->fmt[asd->capture_pad].fmt.width;
|
||||||
curr_rules.height = asd->fmt[asd->capture_pad].fmt.height;
|
curr_rules.height = asd->fmt[asd->capture_pad].fmt.height;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue