From patchwork Tue Nov 15 12:06:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Ribalda Delgado X-Patchwork-Id: 9429547 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CFA1560484 for ; Tue, 15 Nov 2016 12:07:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB0F928B9B for ; Tue, 15 Nov 2016 12:07:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AEB0E28BB6; Tue, 15 Nov 2016 12:07:01 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 6D9EC28B9B for ; Tue, 15 Nov 2016 12:07:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933083AbcKOMGc (ORCPT ); Tue, 15 Nov 2016 07:06:32 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33397 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932211AbcKOMGa (ORCPT ); Tue, 15 Nov 2016 07:06:30 -0500 Received: by mail-wm0-f66.google.com with SMTP id u144so25078112wmu.0; Tue, 15 Nov 2016 04:06:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Dmy/pDv+Oxk0xK/z9QqLzFZoH5+IyuEjq8akDW0MOiM=; b=GaaJ+UiXkswzkK/V4WN203XXFtt+GBYqSnjC77pmyR1O5PP0PoF7ZPCUuCBXKTFQGu TJYwVPbGTBd0lmKTraLIrqWAMZ2gaxTA8ZTKUU2ku/reiMTBm+PJY976e2I/YQtbv/bl 58sSwrIT9hauaYNeBpGRAyaxxcgIEyXOU3Sv3sCBBB2noiqDjuXZ8ERCXX244HWodt66 OOJZQF6WS5WYMm7j7Jodn9udQRThRZsBfLlPpStNZPLh9ZPI0voZUgiT6w4kG5h2dfeh lE0o6ZQsFqProLMiFT5CC6k8DFT2ckR37uCoGDjnNJbW8J5ZklKkxGEBH2LvG9N9i6/y XwIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Dmy/pDv+Oxk0xK/z9QqLzFZoH5+IyuEjq8akDW0MOiM=; b=lD6wa9jt4PLHrcZHyoC/Z/M0vKpdXzkEYy9LKMXBJQ04MNDASRP5sCQxyWWNK7BaJ6 rUeSUuafQ+eD0rjpvWXCcDqe3B35tQa7yLLPQOGbkWxdOYmjhY4RpTLhFBIP3j86owWf zKKSf17nZ0SafbDqwtqBVXYqhJlQs6P544iPgzqPNu8AoS2FT3zxcYxoR4wxYp5vPOsg hh24bIBFBNmMyKZ2LvfUTlRacqb6+Tvys0g/RiRz6Xq4rX5ySYKqoCxZVtNm8kVr6jq/ OBu1nxgGJRwz7HK3NJqhr1nJsx9Tg7thPU+ka73OMWQc8+il8KefnI1mW1qvl/wuHYEm bvMQ== X-Gm-Message-State: ABUngvfR5ZDE4qyLlrm/78928oi0b57fcvqdSO62ionYcLG/KJVFtLDTommmN8J/03Yhfw== X-Received: by 10.25.152.142 with SMTP id a136mr8213230lfe.113.1479211588952; Tue, 15 Nov 2016 04:06:28 -0800 (PST) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id l34sm6261826lfi.4.2016.11.15.04.06.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Nov 2016 04:06:27 -0800 (PST) From: Ricardo Ribalda Delgado To: Hans Verkuil , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ricardo Ribalda Delgado Subject: [PATCH 1/2] v4l2-tpg: Init hv_enc field with a valid value Date: Tue, 15 Nov 2016 13:06:24 +0100 Message-Id: <20161115120625.3015-1-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.10.2 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 Zero is not a valid value for hsv_enc. Set the field to a valid initial value. This is not a problem for vivid, because it sets the field to 180 via tpg_s_hsv_enc() on the control initialization, but it might be a source of errors for other drivers that use this code. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c b/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c index 28d7b072d867..e47b46e2d26c 100644 --- a/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c +++ b/drivers/media/common/v4l2-tpg/v4l2-tpg-core.c @@ -117,6 +117,7 @@ void tpg_init(struct tpg_data *tpg, unsigned w, unsigned h) tpg_s_fourcc(tpg, V4L2_PIX_FMT_RGB24); tpg->colorspace = V4L2_COLORSPACE_SRGB; tpg->perc_fill = 100; + tpg->hsv_enc = V4L2_HSV_ENC_180; } EXPORT_SYMBOL_GPL(tpg_init);