Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1396249
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | ayaka <ayaka@soulik.info> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/3] [media] s5p-mfc: remove unnecessary check in try_fmt |
| Date | Sat, 07 May 2016 07:20:02 +0200 |
| Message-ID | <rw2OK-3At-7@gated-at.bofh.it> (permalink) |
| References | <rw2OK-3At-3@gated-at.bofh.it> |
| X-Original-To | linux-kernel@vger.kernel.org |
| X-Mailer | git-send-email 2.5.5 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 37 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | m.szyprowski@samsung.com, nicolas.dufresne@collabora.com, shuahkh@osg.samsung.com, javier@osg.samsung.com, mchehab@osg.samsung.com, k.debski@samsung.com, jtp.park@samsung.com, kyungmin.park@samsung.com, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, ayaka <ayaka@soulik.info> |
| X-Original-Date | Sat, 7 May 2016 13:05:25 +0800 |
| X-Original-Message-ID | <1462597526-31559-3-git-send-email-ayaka@soulik.info> |
| X-Original-References | <1462597526-31559-1-git-send-email-ayaka@soulik.info> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1396249 |
Show key headers only | View raw
We don't need to request the sizeimage or num_planes
in try_fmt.
Signed-off-by: ayaka <ayaka@soulik.info>
---
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
index a66a9f9..2f76aba 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
@@ -1043,10 +1043,6 @@ static int vidioc_try_fmt(struct file *file, void *priv, struct v4l2_format *f)
mfc_err("failed to try output format\n");
return -EINVAL;
}
- if (pix_fmt_mp->plane_fmt[0].sizeimage == 0) {
- mfc_err("must be set encoding output size\n");
- return -EINVAL;
- }
if ((dev->variant->version_bit & fmt->versions) == 0) {
mfc_err("Unsupported format by this MFC version.\n");
return -EINVAL;
@@ -1060,11 +1056,6 @@ static int vidioc_try_fmt(struct file *file, void *priv, struct v4l2_format *f)
mfc_err("failed to try output format\n");
return -EINVAL;
}
-
- if (fmt->num_planes != pix_fmt_mp->num_planes) {
- mfc_err("failed to try output format\n");
- return -EINVAL;
- }
if ((dev->variant->version_bit & fmt->versions) == 0) {
mfc_err("Unsupported format by this MFC version.\n");
return -EINVAL;
--
2.5.5
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 2/3] [media] s5p-mfc: remove unnecessary check in try_fmt ayaka <ayaka@soulik.info> - 2016-05-07 07:20 +0200
csiph-web