Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3222408rdh; Mon, 27 Nov 2023 08:56:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6EHeoNy8LkPk25awy2VZtpPeef5ZM3tbe8pe5M0zZFY4CKuWJyEeb31cr/zmJjsMQdxhf X-Received: by 2002:a05:6808:1706:b0:3b2:eade:5e81 with SMTP id bc6-20020a056808170600b003b2eade5e81mr15005812oib.34.1701104214265; Mon, 27 Nov 2023 08:56:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701104214; cv=none; d=google.com; s=arc-20160816; b=Jb+sXeKcPLXC461E0vrXbRrWChvgoVZeZxAgH/wi0Lox6R22p46f+w+0JRMS1rfc/J fdAQy+2QJlZ73mlezBjmZV7VveIW/d39BzOv2MuKsbBuse6oA88yBk7RrtAO+Pqq3+fZ YF69q9Ip38dK41j43vNNLsOddSj8tkwVuuLP3rJdgfIWjg6wjWM3PVE+0m7MpUcU40M1 BvlrUoXeW/C/JaUZSMA7ICD65nogu75VtLcZGadktEdmadfRSE4kofqCjVHBHPgqPAcu L9I1KbuTxv2xR3omxymXjmuvSqqjnqRpMGu8cB3WJuDpkgW5AXHakccFyO9xPW8Ih/DV 214w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iJxn6Q8+z+ay9hkTDlzR2SYep383opqOW5xdD/yFaM4=; fh=nikTID0PJ6NwkGNufN11Ag6f/xC6mcRAltiCDIW3jKo=; b=J5vgQ0OSGfnKZ9afMfrjDS6O6t1tBNiSlbA5t4WpTDnXuT/u+8rYxIsNZNLOuARjsa TKryZNDOE0wj3lT/Vni0wTmOssg39VlSvhPA/qjmKlkOG0Jev4D3u0oZGq5+1jSdWM29 1pe0vK88dRXidDf8Y5WYvbtopShvtc6wALHt9BWzpUDluls6If3LcW1j7t7TMEdga65U xOC9Oy7OdXf09F++rvg+DrhCLUzSNAVasSls1mU4qpXCqxV6biSWbqaVFNNrHHAzLaJd EeLKhIQmu7wuPG8NbJMR3BFkmmF+IIKlekp5L8c4u5o2ZIPz7Yip+BHgoekbqPaBMlmf mhXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VwQOmNRl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id e20-20020a656494000000b005b96662f77asi9809543pgv.482.2023.11.27.08.56.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 08:56:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VwQOmNRl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id BDEB480620BA; Mon, 27 Nov 2023 08:56:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234738AbjK0Q41 (ORCPT + 99 others); Mon, 27 Nov 2023 11:56:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234489AbjK0Qzu (ORCPT ); Mon, 27 Nov 2023 11:55:50 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14E951BCF; Mon, 27 Nov 2023 08:55:24 -0800 (PST) Received: from benjamin-XPS-13-9310.. (ec2-34-240-57-77.eu-west-1.compute.amazonaws.com [34.240.57.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by madras.collabora.co.uk (Postfix) with ESMTPSA id 4C8D666073A4; Mon, 27 Nov 2023 16:55:22 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1701104122; bh=GzHBqgRhyPfMPwV2bftblzOdfFiQq/5ns8Cr3Xl9iGs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VwQOmNRlKbCStX02pa30QUDD67AudKdZI1SlNcUxNJACh3pt3K0319v5P/3pqBJ+/ rOCaSGAvVwD1fDvqioLcIjTLJkZzAHKeVHXXJyBQQ+acixMmcN2zWoKhK3ze/3YaaT ctl4B2rNH1jl1ZopwYPGmVbMGwhwZaWRwO7ywUPYTCm5+rmIek9NI7ghu3msn+HGIf hubiyhwkLYrFJ6hq7gZg2fxIjJ04DvQQvKVdbPfHdjVV7/zXBpGIxen5JDtlnvC9dt /r36BuglfcX64lvC9WyeGYXHvcM6LG77JbN1NiM0EvlKQKCyMP0MnsbTA6jjVX5Ciz 1NtkKacnCdDnA== From: Benjamin Gaignard To: hverkuil@xs4all.nl, mchehab@kernel.org, tfiga@chromium.org, m.szyprowski@samsung.com, matt.ranostay@konsulko.com Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, kernel@collabora.com, Benjamin Gaignard Subject: [PATCH 22/55] media: dvb-core: Stop abusing of min_buffers_needed field Date: Mon, 27 Nov 2023 17:54:21 +0100 Message-Id: <20231127165454.166373-23-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231127165454.166373-1-benjamin.gaignard@collabora.com> References: <20231127165454.166373-1-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 27 Nov 2023 08:56:48 -0800 (PST) 'min_buffers_needed' is suppose to be used to indicate the number of buffers needed by DMA engine to start streaming. dvb_vb2 doesn't use DMA engine and just want to specify the minimum number of buffers to allocate when calling VIDIOC_REQBUFS. That 'min_reqbufs_allocation' field purpose so use it. Signed-off-by: Benjamin Gaignard --- drivers/media/dvb-core/dvb_vb2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-core/dvb_vb2.c b/drivers/media/dvb-core/dvb_vb2.c index 167ff82a6fed..e6253cc41ae3 100644 --- a/drivers/media/dvb-core/dvb_vb2.c +++ b/drivers/media/dvb-core/dvb_vb2.c @@ -171,7 +171,7 @@ int dvb_vb2_init(struct dvb_vb2_ctx *ctx, const char *name, int nonblocking) q->io_modes = VB2_MMAP; q->drv_priv = ctx; q->buf_struct_size = sizeof(struct dvb_buffer); - q->min_buffers_needed = 1; + q->min_reqbufs_allocation = 1; q->ops = &dvb_vb2_qops; q->mem_ops = &vb2_vmalloc_memops; q->buf_ops = &dvb_vb2_buf_ops; -- 2.39.2