mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 23:36:23 +09:00
MLK-24986: media: isi: add 4K support for iMX8MN ISI
Adding 4K support for ISI of iMX8MN platform. Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com> Reviewed-by: Robby Cai <robby.cai@nxp.com>
This commit is contained in:
parent
616f63072c
commit
11d62d411b
|
@ -1193,7 +1193,6 @@ static int mxc_isi_cap_enum_framesizes(struct file *file, void *priv,
|
|||
struct v4l2_frmsizeenum *fsize)
|
||||
{
|
||||
struct mxc_isi_cap_dev *isi_cap = video_drvdata(file);
|
||||
struct device_node *parent;
|
||||
struct v4l2_subdev *sd;
|
||||
struct mxc_isi_fmt *fmt;
|
||||
struct v4l2_subdev_frame_size_enum fse = {
|
||||
|
@ -1217,11 +1216,6 @@ static int mxc_isi_cap_enum_framesizes(struct file *file, void *priv,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
parent = of_get_parent(isi_cap->pdev->dev.of_node);
|
||||
if ((of_device_is_compatible(parent, "fsl,imx8mn-isi")) &&
|
||||
(fse.max_width > ISI_2K || fse.min_width > ISI_2K))
|
||||
return -EINVAL;
|
||||
|
||||
if (fse.min_width == fse.max_width &&
|
||||
fse.min_height == fse.max_height) {
|
||||
fsize->type = V4L2_FRMSIZE_TYPE_DISCRETE;
|
||||
|
@ -1245,7 +1239,6 @@ static int mxc_isi_cap_enum_frameintervals(struct file *file, void *fh,
|
|||
struct v4l2_frmivalenum *interval)
|
||||
{
|
||||
struct mxc_isi_cap_dev *isi_cap = video_drvdata(file);
|
||||
struct device_node *parent;
|
||||
struct v4l2_subdev *sd;
|
||||
struct mxc_isi_fmt *fmt;
|
||||
struct v4l2_subdev_frame_interval_enum fie = {
|
||||
|
@ -1269,11 +1262,6 @@ static int mxc_isi_cap_enum_frameintervals(struct file *file, void *fh,
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
parent = of_get_parent(isi_cap->pdev->dev.of_node);
|
||||
if (of_device_is_compatible(parent, "fsl,imx8mn-isi") &&
|
||||
fie.width > ISI_2K)
|
||||
return -EINVAL;
|
||||
|
||||
interval->type = V4L2_FRMIVAL_TYPE_DISCRETE;
|
||||
interval->discrete = fie.interval;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user