From patchwork Tue Nov 15 12:06:25 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: 9429545 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 4D30760484 for ; Tue, 15 Nov 2016 12:06:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39A5628B9B for ; Tue, 15 Nov 2016 12:06:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E7C128BB6; Tue, 15 Nov 2016 12:06:58 +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 9E88A28BAD for ; Tue, 15 Nov 2016 12:06:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933203AbcKOMGf (ORCPT ); Tue, 15 Nov 2016 07:06:35 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33438 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933047AbcKOMGb (ORCPT ); Tue, 15 Nov 2016 07:06:31 -0500 Received: by mail-wm0-f66.google.com with SMTP id u144so25078376wmu.0; Tue, 15 Nov 2016 04:06:31 -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:in-reply-to:references; bh=4jDb0wHMUun8Bh/OqDKcPM4xrMVgP3TChqYcfBiuexw=; b=W8j704RtWOwCNi+qB7txwm3V2i7i0Soj/eeIKP1g1P3qhqQyWkLlENsUsl4QLdp9oY 8hX5Pi8+6AZ0XN6Q0A3rXUo21dthdRTO2MMWSAnCxZAlkYHmnu9oZKhXoCbNaYIoqQ3S Mv5uTgaQONKUYlLM6Wlbuiyerf8ByD9QDc5N4X2p/mlUr42+h/6ydK0rPMnFnB7kJX+W qxk6f5hnp1of/12QEVDt9uiNmyrlHgZWJXN8yDTFMa6kH9eC+0x1+rtg8pZ0YvK2G8+a kFdxfIV4GGSFlgNeo2TN0bJMlVymD9y7nVzB2PhOyzWxPTSHh8zxsM0LeSmEEriaw62B F3dg== 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:in-reply-to :references; bh=4jDb0wHMUun8Bh/OqDKcPM4xrMVgP3TChqYcfBiuexw=; b=VQJcUhwdJpF+Unv0bF6CG9JFOJAU9BppG03I51WxJD2hPv9ndr8RmO0MDTwTu6PuJP CX0ASkUeq5JT5ZeOft6bzWzREA4NZkojyxeS3ui824NdIIPwCF3GfFdUhBgVw0Re6q24 P37gR1ju9qKXmpVjp0+4O/fxg3jDbY+vvfIWFLjYbQi/ycew+j4MKVcfB2PZErHLbstL 5i/kka0EZUz6Dwy5/qMOZd9A7l79VSKzw7sYN0++IqKYU9o54zmSW1NFPmxH1OeP/jK1 DaDITpCoxTun04GpDNa6C+mBoeRGE+0xxejQBFVN0XcvKtkU0sFC88b+klw5puDHVVNY EhEQ== X-Gm-Message-State: ABUngvehsB/4WezeDhVLqed/W6k1MYHRt/MUNu0lmc6UkGKKiQ1LT65TeZIGcLvkjZjTMg== X-Received: by 10.25.89.137 with SMTP id n131mr8878716lfb.75.1479211590340; Tue, 15 Nov 2016 04:06:30 -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.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Nov 2016 04:06:29 -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 2/2] vivid: Set color_enc on HSV formats Date: Tue, 15 Nov 2016 13:06:25 +0100 Message-Id: <20161115120625.3015-2-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161115120625.3015-1-ricardo.ribalda@gmail.com> References: <20161115120625.3015-1-ricardo.ribalda@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 HSV formats were missing the color encoding, which leads to an invalid ycbcr_enc value during get_fmt and try_fmt. Signed-off-by: Ricardo Ribalda Delgado --- drivers/media/platform/vivid/vivid-vid-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/vivid/vivid-vid-common.c b/drivers/media/platform/vivid/vivid-vid-common.c index 3d003fb913ed..5fc010f6ce67 100644 --- a/drivers/media/platform/vivid/vivid-vid-common.c +++ b/drivers/media/platform/vivid/vivid-vid-common.c @@ -447,6 +447,7 @@ struct vivid_fmt vivid_formats[] = { }, { .fourcc = V4L2_PIX_FMT_HSV24, /* HSV 24bits */ + .color_enc = TGP_COLOR_ENC_HSV, .vdownsampling = { 1 }, .bit_depth = { 24 }, .planes = 1, @@ -454,6 +455,7 @@ struct vivid_fmt vivid_formats[] = { }, { .fourcc = V4L2_PIX_FMT_HSV32, /* HSV 32bits */ + .color_enc = TGP_COLOR_ENC_HSV, .vdownsampling = { 1 }, .bit_depth = { 32 }, .planes = 1,