public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Hans de Goede <hdegoede@redhat.com>,
	Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: partial revert of "uvcvideo: set error_idx properly"
Date: Sun, 27 Jan 2013 11:57:34 -0200	[thread overview]
Message-ID: <20130127115734.06b02554@redhat.com> (raw)
In-Reply-To: <201301251442.59974.hverkuil@xs4all.nl>

Em Fri, 25 Jan 2013 14:42:59 +0100
Hans Verkuil <hverkuil@xs4all.nl> escreveu:

> On Fri January 25 2013 14:40:45 Hans de Goede wrote:
> > Hi,
> > 
> > On 01/25/2013 11:40 AM, Hans Verkuil wrote:
> > 
> > <snip>
> > 
> > >> What I did notice is that pwc_vidioc_try_fmt returns EINVAL when
> > >> an unsupported pixelformat is requested. IIRC we agreed that the
> > >> correct behavior in this case is to instead just change the
> > >> pixelformat to a default format, so I'll write a patch fixing
> > >> this.
> > >
> > > There are issues with that idea in the case of TV capture cards, since
> > > some important apps (tvtime and mythtv to a lesser extent) assume -EINVAL
> > > in the case of unsupported pixelformats.
> > 
> > Oh, I thought we agreed on never returning EINVAL accept for on invalid
> > buffer types in Barcelona ?
> 
> We did, but then it was discovered that apps like tvtime *rely* on such an
> error code.

Yes. Basically, tvtime and MythTV rely on receiving an error when the format
is not supported (I think they accept if the driver changes resolution and
interleaving mode, though). Xawtv (and likely the other apps that use its
code as a reference) will accept if the driver would change the video format
to one that it is actually supported.

> 
> All TV capture drivers that do stream I/O return EINVAL for unsupported
> formats today. There are exceptions (cx18/ivtv/pvrusb2 (?)), but those
> have a read() API only.
> 
> Very annoying...
> 
> Regards,
> 
> 	Hans


-- 

Cheers,
Mauro

  reply	other threads:[~2013-01-27 13:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAKbGBLiOuyUUHd+eEm+z=THEu57b2LSDFtoN9frXASZ5BG7Huw@mail.gmail.com>
     [not found] ` <CA+55aFxhXE8KbnjL7Nn3y0jd_wUFsdH6ZvsQ5EL+4cV3k3S4cg@mail.gmail.com>
     [not found]   ` <20121224213948.36514eca@redhat.com>
     [not found]     ` <20121225025648.5208189a@redhat.com>
2013-01-25  9:51       ` partial revert of "uvcvideo: set error_idx properly" Hans de Goede
2013-01-25 10:40         ` Hans Verkuil
2013-01-25 13:40           ` Hans de Goede
2013-01-25 13:42             ` Hans Verkuil
2013-01-27 13:57               ` Mauro Carvalho Chehab [this message]
2013-01-27 14:06           ` Mauro Carvalho Chehab
2013-01-28 10:04             ` Hans de Goede

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=20130127115734.06b02554@redhat.com \
    --to=mchehab@redhat.com \
    --cc=hdegoede@redhat.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.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