mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
From: nicolas@ndufresne.ca (Nicolas Dufresne)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH v4 2/3] media: meson: add v4l2 m2m video decoder driver
Date: Fri, 09 Nov 2018 16:21:35 -0500	[thread overview]
Message-ID: <0841fd86ea9bf52057e2a4622a7b9719662cc484.camel@ndufresne.ca> (raw)
In-Reply-To: <2f88a17d-76f8-ec70-c18f-aa0d688249be@xs4all.nl>

Le jeudi 08 novembre 2018 ? 09:42 +0100, Hans Verkuil a ?crit :
> > +static int vdec_queue_setup(struct vb2_queue *q,
> > +             unsigned int *num_buffers, unsigned int *num_planes,
> > +             unsigned int sizes[], struct device *alloc_devs[])
> > +{
> > +     struct amvdec_session *sess = vb2_get_drv_priv(q);
> > +     const struct amvdec_format *fmt_out = sess->fmt_out;
> > +     u32 output_size = amvdec_get_output_size(sess);
> > +     u32 buffers_total;
> > +
> > +     if (*num_planes) {
> 
> If you are not supporting create_bufs, then you can drop this part.
> Without create_bufs you can assume that *num_planes == 0 and
> q->num_buffers == 0.
> 
> You should add a comment here mentioning that create_bufs isn't
> supported by this driver and explain why it isn't supported.
> 
> I understand it is due to gstreamer problems, but the explanation
> in your cover letter didn't say why it is a problem with this driver
> but not other drivers (apparently).

There is problems in GStreamer with this, but it was disabled because
the firmware does not really allow adding buffers at run-time. Worst,
we would often seen kernel crash when this was enabled.

No decoder before this one implements CREATE_BUFS from what I'm aware,
which explain why I never catched the GStreamer issues before.

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-amlogic/attachments/20181109/aa1c319e/attachment.sig>

  reply	other threads:[~2018-11-09 21:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-06  7:59 [PATCH v4 0/3] Add Amlogic " Maxime Jourdan
2018-11-06  7:59 ` [PATCH v4 1/3] dt-bindings: media: add Amlogic Video Decoder Bindings Maxime Jourdan
2018-11-06  7:59 ` [PATCH v4 2/3] media: meson: add v4l2 m2m video decoder driver Maxime Jourdan
2018-11-06 11:26   ` kbuild test robot
2018-11-06 12:07   ` kbuild test robot
2018-11-06 12:07   ` [PATCH] media: meson: fix semicolon.cocci warnings kbuild test robot
2018-11-06 12:07   ` kbuild test robot
2018-11-06 12:07   ` [PATCH] media: meson: fix zalloc-simple.cocci warnings kbuild test robot
2018-11-08  8:42   ` [PATCH v4 2/3] media: meson: add v4l2 m2m video decoder driver Hans Verkuil
2018-11-09 21:21     ` Nicolas Dufresne [this message]
2018-11-06  7:59 ` [PATCH v4 3/3] MAINTAINERS: Add meson video decoder Maxime Jourdan
2018-11-06 16:33 ` [PATCH v4 0/3] Add Amlogic video decoder driver Neil Armstrong

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=0841fd86ea9bf52057e2a4622a7b9719662cc484.camel@ndufresne.ca \
    --to=nicolas@ndufresne.ca \
    --cc=linus-amlogic@lists.infradead.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

all inboxes | Powered by JetHome®