From patchwork Sat Dec 29 17:07:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akinobu Mita X-Patchwork-Id: 10744971 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6360413B5 for ; Sat, 29 Dec 2018 17:08:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 565B328A63 for ; Sat, 29 Dec 2018 17:08:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AF5428AE3; Sat, 29 Dec 2018 17:08:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1D5628A63 for ; Sat, 29 Dec 2018 17:08:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727550AbeL2RIB (ORCPT ); Sat, 29 Dec 2018 12:08:01 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39102 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727530AbeL2RIA (ORCPT ); Sat, 29 Dec 2018 12:08:00 -0500 Received: by mail-pf1-f196.google.com with SMTP id r136so11701612pfc.6 for ; Sat, 29 Dec 2018 09:08:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=GsYYj9hvF53lNra8umQJWkpQxGtDlYUa8ZF1UB6gZzQ=; b=NFmOUOCoVajrbEBXFTLSyPw30Jz5slqdqojeN234zCUqsootlA1lk255ZO2WZh+cj/ GdDGWF7KZWMnNvOiwHTc2BG+l2vGLAwlEMlOAAYfnMniUF22Q/XHpaoG1YJkSPtEYauC cfziXD1Py8Zj1N0rU7wj2gowQDvxOaskeuPrD9nN2CjktawkyM7LGUXfF1DkkAAS9Oru J+vrtMRr0O6UdERBR3KxBydlUvcMOrbbr9DgV2v5HLf2R8nRjiYNNKu12yI6S883eWC0 sR2v4NTibFdk+S+5p8HN6n9YzAsPOVjfTKCLZAQkqdT2ZsmGZW70boU9hQn5yHSPq8+E N/bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GsYYj9hvF53lNra8umQJWkpQxGtDlYUa8ZF1UB6gZzQ=; b=QNum2vDXA8BqJNSX7YsBUtVFUEBOOBWebVP/ADYYa1Yrniu3DmffGKi2aN13jujk6Q s9lL76tP4XROPyeK/ExMaCH5xq8JkftIW/HKlCotH8xwCblSbTcFGxUJkTg6ZdpYS5GQ b7HAb9tjVuUZjhrcJEP3/1WZOIj76jEXHUUXtpiYsexUE2hqMsaXaae+OU0qu4E/KHwF HU+zinYuKgxHvObHmD06MSchFWWkGPQR2RNSPgh8gNRjiLH7SdWeWPR3kRwhibJ250uH IiEki9tLGaoQshHfshjtdPqb01+iGMWG7dl36p3Xql6JUeIGrXvWgJpTo2t8nmg+OwFB dkTw== X-Gm-Message-State: AJcUukeZKbTVBOZrJIeywf60ZdZrvgloVbLcH1Wl3m4xZv5eerTZSM85 sS0Kuj9lqj+DUQPEN49p91ugVdYsdaA= X-Google-Smtp-Source: ALg8bN6P5x3VsDHGyyhV8hGa6U0kTcRt8yeDR3Vy2HKWAYoyEpN+mSCazTICeWsg6s24tIFGm2+gRg== X-Received: by 2002:a63:7154:: with SMTP id b20mr2167994pgn.342.1546103279978; Sat, 29 Dec 2018 09:07:59 -0800 (PST) Received: from localhost.localdomain ([240f:34:212d:1:d91e:35b2:75a8:1394]) by smtp.gmail.com with ESMTPSA id h134sm86856276pfe.27.2018.12.29.09.07.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 29 Dec 2018 09:07:59 -0800 (PST) From: Akinobu Mita To: linux-media@vger.kernel.org Cc: Akinobu Mita , Sakari Ailus , Mauro Carvalho Chehab Subject: [PATCH 4/4] media: mt9m111: set initial frame size other than 0x0 Date: Sun, 30 Dec 2018 02:07:38 +0900 Message-Id: <1546103258-29025-5-git-send-email-akinobu.mita@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1546103258-29025-1-git-send-email-akinobu.mita@gmail.com> References: <1546103258-29025-1-git-send-email-akinobu.mita@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This driver sets initial frame width and height to 0x0, which is invalid. So set it to selection rectangle bounds instead. This is detected by v4l2-compliance detected. Cc: Sakari Ailus Cc: Mauro Carvalho Chehab Signed-off-by: Akinobu Mita --- drivers/media/i2c/mt9m111.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/i2c/mt9m111.c b/drivers/media/i2c/mt9m111.c index 465e920..638236f 100644 --- a/drivers/media/i2c/mt9m111.c +++ b/drivers/media/i2c/mt9m111.c @@ -1312,6 +1312,8 @@ static int mt9m111_probe(struct i2c_client *client, mt9m111->rect.top = MT9M111_MIN_DARK_ROWS; mt9m111->rect.width = MT9M111_MAX_WIDTH; mt9m111->rect.height = MT9M111_MAX_HEIGHT; + mt9m111->width = mt9m111->rect.width; + mt9m111->height = mt9m111->rect.height; mt9m111->fmt = &mt9m111_colour_fmts[0]; mt9m111->lastpage = -1; mutex_init(&mt9m111->power_lock);