linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stanimir Varbanov <stanimir.varbanov@linaro.org>
To: Hans Verkuil <hverkuil@xs4all.nl>,
	Stanimir Varbanov <stanimir.varbanov@linaro.org>,
	Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Andy Gross <andy.gross@linaro.org>,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	Stephen Boyd <sboyd@codeaurora.org>,
	Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v4 1/9] media: v4l2-mem2mem: extend m2m APIs for more accurate buffer management
Date: Mon, 5 Dec 2016 14:26:36 +0200	[thread overview]
Message-ID: <97244804-a2f7-ebe4-123b-a13eeeac4136@linaro.org> (raw)
In-Reply-To: <464b3cd6-f5b4-ed26-717d-929d6957c015@xs4all.nl>

Hi Hans,

On 12/05/2016 01:25 PM, Hans Verkuil wrote:
> On 12/01/2016 10:03 AM, Stanimir Varbanov wrote:
>> this add functions for:
>>   - remove buffers from src/dst queue by index
>>   - remove exact buffer from src/dst queue
>>
>> also extends m2m API to iterate over a list of src/dst buffers
>> in safely and non-safely manner.
>>
>> Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
>> ---
>>  drivers/media/v4l2-core/v4l2-mem2mem.c | 37 +++++++++++++++
>>  include/media/v4l2-mem2mem.h           | 83 ++++++++++++++++++++++++++++++++++
>>  2 files changed, 120 insertions(+)
>>
>> diff --git a/drivers/media/v4l2-core/v4l2-mem2mem.c b/drivers/media/v4l2-core/v4l2-mem2mem.c
>> index 6bc27e7b2a33..d689e7bb964f 100644
>> --- a/drivers/media/v4l2-core/v4l2-mem2mem.c
>> +++ b/drivers/media/v4l2-core/v4l2-mem2mem.c
>> @@ -126,6 +126,43 @@ void *v4l2_m2m_buf_remove(struct v4l2_m2m_queue_ctx *q_ctx)
>>  }
>>  EXPORT_SYMBOL_GPL(v4l2_m2m_buf_remove);
>>  
>> +void v4l2_m2m_buf_remove_exact(struct v4l2_m2m_queue_ctx *q_ctx,
>> +			       struct vb2_v4l2_buffer *vbuf)
> 
> I'd call this v4l2_m2m_buf_remove_by_buf to be consistent with _by_idx.

Thanks, I will rename it.

-- 
regards,
Stan

  reply	other threads:[~2016-12-05 12:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-01  9:03 [PATCH v4 0/9] Qualcomm video decoder/encoder driver Stanimir Varbanov
2016-12-01  9:03 ` [PATCH v4 1/9] media: v4l2-mem2mem: extend m2m APIs for more accurate buffer management Stanimir Varbanov
2016-12-03  0:56   ` kbuild test robot
2016-12-05 11:25   ` Hans Verkuil
2016-12-05 12:26     ` Stanimir Varbanov [this message]
2016-12-01  9:03 ` [PATCH v4 2/9] doc: DT: venus: binding document for Qualcomm video driver Stanimir Varbanov
2016-12-06  0:22   ` Rob Herring
2016-12-01  9:03 ` [PATCH v4 3/9] MAINTAINERS: Add Qualcomm Venus video accelerator driver Stanimir Varbanov
2016-12-01  9:03 ` [PATCH v4 4/9] media: venus: adding core part and helper functions Stanimir Varbanov
2016-12-01  9:03 ` [PATCH v4 5/9] media: venus: vdec: add video decoder files Stanimir Varbanov
2016-12-05 11:32   ` Hans Verkuil
2016-12-05 12:25     ` Stanimir Varbanov
2016-12-01  9:03 ` [PATCH v4 6/9] media: venus: venc: add video encoder files Stanimir Varbanov
2016-12-01  9:03 ` [PATCH v4 7/9] media: venus: hfi: add Host Firmware Interface (HFI) Stanimir Varbanov
2016-12-01  9:03 ` [PATCH v4 8/9] media: venus: hfi: add Venus HFI files Stanimir Varbanov
2016-12-05 12:05   ` Hans Verkuil
2016-12-05 12:20     ` Stanimir Varbanov
2017-01-09 13:04       ` Hans Verkuil
2017-01-10 12:07         ` Stanimir Varbanov
2016-12-01  9:03 ` [PATCH v4 9/9] media: venus: enable building of Venus video driver Stanimir Varbanov
2016-12-03  0:07   ` kbuild test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=97244804-a2f7-ebe4-123b-a13eeeac4136@linaro.org \
    --to=stanimir.varbanov@linaro.org \
    --cc=andy.gross@linaro.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=sboyd@codeaurora.org \
    --cc=srinivas.kandagatla@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).