[0/2] Address device enumeration and run_mode
Message ID | cover.1636200095.git.mchehab+huawei@kernel.org (mailing list archive) |
---|---|
Headers |
Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from <linux-media-owner@vger.kernel.org>) id 1mjKSB-000yfC-Jy; Sat, 06 Nov 2021 12:05:47 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234116AbhKFMIW (ORCPT <rfc822;mkrufky@linuxtv.org> + 1 other); Sat, 6 Nov 2021 08:08:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:38632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234106AbhKFMIV (ORCPT <rfc822;linux-media@vger.kernel.org>); Sat, 6 Nov 2021 08:08:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E16006124F; Sat, 6 Nov 2021 12:05:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1636200340; bh=ExULPcPAQoZ6nf/Kka4K5xyWq9L9oGa+euKjhEgJoac=; h=From:To:Cc:Subject:Date:From; b=cB8G277AtlUgFWTh/DwPMKZ/RZDJontr2wA+KRVrc6eVljnKV4nAFnhs+Qz0rnSGJ xw72TmCL2Nj5ufau79Is1kiz+db53vLAWjqjHKnwW3dd8s1yvw1ekZHneXYKjewl8z IlBI+E0136TiI+YcdV9+pTlJEjPmO3cwtLX6W/mtSDyns6u3TKJVCZdO6Q82m/IN6j iN1034zEAXHuZ+HOCmkyy5ATZguTDoHzq4G520qasKaiXRgn5VIZxo+VVKDKljqNhW 0Jd0/YZeGgRc3hGtf+CbaycGKimnWm4hys4RCLP39b4o3U7pX8ljMRmD5tfD/H6KeD eEcp2XjhgyF4w== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from <mchehab@kernel.org>) id 1mjKS2-0006ov-22; Sat, 06 Nov 2021 12:05:38 +0000 From: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab <mchehab+huawei@kernel.org>, Sakari Ailus <sakari.ailus@linux.intel.com>, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH 0/2] Address device enumeration and run_mode Date: Sat, 6 Nov 2021 12:05:35 +0000 Message-Id: <cover.1636200095.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab <mchehab@kernel.org> To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -2.8 (--) X-LSpam-Report: No, score=-2.8 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,MAILING_LIST_MULTI=-1,T_DKIM_INVALID=0.01 autolearn=ham autolearn_force=no |
Message
Mauro Carvalho Chehab
Nov. 6, 2021, 12:05 p.m. UTC
As the atomisp is starting to work with normal V4L2 apps (on USERPTR mode), change the code to: 1. start creating devices from the one that atually works with normal apps (the preview device, previously /dev/video2); 2. Set run_mode for all device types that need it. Please notice that patch 1 replaces a previously sent patch: https://lore.kernel.org/all/543e61dd07c90a7d8577b3a94696edc77953b9d8.1635497370.git.mchehab+huawei@kernel.org/ Mauro Carvalho Chehab (2): media: atomisp: set per-device's default mode media: atomisp: register first the preview devnode .../staging/media/atomisp/pci/atomisp_fops.c | 5 +++ .../media/atomisp/pci/atomisp_subdev.c | 31 ++++++++++++------- .../media/atomisp/pci/atomisp_subdev.h | 3 ++ .../staging/media/atomisp/pci/atomisp_v4l2.c | 4 ++- .../staging/media/atomisp/pci/atomisp_v4l2.h | 3 +- 5 files changed, 32 insertions(+), 14 deletions(-)