From patchwork Fri Sep 14 18:22:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 10601129 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8FA3A933 for ; Fri, 14 Sep 2018 18:22:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C0622BAFB for ; Fri, 14 Sep 2018 18:22:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F2942BB01; Fri, 14 Sep 2018 18:22:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19DF12BAFB for ; Fri, 14 Sep 2018 18:22:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727416AbeINXiT (ORCPT ); Fri, 14 Sep 2018 19:38:19 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:57236 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbeINXiT (ORCPT ); Fri, 14 Sep 2018 19:38:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Message-Id:Date:Subject:Cc:To: From:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xSKGAUk/3cr5kx0+ihz6WXy/aXt06Jh5mQFtWqQc/L8=; b=Sz2/XFkM5WiZLPb2epiXtS4Mie 6iXM9pAZfjAugcH2n4s2Jvz6LSVbl5BBYslkoXv9OjiBsaxmwtVFOqZiIiNb2pYPTUNTeSp/Ckniu rDu0pxjmllElHkFJ4U/u3h58tgW3gEs49WjufcRu7ax2Z5/lk7ktNt3XiHTjrmdhn366KstDK/1gc Z31q9do1GGWVBp6qAxTCb0RuO84cHJkVjwSjLb9nlJ2BwQuzvdJJbKxHTtxi7o1TzrpJURmYeMuXp YutpzjbeEYeE4+DC2kaOEq+85tI8vdc5vLun/zQUyqcWK1jsBFE+9477tS7uOLRS3RZ/q8Wg4Ntm3 /kfacBBQ==; Received: from [179.95.0.169] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g0sjl-00039V-Tt; Fri, 14 Sep 2018 18:22:38 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.91) (envelope-from ) id 1g0sjj-0000Fh-Op; Fri, 14 Sep 2018 15:22:35 -0300 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab Subject: [PATCH 0/4] em28xx: solve several issues pointed by v4l2-compliance Date: Fri, 14 Sep 2018 15:22:30 -0300 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There are several non-compliance issues on em28xx. Fix those that I can hit with a simple grabber board like Terratec AV 350. I also tested it with a WinTV USB2. There, I got several other compliants all related to msp3400 driver and step size. Fixing those is more complex, as it would require some non-trivial changes. So, for now, let's do just the ones that aren't related to msp3400. Mauro Carvalho Chehab (4): media: em28xx: fix handler for vidioc_s_input() media: em28xx: use a default format if TRY_FMT fails media: em28xx: fix input name for Terratec AV 350 media: em28xx: make v4l2-compliance happier by starting sequence on zero drivers/media/usb/em28xx/em28xx-cards.c | 33 ++++++++- drivers/media/usb/em28xx/em28xx-video.c | 91 ++++++++++++++++++++++--- drivers/media/usb/em28xx/em28xx.h | 8 ++- 3 files changed, 118 insertions(+), 14 deletions(-)