Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp959061imm; Thu, 4 Oct 2018 06:13:14 -0700 (PDT) X-Google-Smtp-Source: ACcGV62occ9UjtFSM3TX9ZNP9joTvzCCJLf0JkqTBP98b/LzLrnY2eNk0/Jprf2VgBhHS6JOKylj X-Received: by 2002:a63:450b:: with SMTP id s11-v6mr5832245pga.301.1538658794173; Thu, 04 Oct 2018 06:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538658794; cv=none; d=google.com; s=arc-20160816; b=UDx/z29sCn15g3v95LcJyQjRTV4Y2UVn4n2lstJL2cCZFgMeQJVt+o4u0dhNbsAv4F LpN2yTm7Xq41RzWEdXDxYr520SdtN/9tsl5+1lnBNMCtLGTkaH11loRoGyMtqueB9ddW OgK0SMP5li4PLo9Vbr/e+dUpMylm0MzvUeW5Rr96t35J8vO1cmJnPQ1d2I4/0BSvo53/ bi1+QJAR9pO/8Ljx9rLtc7mjpagfKkDS3DMyAwwTZQfNntN+8XT6iyOFZF2KbBAtI+oX YFiS88O4hsj1EWggFh2VWh+wPlYm8IZaBozXVZeoOfgxW/6YYv2aQRe2yw+uZqkrsuld rH1w== 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=SRDz6aM5wqMC5Gss9voogFlm2u7hIghkCk1KVRqrdhY=; b=Vx9oJJHw3mufSXV+/Qi73XFDp7GSyRe8+mfgYkAAVEz/njBMHbcIj7YhoZXq6Jt7v5 i3r9dZpkze6+Rvvuj8h8e3WU9PcLEXTTJe3tdmAG+43S3Kp+zaoy+eThrCT75+6jSqV3 nJ1FXjtNDogOFuDgYc47yW+vj899V9vFCn3LA3sb17Mwg8Nr0M2fXXUnIURr3yVf7wUH Q1LNb4nsycyvTc4DwppE5DWGU6zjyx3EpqNH1MH1lFj4J0q5Tv9KGSdXblr/FDg7t5KP WgKJlP4y5knOg4sdRnZRO0RSg8zBLpWXkWotvpbwIDGY+VimTu3KpIodZPFzr0Ara8bZ 0VPQ== 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 t1-v6si4852065pgi.439.2018.10.04.06.12.58; Thu, 04 Oct 2018 06:13:14 -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 S1727654AbeJDUFz (ORCPT + 99 others); Thu, 4 Oct 2018 16:05:55 -0400 Received: from lb2-smtp-cloud8.xs4all.net ([194.109.24.25]:35001 "EHLO lb2-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727367AbeJDUFz (ORCPT ); Thu, 4 Oct 2018 16:05:55 -0400 Received: from [IPv6:2001:420:44c1:2579:51eb:3c7a:5e3a:802b] ([IPv6:2001:420:44c1:2579:51eb:3c7a:5e3a:802b]) by smtp-cloud8.xs4all.net with ESMTPA id 83QggDyed0ZZE83QkgkkAE; Thu, 04 Oct 2018 15:12:39 +0200 Subject: Re: [PATCH v3 2/2] media: platform: Add Aspeed Video Engine driver To: Eddie James , Eddie James , linux-kernel@vger.kernel.org Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, andrew@aj.id.au, openbmc@lists.ozlabs.org, robh+dt@kernel.org, mchehab@kernel.org, linux-media@vger.kernel.org References: <1537903629-14003-1-git-send-email-eajames@linux.ibm.com> <1537903629-14003-3-git-send-email-eajames@linux.ibm.com> From: Hans Verkuil Message-ID: <373d2ca3-a6cd-8d87-2bbc-613d65305170@xs4all.nl> Date: Thu, 4 Oct 2018 15:12:34 +0200 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: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfMLEEuRT81+I8ZGDgqnFFsBMKxVPcWnaV8tzS/VTp+swIwemdCPiC0WjNrBog9kg3eEdDBrLUxv1pt3MoyJIrhBRyjSiMBseVccTCcNu31S9xzDGFBXL FQYitKeS7zKBoCV22R8SUJZjPs5gFYDbgXD8z6J1eM/2HfpmxrXQonJIC0BT9FxP5QahGllnJ+NAt9qxovqgQ+A1N7g5wtCP+RQaDsikrTO7Ak+6sDNQkYmo 2zW3170WrrUOCF5iBaFYLErBMpdZ6xDvvZ5ndLWtR4VXkERrZTynXJFe5L1Gr9XFD3b/jB03GRxZqv8xQy0GRo3Rh7iC6EP5+yuiA6P7Izfm3eTQPAtXDe7K q845ri2gzpk2bJTM26a3cUjKXfVNeoSMMUeeSBZ13BE89a8SwSS2h1o2O2PhCcLgA7/kUHhGyjziSCtvwy2UlclCljYzIwUv4BrxIvhPm8H2nugCZfNk4v/n YQytivzqJJZxByauSrlIfPcSpNM+pZLZIunWoKchXWgw5eKQt86rO6/DFZQt7dCvEjsKJZSvegmeCPWSXXolHxAkDx/8hg5fH1H/qg5vj9VkMZW5u3+nPCRK q2BRFY9johOoIiPBKhheTMCT5oEk7Xz25smGsb2BHauy0rOnb2hlJIB42VcghzZXd70= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/03/18 22:43, Eddie James wrote: > > > On 09/28/2018 06:30 AM, Hans Verkuil wrote: >> On 09/25/2018 09:27 PM, Eddie James wrote: >>> The Video Engine (VE) embedded in the Aspeed AST2400 and AST2500 SOCs >>> can capture and compress video data from digital or analog sources. With >>> the Aspeed chip acting a service processor, the Video Engine can capture >>> the host processor graphics output. >>> >>> Add a V4L2 driver to capture video data and compress it to JPEG images. >>> Make the video frames available through the V4L2 streaming interface. >>> >>> Signed-off-by: Eddie James > >>> + } >>> + >>> + video->height = (bottom - top) + 1; >>> + video->width = (right - left) + 1; >>> + size = video->height * video->width; >> It looks like you can actually determine the blanking width/height and >> possibly even more detailed information that would be very useful to >> show with the DV_TIMINGS ioctls. > > Hmm. This information is related to the video signal captured from the > host. That information has nothing to do with the buffer that is > compressed and grabbed by the driver and ultimately provided to > userspace. Isn't the timing information meaningless for JPEG frames? It helps in debugging. Basically you are implementing a receiver for a video signal. So if for some reason you cannot support the video timings that the host sends, then it is very useful to have QUERY_DV_TIMINGS report as much information about the signal as possible. BTW, out of curiosity, how are the host video signals connected to the aspeed? Is it still a VGA video signal? Looking at product briefs it appears that it is VGA. So I guess the aspeed 'sniffs' the VGA signals from the host and can capture the video that way. Is that correct? If so, then this driver is a VGA receiver and should act like that. The host can configure its VGA transmitter to invalid timings, or weird values, and you need to be able to handle that in your driver. > Forgot to include this question in my previous reply, sorry for the > additional mail. No problem! Happy to help. Regards, Hans