[GIT,PULL,FOR,v4.21] Convert last remaining g/s_crop/cropcap drivers
Message ID | abf9e001-7fa9-e30c-b4f4-746485cad5b8@xs4all.nl (mailing list archive) |
---|---|
State | Accepted, archived |
Headers |
Received: from vger.kernel.org ([209.132.180.67]) by www.linuxtv.org with esmtp (Exim 4.84_2) (envelope-from <linux-media-owner@vger.kernel.org>) id 1gK1JE-0000yJ-QA; Tue, 06 Nov 2018 13:22:21 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388094AbeKFWra (ORCPT <rfc822;mkrufky@linuxtv.org> + 1 other); Tue, 6 Nov 2018 17:47:30 -0500 Received: from lb2-smtp-cloud9.xs4all.net ([194.109.24.26]:53935 "EHLO lb2-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387913AbeKFWra (ORCPT <rfc822;linux-media@vger.kernel.org>); Tue, 6 Nov 2018 17:47:30 -0500 Received: from [IPv6:2001:420:44c1:2579:ecb0:41c2:bbc4:5915] ([IPv6:2001:420:44c1:2579:ecb0:41c2:bbc4:5915]) by smtp-cloud9.xs4all.net with ESMTPA id K1J7gIu6oSskCK1JAgVou6; Tue, 06 Nov 2018 14:22:16 +0100 To: Linux Media Mailing List <linux-media@vger.kernel.org> Cc: Sylwester Nawrocki <snawrocki@kernel.org> From: Hans Verkuil <hverkuil@xs4all.nl> Subject: [GIT PULL FOR v4.21] Convert last remaining g/s_crop/cropcap drivers Message-ID: <abf9e001-7fa9-e30c-b4f4-746485cad5b8@xs4all.nl> Date: Tue, 6 Nov 2018 14:22:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfPuVYTloMIS39I6sbLNZ0QO/36kALm2WF/69vW/p74XhK2vgzNg6x6HHFLj2QSDOD94uOYnvHEnYVHr+fRW+sDU0cJtOmY6Xihr0nieSVQiC+tqkxjz3 SYL6sGDVNsJBLtepI2V6sHlSOZxGFU8EVezDpMBSnFEXlGwSn/trGRINxSZV/24p4vdjhWMjpoUOnsjEh2rUWvT8NXnt0wKxge3zpnryY7ypmk4tOwF7behq LnAOz9wrCC577Fm705qtafMzrlgYbgAKUbNPM8vhsxVA7apgfNSKo2/LzD3pvNPl5r+tGEEZUXZE71T/aZ3vow== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org |
Pull-request
git://linuxtv.org/hverkuil/media_tree.git tags/br-crop2sel-v2Message
Hans Verkuil
Nov. 6, 2018, 1:22 p.m. UTC
This pull request converts the last remaining drivers that use g/s_crop and cropcap to g/s_selection. The first two patches do some minor code cleanup. The third patch adds a new video_device flag to indicate that the driver inverts the normal usage of g/s_crop/cropcap. This applies to the old Samsung drivers that predate the Selection API and that abused the existing crop API. The next three patches do some code cleanup and prepare drivers for the removal of g/s_crop and ensure that cropcap only returns the pixelaspect. The next three patches convert the remaining Samsung drivers and set the QUIRK flag for all three. The final two patches remove vidioc_g/s_crop and rename vidioc_cropcap to vidioc_g_pixelaspect. This pull request is identical to the original RFC patch series: https://www.mail-archive.com/linux-media@vger.kernel.org/msg135494.html I was waiting for Samsung to test these changes, and Sylwester just did that. Thank you very much, Sylwester! It's really nice to have a single driver API for cropping and composing instead of having to deal with two. Regards, Hans The following changes since commit ef86eaf97acd6d82cd3fd40f997b1c8c4895a443: media: Rename vb2_m2m_request_queue -> v4l2_m2m_request_queue (2018-11-06 05:24:22 -0500) are available in the Git repository at: git://linuxtv.org/hverkuil/media_tree.git tags/br-crop2sel-v2 for you to fetch changes up to 588488146f93467815fd2ffdbabe7bb37d10e54c: vidioc_cropcap -> vidioc_g_pixelaspect (2018-11-06 13:05:45 +0100) ---------------------------------------------------------------- Tag branch ---------------------------------------------------------------- Hans Verkuil (11): v4l2-ioctl: don't use CROP/COMPOSE_ACTIVE v4l2-common.h: put backwards compat defines under #ifndef __KERNEL__ v4l2-ioctl: add QUIRK_INVERTED_CROP davinci/vpbe: drop unused g_cropcap cropcap/g_selection split exynos-gsc: replace v4l2_crop by v4l2_selection s5p_mfc_dec.c: convert g_crop to g_selection exynos4-is: convert g/s_crop to g/s_selection s5p-g2d: convert g/s_crop to g/s_selection v4l2-ioctl: remove unused vidioc_g/s_crop vidioc_cropcap -> vidioc_g_pixelaspect drivers/media/pci/bt8xx/bttv-driver.c | 12 +++--- drivers/media/pci/cobalt/cobalt-v4l2.c | 48 +++++++++++++++++++---- drivers/media/pci/cx18/cx18-ioctl.c | 13 ++++--- drivers/media/pci/cx23885/cx23885-video.c | 40 +++++++++++++------ drivers/media/pci/ivtv/ivtv-ioctl.c | 17 ++++---- drivers/media/pci/saa7134/saa7134-video.c | 21 +++++----- drivers/media/platform/am437x/am437x-vpfe.c | 31 ++++++++------- drivers/media/platform/davinci/vpbe.c | 23 ----------- drivers/media/platform/davinci/vpbe_display.c | 10 ++--- drivers/media/platform/davinci/vpfe_capture.c | 12 +++--- drivers/media/platform/exynos-gsc/gsc-core.c | 57 +++++++++++---------------- drivers/media/platform/exynos-gsc/gsc-core.h | 3 +- drivers/media/platform/exynos-gsc/gsc-m2m.c | 23 +++++------ drivers/media/platform/exynos4-is/fimc-core.h | 6 ++- drivers/media/platform/exynos4-is/fimc-m2m.c | 130 ++++++++++++++++++++++++++++++++++++-------------------------- drivers/media/platform/rcar-vin/rcar-v4l2.c | 10 ++--- drivers/media/platform/s5p-g2d/g2d.c | 102 ++++++++++++++++++++++++++++++------------------ drivers/media/platform/s5p-mfc/s5p_mfc.c | 1 + drivers/media/platform/s5p-mfc/s5p_mfc_dec.c | 49 +++++++++++++++-------- drivers/media/platform/vivid/vivid-core.c | 9 +++-- drivers/media/platform/vivid/vivid-vid-cap.c | 18 ++++----- drivers/media/platform/vivid/vivid-vid-cap.h | 2 +- drivers/media/platform/vivid/vivid-vid-out.c | 18 ++++----- drivers/media/platform/vivid/vivid-vid-out.h | 2 +- drivers/media/usb/au0828/au0828-video.c | 38 ++++++++++++------ drivers/media/usb/cpia2/cpia2_v4l.c | 31 +++++++-------- drivers/media/usb/cx231xx/cx231xx-417.c | 41 ++++++++++++++------ drivers/media/usb/cx231xx/cx231xx-video.c | 41 ++++++++++++++------ drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 13 ++++--- drivers/media/v4l2-core/v4l2-dev.c | 8 ++-- drivers/media/v4l2-core/v4l2-ioctl.c | 44 +++++++++++++-------- include/media/davinci/vpbe.h | 4 -- include/media/v4l2-dev.h | 13 ++++++- include/media/v4l2-ioctl.h | 16 ++------ include/uapi/linux/v4l2-common.h | 28 +++++++------- 35 files changed, 537 insertions(+), 397 deletions(-)