Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2631658imi; Mon, 25 Jul 2022 04:08:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s1a1RPaZ9BpvUVUok0NtdnZcV3pbDoev9rVJzMLEJLImwizPe4mY3rJNhFZq5DGYlFeq9l X-Received: by 2002:a17:907:60cf:b0:72f:267e:eb8e with SMTP id hv15-20020a17090760cf00b0072f267eeb8emr9871195ejc.544.1658747317554; Mon, 25 Jul 2022 04:08:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658747317; cv=none; d=google.com; s=arc-20160816; b=RvquTc45amHTFUuuVu3Hs6lVODtkrojf0j4f3wjVd5MEAesmO1h28wK8hMG4xYFErZ iNqQr+Arj0sW1Kvgf8I5cB4N4AnAw8QDGQW7a+NRii+fSMfRHjwbUFtOlxUlVNYjGyQW Rcu8Q9CqqE/pSl7K9mv7MW54fWgfxg65sOp96XgrAzAIlCTp79RDittgSwbbzI7KloOB J1nj3wc1gmnlwjKpHeUhhVo80lhoUVARImGaKfiTdEXeIcxapUWN7vGi/38Xspgj/21l xlGHtXAio8fsQ8d2VGKArR9uwiTnbAIX3Pvn39Wopt6AKQQJegQJZDcIgZdiEF7ZUXOT gKaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=xKXFAf4c9v+k9ArNNajG5E/xEEKSiRqeDdam13vRI9A=; b=DXM3DSlQJASQFFOHwjVyJ0m1d0BdJQnConuBBOBvm4sxWFQGdHrJfMWV5iEOtS0uyT abr+HNZwbavEr1eEDV5GwvWqiKoI6dO8UOnMYF2JzlChZ2D2+gxpvvligGIc/8z1IfaL Y0EXEQd8JnLqV6XFK9489uZcEdsCb2V01fD1HplNMsPcH3C13z5upDvFuwQtnEeH2CcL WAfKs3tZgPPUlGD9lHB44mRjzYHjYjjVNUOW54GzYuSzuMVFWX9TpYxrNxlLt/QCZtq4 DCOL7VvhZCmeDK96abLgj9lVILkfXOVZYUOWn93GKQoitVQ7KKzVt5k8lNV3lA6UgmZI CHEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i22cr8Xm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a17090658cb00b007262b99fc7esi7813330ejs.682.2022.07.25.04.08.10; Mon, 25 Jul 2022 04:08:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i22cr8Xm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234722AbiGYKo5 (ORCPT + 99 others); Mon, 25 Jul 2022 06:44:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234762AbiGYKoz (ORCPT ); Mon, 25 Jul 2022 06:44:55 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 821231837D for ; Mon, 25 Jul 2022 03:44:54 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id ay11-20020a05600c1e0b00b003a3013da120so9097488wmb.5 for ; Mon, 25 Jul 2022 03:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=xKXFAf4c9v+k9ArNNajG5E/xEEKSiRqeDdam13vRI9A=; b=i22cr8XmRvTtLJCG1NkUoabnEsvc8u1IyyUu34mglKJPEuyco5joLVNdAY++JWNZqV cW9UKDWPYJwvxz7ulbxfr3fKTjvi6xk0OCf1DNJvoMe6z5InMzRNWqTBQplZJyWYA9kO YEXUHJtydL2As3kono1KP8Rv4mFZZty86dGSGWWLrz8MTuRMgGhZqkqkQreiJzJJMBDX 2s4GqIHgYKiKELfVoDv6cDxqfU5tZSeUprABqnNZmu3GqAQpFksgitKFcdi6L+UpJbFM nGlMo3zw2JI8AqfWUtgwgGMsK1QEe9iueRllqugIVzPtMXELlAPkAbpjufuB+KqCX94l PYYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=xKXFAf4c9v+k9ArNNajG5E/xEEKSiRqeDdam13vRI9A=; b=XNL0Goiw3ItZ8mwovbQoyJpdEOInIWwTNpbCFE2fkK9gMxWKIItg/rkebK8FJgZkUX FrxE6Tb6g/iq6jfUqz/oShk4cl/4909IizI+ABMYSyrg7vBPm74cX+89x9KjWxkqRs+v s50WAcQ3OpxZwHpLITesNUODOAdGP2Fkibi0jQWx0xcxZrxywudFXBQkamyAzFYATkfH cGw2Y1cXrdkd/Gbtb5EbxOJvrSyv00mxOfAV7PFz+ljiOUpNUQK3I1Prhsq+FiQbScQj RlCGlNWrWkn86M3oZGFjgo79bl7e0fJgD8zMYgJvHV+3WOnouII3Zi5rOP9iUoJmAMtU xxtw== X-Gm-Message-State: AJIora+FZ+dSQSZkKcbd41Gb23a0tnvIg3Qdr2rg0do3bLlzb61p0Zhl l14wRA2R7ZfR3qSNw1VZslnyOg== X-Received: by 2002:a7b:cbd1:0:b0:3a3:187a:296c with SMTP id n17-20020a7bcbd1000000b003a3187a296cmr20620711wmi.123.1658745891767; Mon, 25 Jul 2022 03:44:51 -0700 (PDT) Received: from [192.168.1.6] ([195.24.90.54]) by smtp.googlemail.com with ESMTPSA id f8-20020a05600c154800b00397402ae674sm19739248wmg.11.2022.07.25.03.44.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jul 2022 03:44:51 -0700 (PDT) Message-ID: <6956a209-5ca6-cab2-b72c-df9211bbf7f0@linaro.org> Date: Mon, 25 Jul 2022 13:44:48 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 4/7] venus : Addition of EOS Event support for Encoder Content-Language: en-US To: Viswanath Boma , video.upstream.external@qti.qualcomm.com, Stanimir Varbanov , Andy Gross , Bjorn Andersson , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220712122347.6781-1-quic_vboma@quicinc.com> <20220712122347.6781-4-quic_vboma@quicinc.com> From: Stanimir Varbanov In-Reply-To: <20220712122347.6781-4-quic_vboma@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/12/22 15:23, Viswanath Boma wrote: > V4l2 encoder compliance expecting End of sream Event registration support for Encoder. Start sentence from the begging of the line. > > Change-Id: I85f7732a2ec08eba47c0d37181f739e90a7ab63a No Change-Ids > Signed-off-by: Viswanath Boma > --- > drivers/media/platform/qcom/venus/venc.c | 16 +++++++++++++++- > 1 file changed, 15 insertions(+), 1 deletion(-) With the comments addressed: Acked-by: Stanimir Varbanov > > diff --git a/drivers/media/platform/qcom/venus/venc.c b/drivers/media/platform/qcom/venus/venc.c > index b56960d7f6c89..30ddb84c24997 100644 > --- a/drivers/media/platform/qcom/venus/venc.c > +++ b/drivers/media/platform/qcom/venus/venc.c > @@ -507,6 +507,20 @@ static int venc_enum_frameintervals(struct file *file, void *fh, > return 0; > } > > +static int venc_subscribe_event(struct v4l2_fh *fh, > + const struct v4l2_event_subscription *sub) > +{ > + > + switch (sub->type) { > + case V4L2_EVENT_EOS: > + return v4l2_event_subscribe(fh, sub, 2, NULL); > + case V4L2_EVENT_CTRL: > + return v4l2_ctrl_subscribe_event(fh, sub); > + default: > + return -EINVAL; > + } > +} > + > static int > venc_encoder_cmd(struct file *file, void *fh, struct v4l2_encoder_cmd *cmd) > { > @@ -572,7 +586,7 @@ static const struct v4l2_ioctl_ops venc_ioctl_ops = { > .vidioc_g_parm = venc_g_parm, > .vidioc_enum_framesizes = venc_enum_framesizes, > .vidioc_enum_frameintervals = venc_enum_frameintervals, > - .vidioc_subscribe_event = v4l2_ctrl_subscribe_event, > + .vidioc_subscribe_event = venc_subscribe_event, > .vidioc_unsubscribe_event = v4l2_event_unsubscribe, > .vidioc_encoder_cmd = venc_encoder_cmd, > }; -- regards, Stan