Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1174885ybt; Sun, 14 Jun 2020 13:07:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwk+pTY8HDeQ1zf7mGpSSpRSf8BPXJohNGY8hnlwOh1vKHi6dUns64hQd1faI7dQZ6+1tLP X-Received: by 2002:a17:907:42d2:: with SMTP id ng2mr9800861ejb.301.1592165258230; Sun, 14 Jun 2020 13:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592165258; cv=none; d=google.com; s=arc-20160816; b=WRMsdj9PeSvzWEx2/ukAxJRmV8AlYH+mzNOb1Ld/3zh0Qkx/R9fGFdjeiZGRcwMEXu XSxAQFt/J1xko9ACdJS8k15KleaKg+PRGkwW61Y9vnX9K1QlDww45XyNXny9TKHbR0oA 9w2v57eAamhe+ThclRHcee9nS7/MgfJCRRVyDD8QKSnHCsgTj3VD2JQgQSOoac3ZRbUf mFI1LB+ripeTkXv6SbyRZjiYAEe3jZy5gCSFciq1sTeO/kLt0crSkJFDk62/CA3cpk8v CMhbFJ7AaSyhcz104F1fZ2kS7o874nzO9+a1YwetXrFrH/VQr8YQjnShW58e+OvA1GCM 1eiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=+zFipqEC+zuLD2Bm74MDV8SAbCj+IQA4C+kV/zwMm8k=; b=cht46CER5FHyf4m16WBBniES1Hh3rceEiE0gOXl+bpOmtS2+/3f7mX51DnWIIiYXRS TS9+Pqx8fDABkQPC8Frb3nmP7bwtqBU3H4XpiGSjdKQHBXacJ3UBLx1qqtxqP1kFkETp pSE+yYYLOlChC37s6enHFOJJikaLl3AanW0IbPiMTHqVKgwr/be0lkFZiITLmGXfv2YM RyhJ+YWbBhP0QwGTr4iCyJCgeAG827Ywe/l3JduIE/Oit+jctoOsN+9hZoCH43uarrnF E1iyU+vewLtx8LEgD6NlkQLodStxqZdCsFzksg8lpK2MmysrrwPBrXCA5/ZPj13uNfJI OanA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b=kXuxuy0+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=iitr.ac.in Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx22si7320242edb.429.2020.06.14.13.07.15; Sun, 14 Jun 2020 13:07:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b=kXuxuy0+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=iitr.ac.in Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727853AbgFNUDL (ORCPT + 99 others); Sun, 14 Jun 2020 16:03:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726844AbgFNUDK (ORCPT ); Sun, 14 Jun 2020 16:03:10 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B901CC08C5C2 for ; Sun, 14 Jun 2020 13:03:09 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id x22so6879417pfn.3 for ; Sun, 14 Jun 2020 13:03:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=es-iitr-ac-in.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=+zFipqEC+zuLD2Bm74MDV8SAbCj+IQA4C+kV/zwMm8k=; b=kXuxuy0+ODs+GdvWnsO10xOOMfHIFf7HI8uLPDzCwV7fZohGHNQ2b3cKACruNGn0Xi CWzSY/ORnbRsOmRB6Mg1b/OR0efF0ovWJBhlrM5YTZ5YTBU0GbzIsum4aEY5YekvAfRu up5Fcr4KqXxqixVgxCZBKHnA0ehsts8FNKObWZxSHcJcwtR9IYOExQBXzUo+hF7KUTtH I2vUJwAIB/1gtGakJdq9S1/FT/RMr5b6ErG9VehwgMHkXwgoFxTkDhjBBHX/U1XYOKN+ MI9L4lUGZq5s1FNcYnjQSd+gW/tZdanIXO+P322/89gtzkHUVPrxH8hVafD+drWVT4y4 9R4A== 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; bh=+zFipqEC+zuLD2Bm74MDV8SAbCj+IQA4C+kV/zwMm8k=; b=AaV6Zv4pgf+zYWucWjr20FhyFKhh64UmF8rqU1j1plLIvrNdFys6kRNi02S+GQSdK3 ny4zhedGQIgECQNQpVflC+mcUKWUvb7612EANDXICe8LbG4srpRX6Bh3NUFdw1pBanrm PCVzT19CMcLH6nqF0fXvmyIDRmVYNBqUbacxkqTRzsOWZ0ONMcvTt/Kc7vNaqtp/15t1 mGQfuvVFV9AaoKXkbtQrxuCVhqTM0Geg4tpznBjVnmGby5RejUaKW/pTRZM6LpGfiWmE Glh4jBjt6pZ+S2Qz0VZ24P6Lcpa3ZB0GG05wMX6L9PQNsXVOkeJ10GyRSExwpxNwocCe z3oA== X-Gm-Message-State: AOAM531lExvhtRt8uFSsPbr2dUog0n+zWKXjb7ZywEEepYZ+33u53Xyy 3LJk4xTbBa+lnoY/edO484IF8Hhfmc8ZJw== X-Received: by 2002:a63:140a:: with SMTP id u10mr17557998pgl.238.1592164989174; Sun, 14 Jun 2020 13:03:09 -0700 (PDT) Received: from kaaira-HP-Pavilion-Notebook ([103.113.213.178]) by smtp.gmail.com with ESMTPSA id t9sm10214488pjs.16.2020.06.14.13.03.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jun 2020 13:03:08 -0700 (PDT) From: Kaaira Gupta To: Helen Koike , Shuah Khan , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Kieran Bingham , hverkuil@xs4all.nl Cc: Kaaira Gupta Subject: [PATCH v2 0/2] media: Add colors' order over test image Date: Mon, 15 Jun 2020 01:32:37 +0530 Message-Id: <20200614200239.18453-1-kgupta@es.iitr.ac.in> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset aims to add a method to display the correct order of colors for a test image generated. It does so by adding a function which returns a string of correct order of the colors for a test pattern and a control using which displays the string over test image. Changes since v1: - Divided the patch into two patches. - Returned NULL for patterns whose color order cannot be defined. (Reported-by: kernel test robot ) - Made separate switch cases for separate test patterns (Reported-by: kernel test robot ) - Renamed variables from camelcase to use '_' - prefixed 'media' to the patches. Kaaira Gupta (2): media: tpg: Add function to return colors' order of test image media: vimc: Add a control to show test pattern colors' order drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 32 +++++++++++++++-- drivers/media/test-drivers/vimc/Kconfig | 2 ++ drivers/media/test-drivers/vimc/vimc-common.h | 1 + drivers/media/test-drivers/vimc/vimc-sensor.c | 34 +++++++++++++++++++ include/media/tpg/v4l2-tpg.h | 1 + 5 files changed, 68 insertions(+), 2 deletions(-) -- 2.17.1