From patchwork Wed Mar 25 09:49:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 210472 Return-Path: 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, 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 C05A2C54FD0 for ; Wed, 25 Mar 2020 09:49:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8DF93207FC for ; Wed, 25 Mar 2020 09:49:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129781; bh=r75CGhHuggkfdZX8ir10LW7XCTC74UJvik/L1BZeITE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=viyjMjeNJeBi+sybWdbbCb+szY8Rx7zcX+NiGMxDqbNZqW0hVcSwdPcM0FuoaZglO Aoarg+4xN44pKhFqmyRk8GsiYpjxUZ9CdhSSTjor9ozV5eUTj/rGf7dY8rFPJkfH7E H4yBt5eWB0Cvkc8DfOilEJrjNLbcEWYF1ASentcg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727462AbgCYJtl (ORCPT ); Wed, 25 Mar 2020 05:49:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:51186 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727265AbgCYJtk (ORCPT ); Wed, 25 Mar 2020 05:49:40 -0400 Received: from mail.kernel.org (ip5f5ad4e9.dynamic.kabel-deutschland.de [95.90.212.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C3A612078A; Wed, 25 Mar 2020 09:49:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129779; bh=r75CGhHuggkfdZX8ir10LW7XCTC74UJvik/L1BZeITE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Klf87/tdX9YI1Vci1/ELQg+sLDt/ko9lQbq7rOCCFkIWYRjyWkUiWxWngbA82YSqc CGcw585qzaoJVRWii4S5GbLoMYQnjTT2hMJ1ueQebOvOFYi5xb0WrPsEOKfFkDe6ap hRSoFO/Jtmufs9e1ki689H0QKEempBS/7cjO19Rk= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jH2fK-003HT9-1g; Wed, 25 Mar 2020 10:49:38 +0100 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab Subject: [PATCH v3 02/22] media: Kconfig: add an option to filter in/out platform drivers Date: Wed, 25 Mar 2020 10:49:16 +0100 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Most systems don't need support for those, while others only need those, instead of the others. So, add an option to filter in/out platform drivers. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/Kconfig | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig index 9dfea5c4b6ab..03c295a2710a 100644 --- a/drivers/media/Kconfig +++ b/drivers/media/Kconfig @@ -87,6 +87,18 @@ config MEDIA_CEC_SUPPORT Say Y when you have an HDMI receiver, transmitter or a USB CEC adapter that supports HDMI CEC. +config MEDIA_PLATFORM_SUPPORT + bool "Platform-specific devices" + help + Enable support for complex cameras, codecs, and other hardware + that are integrated at the CPU, GPU or on Image Signalling Processor + and don't use PCI, USB or Firewire buses. + + This is found on Embedded hardware (SoC), on V4L2 codecs and + on some GPU and newer CPU chipsets. + + Say Y when you want to be able so see such devices. + source "drivers/media/cec/Kconfig" source "drivers/media/mc/Kconfig" @@ -161,15 +173,14 @@ source "drivers/media/dvb-core/Kconfig" comment "Media drivers" -# -# V4L platform/mem2mem drivers -# - source "drivers/media/usb/Kconfig" source "drivers/media/pci/Kconfig" +source "drivers/media/radio/Kconfig" + +if MEDIA_PLATFORM_SUPPORT source "drivers/media/platform/Kconfig" source "drivers/media/mmc/Kconfig" -source "drivers/media/radio/Kconfig" +endif comment "Supported FireWire (IEEE 1394) Adapters" depends on DVB_CORE && FIREWIRE From patchwork Wed Mar 25 09:49:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 210462 Return-Path: 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, 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 E59B9C54FD5 for ; Wed, 25 Mar 2020 09:49:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B295C20772 for ; Wed, 25 Mar 2020 09:49:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129795; bh=b7F4ManG231nLhGoUOlm5eaq1cStjMJuBexokf885pU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=CJyeHcmntRDqDsYVf9UhGX68BzWmTFf192yIMb4uwpHZgp3I8U5GKGx0TOw+nveGH /7oWObaQN+dN/vxny16M2QvnadfDnRhp6lBo7SMTE4DduOEy8RcWYAODSYCeOAtasv kBmWdRHXzQ0tTZzH3J1TGtK/f2/L1Xi9QmrOHJw4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727569AbgCYJty (ORCPT ); Wed, 25 Mar 2020 05:49:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:51210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbgCYJtk (ORCPT ); Wed, 25 Mar 2020 05:49:40 -0400 Received: from mail.kernel.org (ip5f5ad4e9.dynamic.kabel-deutschland.de [95.90.212.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C13A020775; Wed, 25 Mar 2020 09:49:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129779; bh=b7F4ManG231nLhGoUOlm5eaq1cStjMJuBexokf885pU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l0WLByiwtOz+jCNURk3jd8sg9mQv/vZwpr4zDXaOL8GoeD69sTumYduBVmuFFBrUP yhj/7S1DjWGuTitdrA3EtPanFVlW885CkadYAHF1b+kA8ZxzdQge9ImJve5YYz6c8H t9w/OCr6Ql0swORpsVwZtM9OIGOotXgg23AJrnvM= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jH2fK-003HTK-3j; Wed, 25 Mar 2020 10:49:38 +0100 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab Subject: [PATCH v3 04/22] media: pci: move VIDEO_PCI_SKELETON to a different Kconfig Date: Wed, 25 Mar 2020 10:49:18 +0100 Message-Id: <1e94c76fd735f806c486beb5c8365a17e43e0cd2.1585129041.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The V4L2 PCI skeleton is not part of the V4L2 core. Move it to appear together with the other PCI drivers, at the end, as this is something that normal users don't even need to bother. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/pci/Kconfig | 10 ++++++++++ drivers/media/v4l2-core/Kconfig | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/media/pci/Kconfig b/drivers/media/pci/Kconfig index dcb3719f440e..9336f8446cf0 100644 --- a/drivers/media/pci/Kconfig +++ b/drivers/media/pci/Kconfig @@ -56,5 +56,15 @@ endif source "drivers/media/pci/intel/ipu3/Kconfig" +config VIDEO_PCI_SKELETON + tristate "Skeleton PCI V4L2 driver" + depends on PCI + depends on SAMPLES + depends on VIDEO_V4L2 && VIDEOBUF2_CORE + depends on VIDEOBUF2_MEMOPS && VIDEOBUF2_DMA_CONTIG + help + Enable build of the skeleton PCI driver, used as a reference + when developing new drivers. + endif #MEDIA_PCI_SUPPORT endif #PCI diff --git a/drivers/media/v4l2-core/Kconfig b/drivers/media/v4l2-core/Kconfig index 39e3fb30ba0b..26276b257eae 100644 --- a/drivers/media/v4l2-core/Kconfig +++ b/drivers/media/v4l2-core/Kconfig @@ -31,16 +31,6 @@ config VIDEO_FIXED_MINOR_RANGES When in doubt, say N. -config VIDEO_PCI_SKELETON - tristate "Skeleton PCI V4L2 driver" - depends on PCI - depends on SAMPLES - depends on VIDEO_V4L2 && VIDEOBUF2_CORE - depends on VIDEOBUF2_MEMOPS && VIDEOBUF2_DMA_CONTIG - help - Enable build of the skeleton PCI driver, used as a reference - when developing new drivers. - # Used by drivers that need tuner.ko config VIDEO_TUNER tristate From patchwork Wed Mar 25 09:49:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 210469 Return-Path: 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, 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 7A97FC1975A for ; Wed, 25 Mar 2020 09:49:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 462CB2078A for ; Wed, 25 Mar 2020 09:49:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129786; bh=CwWUh6a9Zdx+QXALv97ZfMpOnRIavxM761SQ/GAwY1E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=C6jopOMIhCJqM4biPntdrzugfaCqw8qjaP1oLs6z46UXEIjnwH7xQ1/gDB+i/FqnM yPqCfz8J8Xd9Dx+/kk5yW9TcUNzBk11hfEL/EwYAN+Feu8yQR+mjeARLZcTiI9bLwe eCaa4y/ErfqR+z9sXvFfIiRNVdkavv+kB16QXuS8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727517AbgCYJtl (ORCPT ); Wed, 25 Mar 2020 05:49:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:51324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727339AbgCYJtk (ORCPT ); Wed, 25 Mar 2020 05:49:40 -0400 Received: from mail.kernel.org (ip5f5ad4e9.dynamic.kabel-deutschland.de [95.90.212.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D89A62078E; Wed, 25 Mar 2020 09:49:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129780; bh=CwWUh6a9Zdx+QXALv97ZfMpOnRIavxM761SQ/GAwY1E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lt5cekGIHAt32qGaQdE5QnbtX0Ga8x3fQf8Bg3gLiurvr/PB7fUyWjDTjbtdY09Ec 8475xnrw6bJ60NX5LgLIUQXpdJRloLXhR6r4QiKyAiibMXHKVY44cE+2yjAAIIqsTF ItNP5gid5mMynzUT7N6RfYkkVVfI6cWb+wKGPxEQ= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jH2fK-003HTP-4d; Wed, 25 Mar 2020 10:49:38 +0100 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab Subject: [PATCH v3 05/22] media: reorganize the drivers menu options Date: Wed, 25 Mar 2020 10:49:19 +0100 Message-Id: <36513cd58de8edfed812b1a291b4346f26eabbe0.1585129041.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The comments before some of the drivers support look weird, because their Kconfig have their own "comment" directive inside it. So, rearrange them to make it look a little nicer for the ones with are not too familiar with the media system. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig index 184c7f4f057b..e2023a268af9 100644 --- a/drivers/media/Kconfig +++ b/drivers/media/Kconfig @@ -176,6 +176,9 @@ source "drivers/media/usb/Kconfig" source "drivers/media/pci/Kconfig" source "drivers/media/radio/Kconfig" +# Common driver options +source "drivers/media/common/Kconfig" + if MEDIA_PLATFORM_SUPPORT source "drivers/media/platform/Kconfig" source "drivers/media/mmc/Kconfig" @@ -185,9 +188,6 @@ comment "Supported FireWire (IEEE 1394) Adapters" depends on DVB_CORE && FIREWIRE source "drivers/media/firewire/Kconfig" -# Common driver options -source "drivers/media/common/Kconfig" - comment "Media ancillary drivers (tuners, sensors, i2c, spi, frontends)" # From patchwork Wed Mar 25 09:49:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 210463 Return-Path: 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, 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 B7981C54FD4 for ; Wed, 25 Mar 2020 09:49:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8526720772 for ; Wed, 25 Mar 2020 09:49:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129794; bh=TZH+ye+z6DRgrpB2IP7rRy8cr5YOW2cy/BwPD9vhHSY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=VRRw7jKmg4phrpqtFXNJAS/IuELihPPzamQHKN1sjhRqetVRN0bfQ7u11ZTwbfqIy MNxRwe3hdNE6+2rti0lbuhkUYHXvqHSzTEHjf1rVL55v6iAcXuD963lKz13x8kCUI6 Hym1ya3WBrbhodXm6gcPVF46ly7iY275H2lUqpbY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727562AbgCYJtx (ORCPT ); Wed, 25 Mar 2020 05:49:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:51356 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727432AbgCYJtl (ORCPT ); Wed, 25 Mar 2020 05:49:41 -0400 Received: from mail.kernel.org (ip5f5ad4e9.dynamic.kabel-deutschland.de [95.90.212.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 09D0E208CA; Wed, 25 Mar 2020 09:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129780; bh=TZH+ye+z6DRgrpB2IP7rRy8cr5YOW2cy/BwPD9vhHSY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UM7y6jLStpPRFn9nT92skZLoaWX3l79uoMZkWPKpFHKNiGrkWTh0XBbgiBZEAxDMm N+MTaNkB1CwY72V+8dufXLy18yYvjS+FVJDj+mJJF5dUA25LnUHvUE9dKdewigC69k praZZIemQurdiFa7nHjgYR0d2hGHdMXZwiiwgakA= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jH2fK-003HTo-9d; Wed, 25 Mar 2020 10:49:38 +0100 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab , Hans Verkuil Subject: [PATCH v3 10/22] media: Kconfig: move CEC-specific options to cec/Kconfig Date: Wed, 25 Mar 2020 10:49:24 +0100 Message-Id: <5672138a0de97c55fa4e0d525b96f5e13c3bd6d4.1585129041.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org There's no need to have the CEC definitions inside the media Kconfig, as the Kconfig parser doesn't require symbols to be declared before their usages. With that, the main Kconfig menu becomes cleaner. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/Kconfig | 9 --------- drivers/media/cec/Kconfig | 10 ++++++++++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig index b059d5b29d22..cbf8073c43b4 100644 --- a/drivers/media/Kconfig +++ b/drivers/media/Kconfig @@ -3,15 +3,6 @@ # Multimedia device configuration # -config CEC_CORE - tristate - -config CEC_NOTIFIER - bool - -config CEC_PIN - bool - source "drivers/media/rc/Kconfig" menuconfig MEDIA_SUPPORT diff --git a/drivers/media/cec/Kconfig b/drivers/media/cec/Kconfig index c01919713ab9..31417feaa213 100644 --- a/drivers/media/cec/Kconfig +++ b/drivers/media/cec/Kconfig @@ -1,4 +1,14 @@ # SPDX-License-Identifier: GPL-2.0-only + +config CEC_CORE + tristate + +config CEC_NOTIFIER + bool + +config CEC_PIN + bool + config MEDIA_CEC_RC bool "HDMI CEC RC integration" depends on CEC_CORE && RC_CORE From patchwork Wed Mar 25 09:49:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 210465 Return-Path: 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, 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 D622AC54FD0 for ; Wed, 25 Mar 2020 09:49:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A4B5D20775 for ; Wed, 25 Mar 2020 09:49:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129791; bh=HopLG/jB0cZXKuvZ6uRd3D30VC2RRN0bKuinR9RKx+k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=EjueJIxneXhgJeNSXAnwMzndXj2QdtVz1tIy6pFOm/IbuuNWQy8eOJ+8PykSnV+oB A8fRpa38ggEKty2s5CoC5w7UH/84Khdau+8reMShvHdVZRwH9UBm+KYLkvC02QB2Qn fNe+830NUywdksb8VcmSohElZ0O9tjJ2LpWOt+3o= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727473AbgCYJtu (ORCPT ); Wed, 25 Mar 2020 05:49:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:51332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727459AbgCYJtl (ORCPT ); Wed, 25 Mar 2020 05:49:41 -0400 Received: from mail.kernel.org (ip5f5ad4e9.dynamic.kabel-deutschland.de [95.90.212.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 28E8A20B80; Wed, 25 Mar 2020 09:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129780; bh=HopLG/jB0cZXKuvZ6uRd3D30VC2RRN0bKuinR9RKx+k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=14MGI57l2uu5z/sxoSK/ygljB68DKHBNEbQcFEegJ3/l3aZQ7ytpEXKk0xy1REW/d DfauknW0USOy5Y3gqEs33kUq2/OsrLRHuJiFTwlR87kdS34l2clDN9ppuZAgYJzBii SmhLZJMTYX0RZu6rs/JHxrBoVpOc8ULsM9y0KSMA= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jH2fK-003HU3-D1; Wed, 25 Mar 2020 10:49:38 +0100 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab Subject: [PATCH v3 13/22] media: Kconfig: move V4L2 subdev API to v4l2-core/Kconfig Date: Wed, 25 Mar 2020 10:49:27 +0100 Message-Id: <720696d8ab65766460e4ff6b012677d15df7bd95.1585129041.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This option is part of V4L2 API extra functionality set. Move it to be at the v4l2-core/Kconfig, where it belongs, cleaning the main Kconfig file. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/Kconfig | 9 --------- drivers/media/v4l2-core/Kconfig | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig index a9fe9574a057..b056976ebdee 100644 --- a/drivers/media/Kconfig +++ b/drivers/media/Kconfig @@ -144,15 +144,6 @@ config VIDEO_DEV depends on MEDIA_SUPPORT default MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT || MEDIA_PLATFORM_SUPPORT -config VIDEO_V4L2_SUBDEV_API - bool "V4L2 sub-device userspace API" - depends on VIDEO_DEV && MEDIA_CONTROLLER - help - Enables the V4L2 sub-device pad-level userspace API used to configure - video format, size and frame rate between hardware blocks. - - This API is mostly used by camera interfaces in embedded platforms. - source "drivers/media/v4l2-core/Kconfig" # diff --git a/drivers/media/v4l2-core/Kconfig b/drivers/media/v4l2-core/Kconfig index 26276b257eae..33aa7fe571f8 100644 --- a/drivers/media/v4l2-core/Kconfig +++ b/drivers/media/v4l2-core/Kconfig @@ -16,6 +16,15 @@ config VIDEO_V4L2_I2C depends on I2C && VIDEO_V4L2 default y +config VIDEO_V4L2_SUBDEV_API + bool "V4L2 sub-device userspace API" + depends on VIDEO_DEV && MEDIA_CONTROLLER + help + Enables the V4L2 sub-device pad-level userspace API used to configure + video format, size and frame rate between hardware blocks. + + This API is mostly used by camera interfaces in embedded platforms. + config VIDEO_ADV_DEBUG bool "Enable advanced debug functionality on V4L2 drivers" help From patchwork Wed Mar 25 09:49:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 210464 Return-Path: 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, 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 4F206C54FD5 for ; Wed, 25 Mar 2020 09:49:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 277D720775 for ; Wed, 25 Mar 2020 09:49:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129793; bh=xJvPJCZSm+86XclpOcuvmuWHs8D1xY+L0mEkVTz/HRg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=AkfRV0xzGB4Ws2kS6huFYwoYBzPsqCNlg5d8OK2dOfpgtpcfUoAM8kHIGqbcWOP+O gw7iUoGrPlYCBGu39MKi9gpPe3NsYxDyE8DZDL/WUoPuSlQoDTvwRiJKW+iCj+XNKX pzeFfCOQxE6ZwnUlOIxXSew0/Gd71wGxiWPsWJ8s= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727565AbgCYJtw (ORCPT ); Wed, 25 Mar 2020 05:49:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:51374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727487AbgCYJtl (ORCPT ); Wed, 25 Mar 2020 05:49:41 -0400 Received: from mail.kernel.org (ip5f5ad4e9.dynamic.kabel-deutschland.de [95.90.212.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3EDE82137B; Wed, 25 Mar 2020 09:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129780; bh=xJvPJCZSm+86XclpOcuvmuWHs8D1xY+L0mEkVTz/HRg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pJ+kTZMG2Im94U9TEpkvFWmMrbA2b2+sYb0p1oDvyKx+yu9xN46LKfrCFfFFE5e1M YQcVtdMpixW9JJdSxuUWkF0VrBLYmUbIDTDgV0D2xHyYBBcVLztniqxInVw4MxbI3B n6cNAH/lYhQ82BMO0udgl2X/ElGRwnYYVhg5sTZ4= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jH2fK-003HUI-G3; Wed, 25 Mar 2020 10:49:38 +0100 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab Subject: [PATCH v3 16/22] media: Kconfig: better organize menu items Date: Wed, 25 Mar 2020 10:49:30 +0100 Message-Id: <3fcb0701bc73f69036aefcbd41207ae21b707520.1585129041.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Place all API specific bits together Signed-off-by: Mauro Carvalho Chehab --- drivers/media/Kconfig | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig index 3872e46545e6..4fbebb6bda15 100644 --- a/drivers/media/Kconfig +++ b/drivers/media/Kconfig @@ -130,10 +130,6 @@ endmenu # media device types comment "Media core options" -source "drivers/media/cec/Kconfig" - -source "drivers/media/mc/Kconfig" - # # Video4Linux support # Only enables if one of the V4L2 types (ATV, webcam, radio) is selected @@ -153,8 +149,6 @@ config MEDIA_CONTROLLER This API is mostly used by camera interfaces in embedded platforms. -source "drivers/media/v4l2-core/Kconfig" - # # DVB Core # Only enables if one of DTV is selected @@ -170,7 +164,10 @@ config DVB_CORE help +source "drivers/media/v4l2-core/Kconfig" +source "drivers/media/mc/Kconfig" source "drivers/media/dvb-core/Kconfig" +source "drivers/media/cec/Kconfig" comment "Media drivers" From patchwork Wed Mar 25 09:49:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 210470 Return-Path: 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, 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 28089C54FD0 for ; Wed, 25 Mar 2020 09:49:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 011302078A for ; Wed, 25 Mar 2020 09:49:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129784; bh=xkc3+S97DO2WDvTlGFyxZEMgMVujIwV1OqJVhaTpsaw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=CmoTEOG6DxGTTM8uCnppvryJxNFuABU6NnCxxmMkrS7aYkWnfvvql1Af3VVd8OP9X bZhYIclO0hl4vxqmVArOhEcd4/HsWSRkMdYk1za7BSsM4i62ojkC4rkM7Lrc6KvgRv cqdyyi0566qinAcWfIySeiFgMIoA6x349eb993mA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727521AbgCYJtm (ORCPT ); Wed, 25 Mar 2020 05:49:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:51376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727483AbgCYJtl (ORCPT ); Wed, 25 Mar 2020 05:49:41 -0400 Received: from mail.kernel.org (ip5f5ad4e9.dynamic.kabel-deutschland.de [95.90.212.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 48CD7214D8; Wed, 25 Mar 2020 09:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129780; bh=xkc3+S97DO2WDvTlGFyxZEMgMVujIwV1OqJVhaTpsaw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mAw2pzJSk/aFXoWwHa7qBfp4qF/Omt0zS/AzDNYRweR78MmTHlb3rCMFhMTsBxceI ew2SWE2dB/mrIRkOlGCDQ6iZnc7BwE4tuW9ZCWc2eyIRQ0WQOnQx6cuFWPQ7N5I4Pe FIebyzmRey7oL3wdwKtKPKG2qdXWnPU0xGXWR5Ko= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jH2fK-003HUN-H6; Wed, 25 Mar 2020 10:49:38 +0100 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab , Stefan Richter , linux1394-devel@lists.sourceforge.net Subject: [PATCH v3 17/22] media: Kconfig: mode firewire comment to firewire/Kconfig Date: Wed, 25 Mar 2020 10:49:31 +0100 Message-Id: <94f1d3fc3467bf2335a3e286e2c6055bdf7c37d5.1585129041.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This comment should only be visible if the DVB_FIREDTV config will show. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/Kconfig | 2 -- drivers/media/firewire/Kconfig | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig index 4fbebb6bda15..ad9636692183 100644 --- a/drivers/media/Kconfig +++ b/drivers/media/Kconfig @@ -185,8 +185,6 @@ source "drivers/media/mmc/Kconfig" endif -comment "FireWire (IEEE 1394) Adapters" - depends on DVB_CORE && FIREWIRE source "drivers/media/firewire/Kconfig" comment "Media ancillary drivers (tuners, sensors, i2c, spi, frontends)" diff --git a/drivers/media/firewire/Kconfig b/drivers/media/firewire/Kconfig index e7837da5905b..0c1f326f581f 100644 --- a/drivers/media/firewire/Kconfig +++ b/drivers/media/firewire/Kconfig @@ -1,7 +1,9 @@ # SPDX-License-Identifier: GPL-2.0-only +if DVB_CORE && FIREWIRE +comment "FireWire (IEEE 1394) Adapters" + config DVB_FIREDTV tristate "FireDTV and FloppyDTV" - depends on DVB_CORE && FIREWIRE help Support for DVB receivers from Digital Everywhere which are connected via IEEE 1394 (FireWire). @@ -18,3 +20,4 @@ config DVB_FIREDTV_INPUT def_bool INPUT = y || (INPUT = m && DVB_FIREDTV = m) endif # DVB_FIREDTV +endif # DVB_CORE && FIREWIRE From patchwork Wed Mar 25 09:49:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 210468 Return-Path: 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, 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 31C04C43331 for ; Wed, 25 Mar 2020 09:49:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 099ED20775 for ; Wed, 25 Mar 2020 09:49:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129787; bh=JfVkndPE6qDCqVH/nUkmyoOEBha17qMvaz0pzTkXOb0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=XGiM7+yAKSNRkO/YKZPU/idZ3IiA9K2ant7N+pKigpMTDXv3KafptoPUKAXG3d+JH 3DgY5GCsqq64ysVP47tD2yo6mhnqiV7q6eePjsFTX2C9x3A63JzskTz2GFUthl2GmQ Y8VJbmlbAzLiFQQL/x6nUXsLf5ARUC7yCc1CZoo0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727546AbgCYJtq (ORCPT ); Wed, 25 Mar 2020 05:49:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:51382 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727265AbgCYJtl (ORCPT ); Wed, 25 Mar 2020 05:49:41 -0400 Received: from mail.kernel.org (ip5f5ad4e9.dynamic.kabel-deutschland.de [95.90.212.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 52F7E21582; Wed, 25 Mar 2020 09:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129780; bh=JfVkndPE6qDCqVH/nUkmyoOEBha17qMvaz0pzTkXOb0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iggY4fmZXOz8ZeI5rLrC1qYxr0E8GH4hvJe7lxXOrjgTzImFT2qmBI3O4vuChctAH SVnk9c3opBBC9ZZ+rJRof0OzouJqACHfumv/oDQQ0C+6Y/tCoipdP+l7Y542bVkk5H L8LhBHjSRKl/VdSf4LR8rSEaZznCvYjC1Sldo0Zs= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jH2fK-003HUX-Is; Wed, 25 Mar 2020 10:49:38 +0100 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab Subject: [PATCH v3 19/22] media: Kconfig: move the position of sub-driver autoselection Date: Wed, 25 Mar 2020 10:49:33 +0100 Message-Id: <537411dd41db3cb2dc71ec24b58197cb66f76a4f.1585129041.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Let's place the sub-driver-autoselection option just below the device filtering one, as it also controls a filter menu, with is not even visible if !EXPERT && !EMBEDDED. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/Kconfig | 50 +++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig index a8cda10b506c..efc46792e87f 100644 --- a/drivers/media/Kconfig +++ b/drivers/media/Kconfig @@ -33,6 +33,28 @@ config MEDIA_SUPPORT_FILTER needed to support media drivers will be enabled. Also, all media device drivers should be shown. +config MEDIA_SUBDRV_AUTOSELECT + bool "Autoselect ancillary drivers (tuners, sensors, i2c, spi, frontends)" + depends on HAS_IOMEM + select I2C + select I2C_MUX + default y if MEDIA_SUPPORT_FILTER + help + By default, a media driver auto-selects all possible ancillary + devices such as tuners, sensors, video encoders/decoders and + frontends, that are used by any of the supported devices. + + This is generally the right thing to do, except when there + are strict constraints with regards to the kernel size, + like on embedded systems. + + Use this option with care, as deselecting ancillary drivers which + are, in fact, necessary will result in the lack of the needed + functionality for your device (it may not tune or may not have + the needed demodulators). + + If unsure say Y. + menu "Media device types" visible if MEDIA_SUPPORT_FILTER @@ -190,40 +212,18 @@ source "drivers/media/firewire/Kconfig" endmenu -menu "Media ancillary drivers (tuners, sensors, i2c, spi, frontends)" - # # Ancillary drivers (tuners, i2c, spi, frontends) # -config MEDIA_SUBDRV_AUTOSELECT - bool "Autoselect ancillary drivers (tuners, sensors, i2c, spi, frontends)" - depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_CAMERA_SUPPORT || MEDIA_SDR_SUPPORT - depends on HAS_IOMEM - select I2C - select I2C_MUX - default y if !EMBEDDED - help - By default, a media driver auto-selects all possible ancillary - devices such as tuners, sensors, video encoders/decoders and - frontends, that are used by any of the supported devices. - - This is generally the right thing to do, except when there - are strict constraints with regards to the kernel size, - like on embedded systems. - - Use this option with care, as deselecting ancillary drivers which - are, in fact, necessary will result in the lack of the needed - functionality for your device (it may not tune or may not have - the needed demodulators). - - If unsure say Y. - config MEDIA_HIDE_ANCILLARY_SUBDRV bool depends on MEDIA_SUBDRV_AUTOSELECT && !COMPILE_TEST && !EXPERT default y +menu "Media ancillary drivers" + visible if !MEDIA_HIDE_ANCILLARY_SUBDRV + config MEDIA_ATTACH bool depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT From patchwork Wed Mar 25 09:49:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 210466 Return-Path: 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, 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 5449AC54FD4 for ; Wed, 25 Mar 2020 09:49:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2105A20775 for ; Wed, 25 Mar 2020 09:49:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129789; bh=Ouxe/ibQ8S33uxJ8KBxRmDCNq+3QeSz9aFGkdkxkarY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=WUb9IXkqgrjm0u1BSxqS/YKjrJe7YFrnuTKM0DXZaTKDlylbmQBsDuGjoNIjPLcZo FvptS3J3W5m7WudABq+6AwYV8XAGH2Y/RDRL7LnLUihBeHbHcZuZdacMegiHZ/m9Gl KKsfhlptxyOBsDOnLvF7qHOQK1ZmLpvIG2W26kyc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727558AbgCYJts (ORCPT ); Wed, 25 Mar 2020 05:49:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:51384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727492AbgCYJtl (ORCPT ); Wed, 25 Mar 2020 05:49:41 -0400 Received: from mail.kernel.org (ip5f5ad4e9.dynamic.kabel-deutschland.de [95.90.212.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 537BC215A4; Wed, 25 Mar 2020 09:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129780; bh=Ouxe/ibQ8S33uxJ8KBxRmDCNq+3QeSz9aFGkdkxkarY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v5N+JmvQ9LVroi5qBJaWH/ylF2rufuShbgpwdMQ3qL/i4XL1qGPVQMCFObZxloTBp yiu+SWkIpsM/H4W9taHIsS1737GNd4mqFhnruWQsiGZPO2lP/ME++lUN/5AfWG2vtw Eajp2EVOAGi7gt74se3rwXzPC/X2TazWIwwOSxXM= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jH2fK-003HUc-Jh; Wed, 25 Mar 2020 10:49:38 +0100 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab Subject: [PATCH v3 20/22] media: Kconfig: on !EMBEDDED && !EXPERT, enable driver filtering Date: Wed, 25 Mar 2020 10:49:34 +0100 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Advanced and embedded users know what to do, so, by default, they will likely want to be able to open the entire set of Kconfig media options. Normal "poor" users usually needs more help when setting stuff, so let's open an more simplified version to them by default. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig index efc46792e87f..c900263438a7 100644 --- a/drivers/media/Kconfig +++ b/drivers/media/Kconfig @@ -21,6 +21,7 @@ if MEDIA_SUPPORT config MEDIA_SUPPORT_FILTER bool "Filter devices by their types" depends on MEDIA_SUPPORT + default y if !EMBEDDED && !EXPERT help Configuring the media subsystem can be complex, as there are hundreds of drivers and other config options. From patchwork Wed Mar 25 09:49:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 210467 Return-Path: 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=-10.1 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, 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 CB09FC1975A for ; Wed, 25 Mar 2020 09:49:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A330920775 for ; Wed, 25 Mar 2020 09:49:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129788; bh=goebKDPYxdQMig2uMfeGKfDFiiRzNxXgdbzpL7eda4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Hq+jRkgZZHk+h2hWC+gsazy2M9I5ftrIlgq6DUK1mHnfDC28mA5CCY4LT80xa/o67 pXQtxvcecpOoh8VMmuwbaZrziZbukAmXksIAs69LI3L0Z3pGq17LZf1uMYNf4A3bUO 8g7n8wZ4CiysMT08J3gDW7tdhA9ztyXKzhV/0o30= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727556AbgCYJtr (ORCPT ); Wed, 25 Mar 2020 05:49:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:51354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727498AbgCYJtl (ORCPT ); Wed, 25 Mar 2020 05:49:41 -0400 Received: from mail.kernel.org (ip5f5ad4e9.dynamic.kabel-deutschland.de [95.90.212.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 61B8E216FD; Wed, 25 Mar 2020 09:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585129780; bh=goebKDPYxdQMig2uMfeGKfDFiiRzNxXgdbzpL7eda4A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mmzYbBK6o3qzzhVAtaTg6bvBONORiOg2Kq7Nue2wIrzcA9WN7QpiWdzoz/JTXZs/9 NFelzxdIC/ZXUsnxNvogxGKIqR4c5LRfd+r9ByztZLAPv3vImjM7zC10xwQmgECgfK KWdYfYTrCmL8y1+JTYrNWvakOLDH8bMS2inMlLXo= Received: from mchehab by mail.kernel.org with local (Exim 4.92.3) (envelope-from ) id 1jH2fK-003HUh-KV; Wed, 25 Mar 2020 10:49:38 +0100 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab Subject: [PATCH v3 21/22] media: Kconfig: simplify some dependencies Date: Wed, 25 Mar 2020 10:49:35 +0100 Message-Id: <5c84bcccafa952dbd3b22083bcbd3ed0eeeb4225.1585129041.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org both DVB_CORE and VIDEO_DEV already depends on MEDIA_SUPPORT, as they're below an if block. So, remove this double dependency. Signed-off-by: Mauro Carvalho Chehab --- drivers/media/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig index c900263438a7..2a69b8024a0f 100644 --- a/drivers/media/Kconfig +++ b/drivers/media/Kconfig @@ -156,7 +156,6 @@ menu "Media core support" config VIDEO_DEV tristate "Video4Linux core" - depends on MEDIA_SUPPORT default MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT || MEDIA_PLATFORM_SUPPORT help Enables the V4L2 API, used by cameras, analog TV, video grabbers, @@ -173,7 +172,6 @@ config MEDIA_CONTROLLER config DVB_CORE tristate "Digital TV core" - depends on MEDIA_SUPPORT default MEDIA_DIGITAL_TV_SUPPORT depends on (I2C || I2C=n) select CRC32