Message ID | 20210215042741.28850-24-laurent.pinchart@ideasonboard.com |
---|---|
State | Accepted |
Commit | cc271b6754691af74d710b761eaf027e3743e243 |
Headers | show
Return-Path: <linux-media-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F26BC433DB for <linux-media@archiver.kernel.org>; Mon, 15 Feb 2021 04:33:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D594B64E52 for <linux-media@archiver.kernel.org>; Mon, 15 Feb 2021 04:32:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229976AbhBOEcz (ORCPT <rfc822; linux-media@archiver.kernel.org>); Sun, 14 Feb 2021 23:32:55 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:45636 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230023AbhBOEct (ORCPT <rfc822;linux-media@vger.kernel.org>); Sun, 14 Feb 2021 23:32:49 -0500 Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6D2CD1929; Mon, 15 Feb 2021 05:28:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1613363307; bh=GFw+9XBHsv1TAi4WzX/5WD2lGGl7KscG69MbBOuJfa4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HaaWpGyXA4kexKLLT9P9cAuc+jRWv/B6/qiqgYIe/UQ5ool/S997snDNAlAKxB7fk kEGLe6A9r7STSvDAHh+RgYz1rF/ukboj8kVu+L8FS967+B13j315HuRYnvOwaMybCB f7TPdYBH+tOPuh7JkZEOAwVNAGUzMexlsoGwU/Vs= From: Laurent Pinchart <laurent.pinchart@ideasonboard.com> To: linux-media@vger.kernel.org Cc: Rui Miguel Silva <rmfrfs@gmail.com>, Steve Longerbeam <slongerbeam@gmail.com>, Philipp Zabel <p.zabel@pengutronix.de>, Ezequiel Garcia <ezequiel@collabora.com>, Fabio Estevam <festevam@gmail.com> Subject: [PATCH v2 23/77] media: imx: capture: Return -EPIPE from __capture_legacy_try_fmt() Date: Mon, 15 Feb 2021 06:26:47 +0200 Message-Id: <20210215042741.28850-24-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210215042741.28850-1-laurent.pinchart@ideasonboard.com> References: <20210215042741.28850-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org |
Series |
[v2,01/77] media: imx: Drop dependency on I2C
|
expand
|
diff --git a/drivers/staging/media/imx/imx-media-capture.c b/drivers/staging/media/imx/imx-media-capture.c index 954f053497f9..43bf3ac9076a 100644 --- a/drivers/staging/media/imx/imx-media-capture.c +++ b/drivers/staging/media/imx/imx-media-capture.c @@ -554,7 +554,7 @@ static int capture_validate_fmt(struct capture_priv *priv) priv->vdev.fmt.height != pixfmt.height || priv->vdev.cc->cs != cc->cs || priv->vdev.compose.width != compose.width || - priv->vdev.compose.height != compose.height) ? -EINVAL : 0; + priv->vdev.compose.height != compose.height) ? -EPIPE : 0; } static int capture_start_streaming(struct vb2_queue *vq, unsigned int count)