From patchwork Wed Nov 11 14:37:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 323140 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp443358ils; Wed, 11 Nov 2020 06:39:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVVVhmaxNh9al9ejsKRXwJZ7HqSU8MsRqNiRAga+guCqeQbfykrxj8R8BsUSsHdc/sOz8P X-Received: by 2002:a17:906:a250:: with SMTP id bi16mr24169188ejb.265.1605105543456; Wed, 11 Nov 2020 06:39:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605105543; cv=none; d=google.com; s=arc-20160816; b=PT8OSDeqIwqRELeLeZNimLPY63C1Rxv3HjeblPsnBW5GB8p24RDAA54Y+YOZ2Zl2Do Hc7pP1hkIYrqPOvqg4of9F7vzt1jSYJ4xT1hvQlhL4oA1LQfjc5qxnAnAABTX4SKvl7k Vj4pDsiGirswLsQt/BTEkIbG2qAkrvMlbYHaIjyUddI3BAdkESMnSTGiE+a1qADohLRv rflCtXKg4sRqs8k9nrhidBa9tEfW9jtbPZJ5ws+2UPJBUGb2dUEWiv8YCRR/rCadaiQq Qh0MTLDo91A9yT8oxWSXYJ3b8faRKXMuuXSmrZaGk2L58KiLyDs7q9R102WKFpv/CX6s pzPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=DzUjnsp2X4OnTCyXgn/JbY+DNy5G4LB8TIDONuAc8II=; b=usmDBym6/wrwUbazZ5061AeTR7v2AMzag8aix2uZoj7+3h3AgCYRF7gYCYhXYgTkUd UYxFzCPvKkw+0XWZQnNi6ioSS5NRIpp9SQjqqPwJ3+ykUPO4l46G1B57wlCjRNJBA81Q sRNrJyZIGrnvAL+uLL7nDAdDTqqCCUCI4lPssLauK3I1JfE6hZ7K33fhPNhgX1AeArrL VMMXDn37qzmHn6vzZn0Q+xAm1Yym19GsPN38XBBKdYODwVuHGOYN8+YEcnbkkP2QkG7K CTXHhaK3zCUROFd+Ph8mQIU97ZHSOdPBofDwVjt0oJgrw0dULt95+3RkE300aQSYFFzT RAMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qzf64FhV; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ho36si1583425ejc.640.2020.11.11.06.39.03; Wed, 11 Nov 2020 06:39:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qzf64FhV; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1727126AbgKKOjC (ORCPT + 15 others); Wed, 11 Nov 2020 09:39:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727150AbgKKOik (ORCPT ); Wed, 11 Nov 2020 09:38:40 -0500 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03C91C061A55 for ; Wed, 11 Nov 2020 06:38:38 -0800 (PST) Received: by mail-wr1-x442.google.com with SMTP id o15so2763886wru.6 for ; Wed, 11 Nov 2020 06:38:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DzUjnsp2X4OnTCyXgn/JbY+DNy5G4LB8TIDONuAc8II=; b=Qzf64FhVyFPIfQD1gu6EoyuhzvYG1X3bVXltED54Gqv32hegCwzWHi3W3muW0j04+T jgF9K5kF2vVLRSanLBmu7r32YPYE4t+qTKbOE2uDoby4tKP1z9dD3DLPJK14KCXR4QTc eFR+8+lixZGzRPhGBRbEoXFm55q7HJat3WH2EW0cgpvQUM5ZTEWWbJPYycrVX/3rIesY k90QNUFB4yXAlAxx7o6lA8seBS45akDOwgrR3E4Khpm4kNnL/ecBUeAhHuUvzNhUjx28 QtYZy+mt6U7R+CB10xXZKxvKyabezUpyRU4G2CSa/OUYhKoobPe0APxaBd5zoFnxf/1p x6zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DzUjnsp2X4OnTCyXgn/JbY+DNy5G4LB8TIDONuAc8II=; b=djMLKAc6jusSCLzJ0ooaPfbc/XlIaN8+YR7sXLrOyowxFhK/4LWBGG663JLFJ0MLhy 8Qn9kriUqHl5187jeTBTFSx9RXv00Xv3T3YitG+D095Xi2sQVj6V1HoKVaAZhtqTGIYf ATGP5Xrac7MDsYxAOO9dCYpf2rVPvYjb/4VB3tFDzxgZRKocPn3taV+fpjnf3cMeF9Ks L+mBfTAGIpxFFXYsNlj356rDgPBvdf7JGlX93hWsYw3Nfap49X0vbq1vxN8MEmG9A5bP F1/F2xBjioGaMfoYuK3EExt8d4Z+W/6NvnLVayYGKJS30hZGLnqSTHSEEopiLA8cIzk6 cTTA== X-Gm-Message-State: AOAM530PQ8eNUWWtaElmFsqpD8MgwqHBHHn0QCuF7yNGpcolsTnrRSgn gILx228zrgsE1wDuC8Sp3f201A== X-Received: by 2002:adf:f304:: with SMTP id i4mr17619843wro.268.1605105516778; Wed, 11 Nov 2020 06:38:36 -0800 (PST) Received: from localhost.localdomain (hst-221-89.medicom.bg. [84.238.221.89]) by smtp.gmail.com with ESMTPSA id b8sm2991405wrv.57.2020.11.11.06.38.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 06:38:36 -0800 (PST) From: Stanimir Varbanov To: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vikash Garodia , Alexandre Courbot , Fritz Koenig , Stanimir Varbanov Subject: [PATCH v2 8/8] venus: helpers: Delete unused stop streaming helper Date: Wed, 11 Nov 2020 16:37:55 +0200 Message-Id: <20201111143755.24541-9-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201111143755.24541-1-stanimir.varbanov@linaro.org> References: <20201111143755.24541-1-stanimir.varbanov@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org After re-design of encoder driver this helper is not needed anymore. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/helpers.c | 43 --------------------- drivers/media/platform/qcom/venus/helpers.h | 1 - 2 files changed, 44 deletions(-) -- 2.17.1 diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c index 490c026b58a3..51c80417f361 100644 --- a/drivers/media/platform/qcom/venus/helpers.c +++ b/drivers/media/platform/qcom/venus/helpers.c @@ -1406,49 +1406,6 @@ void venus_helper_buffers_done(struct venus_inst *inst, unsigned int type, } EXPORT_SYMBOL_GPL(venus_helper_buffers_done); -void venus_helper_vb2_stop_streaming(struct vb2_queue *q) -{ - struct venus_inst *inst = vb2_get_drv_priv(q); - struct venus_core *core = inst->core; - int ret; - - mutex_lock(&inst->lock); - - if (inst->streamon_out & inst->streamon_cap) { - ret = hfi_session_stop(inst); - ret |= hfi_session_unload_res(inst); - ret |= venus_helper_unregister_bufs(inst); - ret |= venus_helper_intbufs_free(inst); - ret |= hfi_session_deinit(inst); - - if (inst->session_error || core->sys_error) - ret = -EIO; - - if (ret) - hfi_session_abort(inst); - - venus_helper_free_dpb_bufs(inst); - - venus_pm_load_scale(inst); - INIT_LIST_HEAD(&inst->registeredbufs); - } - - venus_helper_buffers_done(inst, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, - VB2_BUF_STATE_ERROR); - venus_helper_buffers_done(inst, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE, - VB2_BUF_STATE_ERROR); - - if (q->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) - inst->streamon_out = 0; - else - inst->streamon_cap = 0; - - venus_pm_release_core(inst); - - mutex_unlock(&inst->lock); -} -EXPORT_SYMBOL_GPL(venus_helper_vb2_stop_streaming); - int venus_helper_process_initial_cap_bufs(struct venus_inst *inst) { struct v4l2_m2m_ctx *m2m_ctx = inst->m2m_ctx; diff --git a/drivers/media/platform/qcom/venus/helpers.h b/drivers/media/platform/qcom/venus/helpers.h index 231af29667e7..3eae2acbcc8e 100644 --- a/drivers/media/platform/qcom/venus/helpers.h +++ b/drivers/media/platform/qcom/venus/helpers.h @@ -20,7 +20,6 @@ int venus_helper_vb2_buf_init(struct vb2_buffer *vb); int venus_helper_vb2_buf_prepare(struct vb2_buffer *vb); void venus_helper_vb2_buf_queue(struct vb2_buffer *vb); void venus_helper_process_buf(struct vb2_buffer *vb); -void venus_helper_vb2_stop_streaming(struct vb2_queue *q); int venus_helper_vb2_start_streaming(struct venus_inst *inst); void venus_helper_m2m_device_run(void *priv); void venus_helper_m2m_job_abort(void *priv);