Received: by 10.223.176.5 with SMTP id f5csp1136301wra; Tue, 6 Feb 2018 13:22:48 -0800 (PST) X-Google-Smtp-Source: AH8x225/5ny1kpQE2re81OcGIO40eEvG80T8WX/ZrX2R5zmWqy9fIQbeDQcEZ3sHhv+KdsipsNlK X-Received: by 10.99.2.67 with SMTP id 64mr2964691pgc.117.1517952168157; Tue, 06 Feb 2018 13:22:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517952168; cv=none; d=google.com; s=arc-20160816; b=rDGWOHXqY96Y6EYIB/wGCZZfEfXu9iCwXCvpBxpx74bLqosOveLn6zlohPmpOR5kX8 j3PWAGRM1ZCf7XoV5mxUQ1seyM44Z+JHdPwfzilCoy2Odk4Xz8vXtlDQQoCdfaInXcZe rdeLzB+ut9MPLVhOE9Hp3fKnnhrzofZ4fj0eYUL3BaN1hb4Nee37eKShqZht+VhHeM3M AeLp6LRpp8MOe5AuPVwtfBGC0W2fBPLKHjvOkYjmahz5Eeeaos87pjEZT2WSkXxBLGPw fokXmZ3XCnb/zfkz4W/vXvi2H890RGTUEiiFxvrpW2gmHRSMwJA+owbvAzHIyNpFfrXX sCkg== 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:arc-authentication-results; bh=hzxijF7fvxkfmtSU8i/ON6b+xER4OtVhqUR6INlmka0=; b=qEHMGiSJuDMzKqcmfGC2e1ZiNM26P+xfRm+y4GJ3Ha+QBaLig71E83e0f5cLqk4clW 2mcc4mBDaXiGNCd58xK9FbAs3FV1aDjXvtFo6Ub0G8xVD89YRwkbTMtD+mMAG3/xgHxm UL/OJRuTKGULOaTOp/86pYKhnKlHrntBk3rw/wKEMDluSoeQTuq7lg54fbG3KDauS4DV LHS1iOHwi98Eu0ItLHZiXsiP9cRTXpxKsWSD9jgP5Cc48UYpvPPG62FokBvDTfJfWLQj IfjTinjIMya02PxYrTKS/GHfSLOUW02ZgBgVP+kC2PZdIKbWOodC09dwKcPAW+vPhf54 H6uA== 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 u13-v6si1601749plq.435.2018.02.06.13.22.34; Tue, 06 Feb 2018 13:22:48 -0800 (PST) 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 S1754102AbeBFVVY (ORCPT + 99 others); Tue, 6 Feb 2018 16:21:24 -0500 Received: from lb1-smtp-cloud8.xs4all.net ([194.109.24.21]:43681 "EHLO lb1-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751632AbeBFVVW (ORCPT ); Tue, 6 Feb 2018 16:21:22 -0500 Received: from [192.168.2.10] ([212.251.195.8]) by smtp-cloud8.xs4all.net with ESMTPA id jAg1ejxKhar0wjAg4ehLta; Tue, 06 Feb 2018 22:21:21 +0100 Subject: Re: [PATCH v8 0/7] TDA1997x HDMI video reciver To: Tim Harvey , linux-media@vger.kernel.org, alsa-devel@alsa-project.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, shawnguo@kernel.org, Steve Longerbeam , Philipp Zabel , Hans Verkuil , Mauro Carvalho Chehab References: <1517948874-21681-1-git-send-email-tharvey@gateworks.com> From: Hans Verkuil Message-ID: Date: Tue, 6 Feb 2018 22:21:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <1517948874-21681-1-git-send-email-tharvey@gateworks.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfM79BTvMRLJRg5Ifk5tmO+C4yK17+1iIRcYevrUwjVOGvo05dQRl9ltSD48EPITbFYG6LiukRQLKv9LkWyr0EzgwTR2Febtts6oU47sbI79nywRDafqN LE01TdgW5IoqaPtdebBO73rcoIHr6Kj737b4FWUsvfOm9NiEdctWTKKv7gmN2LBB+VYDO1awfZgyq0fO7Jwn47SO0vPYFNFL+sumP7wIFfM4H6XFklusngwv Unti/dFkPCSumi9hYftdRpVIVc9jKFa+Up1WpourDVGzvLtHPcUvdLISPkKHThbrofXvS0FoG0r012OP/Og0xlqQQF1xUGIbNNZlCPzr7xIbu4R43elVHRSA 2SQpnRK7BQ+Xz7ezeNrYJDvFi6njbpsvEi3JvYeRH51PjMRQ85F2zryJmYk1evuT3S0VKlOUlcXVHa2iQ3SnejPUo73+nPSlf55tfftC/jMcyndqKDMGrlIV KsBelaGPva8jkmVo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/06/2018 09:27 PM, Tim Harvey wrote: > v4l2-compliance test results: > - with the following kernel patches: > v4l2-subdev: clear reserved fields > . v4l2-subdev: without controls return -ENOTTY > > v4l2-compliance SHA : b2f8f9049056eb6f9e028927dacb2c715a062df8 > Media Driver Info: > Driver name : imx-media > Model : imx-media > Serial : > Bus info : > Media version : 4.15.0 > Hardware revision: 0x00000000 (0) > Driver version : 4.15.0 > Interface Info: > ID : 0x0300008f > Type : V4L Sub-Device > Entity Info: > ID : 0x00000003 (3) > Name : tda19971 2-0048 > Function : Unknown This is missing. It should be one of these: https://hverkuil.home.xs4all.nl/spec/uapi/mediactl/media-types.html#media-entity-type However, we don't have a proper function defined. I would suggest adding a new MEDIA_ENT_F_DTV_DECODER analogous to MEDIA_ENT_F_ATV_DECODER. It would be a new patch adding this + documentation. > Pad 0x01000004 : Source > Link 0x0200006f: to remote pad 0x1000063 of entity 'ipu1_csi0_mux': Data > > Compliance test for device /dev/v4l-subdev1: > > Allow for multiple opens: > test second /dev/v4l-subdev1 open: OK > test for unlimited opens: OK > > Debug ioctls: > test VIDIOC_LOG_STATUS: OK > > Input ioctls: > test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) > test VIDIOC_G/S_FREQUENCY: OK (Not Supported) > test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) > test VIDIOC_ENUMAUDIO: OK (Not Supported) > test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) > test VIDIOC_G/S_AUDIO: OK (Not Supported) > Inputs: 0 Audio Inputs: 0 Tuners: 0 > > Output ioctls: > test VIDIOC_G/S_MODULATOR: OK (Not Supported) > test VIDIOC_G/S_FREQUENCY: OK (Not Supported) > test VIDIOC_ENUMAUDOUT: OK (Not Supported) > test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) > test VIDIOC_G/S_AUDOUT: OK (Not Supported) > Outputs: 0 Audio Outputs: 0 Modulators: 0 > > Input/Output configuration ioctls: > test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) > test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK > test VIDIOC_DV_TIMINGS_CAP: OK > test VIDIOC_G/S_EDID: OK Nice! > > Sub-Device ioctls (Source Pad 0): > test Try VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK > test Try VIDIOC_SUBDEV_G/S_FMT: OK > test Try VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) > test Active VIDIOC_SUBDEV_ENUM_MBUS_CODE/FRAME_SIZE/FRAME_INTERVAL: OK > test Active VIDIOC_SUBDEV_G/S_FMT: OK > test Active VIDIOC_SUBDEV_G/S_SELECTION/CROP: OK (Not Supported) > test VIDIOC_SUBDEV_G/S_FRAME_INTERVAL: OK (Not Supported) > > Control ioctls: > test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK (Not Supported) > test VIDIOC_QUERYCTRL: OK (Not Supported) > test VIDIOC_G/S_CTRL: OK (Not Supported) > test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) > test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) > test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) > Standard Controls: 0 Private Controls: 0 Why doesn't this show anything? You have at least one control, so this should reflect that. Does 'v4l2-ctl -d /dev/v4l-subdev1 -l' show any controls? I think sd->ctrl_handler is never set to the v4l2_ctrl_handler pointer. Have you ever tested the controls? Looking closer I also notice that the control handler is never freed. Or checked for errors when it is created in the probe function. Hmm, I should have caught that earlier. Regards, Hans