Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp336878ybn; Wed, 25 Sep 2019 00:13:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqwU40GYtqqjiPvVQyfXXi0Nfvw+ReSLVIKev3HIx33fiDE3hDo7KLQP2DTklCYp/uac90H0 X-Received: by 2002:a1c:9c51:: with SMTP id f78mr5539035wme.144.1569395627262; Wed, 25 Sep 2019 00:13:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569395627; cv=none; d=google.com; s=arc-20160816; b=r0y9+tX/t2y112/3KL8AwD0TJG6pFXXbAGHxg6PQ6cCK5Np1Oew7E/PLniNql6+4Ut WHSSHv/K1RWOi14MAVPQxdEMy2QLB90nPqhp0ymBAe8QxLVWLM87oGdPXX9+hTuHSSvp kpveWAF9IRQo+B08nJqZCCVgQ9ptpKG4vCsLbNBE8J/MbHp93VTBbwHPPt95ndhWlC5u LM1dBNQtKhVpGLnDYDPF+82scbeCszEJbu7Nv1KrEnPnwnZLgCfDl5aZBu+NQ7Av3YFx AK+CU2fRJ6Gi3UgIJtCJXd3H1ziKOHjXTnOt19tN+hEjoBODmvZxfZEXwvN5sMb0IYFE xaBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=L3VZw9gsoOGTjmrIswL2X3xH6gpHrLFYDcSFK7tby0E=; b=rZFRwJGQUpOyPNGTz1QY22A9RW8iHqG8IMIPb+TA/zBZp6GdNkpeaEEmtP3mO39Iy+ jgMPZDnX5fONwnFwxuBFhBKYVI8tU2B4ZsJcT8aNUfSfClrxoae0DefxcdCcaZIGb7hl wQ8j3eUVVCbQX1v3YQpEN3AUgTOwXK7geiwg23tYvatKdiipDpNPGd+IzAokQFemBz7M sdRhHmqUPrvxOSWvX15x8L4FBdkAVIv5NJa3lWFjeD6bRTHbAm/6CLn37+kXTKhkNj9E vCwIZzGPkauTdb/ycrppPBh32EsfEZ95AjYfngqN6ePrZe5CAr+fHNSluOoaDXuKDJpw jO1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si2137682ejx.236.2019.09.25.00.13.12; Wed, 25 Sep 2019 00:13:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436961AbfIWIFP (ORCPT + 99 others); Mon, 23 Sep 2019 04:05:15 -0400 Received: from lb1-smtp-cloud8.xs4all.net ([194.109.24.21]:57027 "EHLO lb1-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436751AbfIWIFP (ORCPT ); Mon, 23 Sep 2019 04:05:15 -0400 Received: from [192.168.2.10] ([46.9.232.237]) by smtp-cloud8.xs4all.net with ESMTPA id CJLJivCGlKKNGCJLMikH25; Mon, 23 Sep 2019 10:05:13 +0200 Subject: Re: bringing back media/zoran driver To: Corentin Labbe , mjpeg-users@lists.sourceforge.net, linux-media@vger.kernel.org, mchehab@kernel.org, laurent.pinchart@ideasonboard.com Cc: linux-kernel@vger.kernel.org References: <20190921170357.GA26626@Red> From: Hans Verkuil Message-ID: <8db38daf-74eb-8218-1cc6-ea9036afac3d@xs4all.nl> Date: Mon, 23 Sep 2019 10:05:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190921170357.GA26626@Red> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfCt1NjjCrrSl4jVu+CGzrZ5XhSiiHWrlUMePsTQcsj+kDTvGrYlE3vi9hHcONZRmJxVMWgOkWI9Dg0urdPkdhWd0N9H4bkSxk/Frzyj+2aYSPYeywbH0 l10rUt4+m7bT6Uo6XP9Pi0seagJmyqgsFNe7AVrWoW6G/F+jdMQulndng3pvD8O+0sDmNUdmfIo18gIcGAxo0ivjEXBDn856wYmgDpc2uLlI2kXlx3/4Tguu mfkWm9zDz6K6Nl2tkf//h+Z9gHKnLoj52qhsEj3t4votTLnDmzlH6QxewAZNSWdgKvARu7g2TKgb+mNxUIMRippvkudm8ip+NnUSiagtEwvCRRhENbZvIRdu fjLEfZD4HJsY/7koMv0T3j25Xf9xrg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/21/19 7:03 PM, Corentin Labbe wrote: > hello > > I am the owner of a zoran based DC10+ card. > I am in the need of using it since yesterday and I found that its driver was removed. > > Reverting the removing patch made to a temporary working situation. > > If I understand correctly, it was removed due to lack of vb2 convertion. > If I am able to do this vb2 conversion, does bring it back in mainline will be posssible ? > In that case I am ready to assume to be the maintainer if needed. It would be nice to get it back. The conversion to vb2 is the main requirement, but in general this driver needed some TLC in general: it's a very old driver and the coding standards were quite a bit lower than they are today. But the vb2 conversion is the most important part. It's unfortunately not the easiest thing to do (if it was, we'd have done it already!), and it is also a 'big bang' patch, i.e. one very large patch that converts the driver to vb2. It's all or nothing, you can't have half a vb2 conversion, so that makes it hard to review. The easiest way is to use the v4l2-compliance utility to verify the conversion. Running 'v4l2-compliance -s' is a good way of verifying this. My recommended approach is to: 1) first revert the removal patch (commit 8dce4b265a53) 2) clean up the coding style. Probably easiest to create one patch per source. Use 'checkpatch.pl --strict -f ' for this. Doing this should make the source code easier to understand/review. 3) Run v4l2-compliance (without the -s option) and fix any failures it finds. 4) Convert to vb2, using 'v4l2-compliance -s' to test. Be aware that the code is messy compared to modern standards. Do not be afraid to create cleanup patches, it's probably needed. The v4l2-compliance utility is part of https://git.linuxtv.org/v4l-utils.git/. See the README on how to build. Always use the v4l2-compliance version from this git repo since that's always the latest and greatest. I recommend that you join the #v4l irc channel on freenode.org. Most core devs that can help with advice are there during office hours (and often outside of office hours as well). That's for the European timezones since most devs are based in Europe. Regards, Hans