public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Question on V4L2 S_STD call
@ 2011-02-23 21:09 Devin Heitmueller
  2011-02-23 21:53 ` Andy Walls
  2011-02-23 22:29 ` Mauro Carvalho Chehab
  0 siblings, 2 replies; 6+ messages in thread
From: Devin Heitmueller @ 2011-02-23 21:09 UTC (permalink / raw)
  To: Linux Media Mailing List

Hello there,

I was debugging some PAL issues with cx231xx, and noticed some
unexpected behavior with regards to selecting PAL standards.

In particular, tvtime has an option for PAL which corresponds to the
underlying value "0xff".  This basically selects *any* PAL standard.
However, the cx231xx has code for setting up the DIF which basically
says:

if (standard & V4L2_STD_MN) {
 ...
} else if ((standard == V4L2_STD_PAL_I) |
                        (standard & V4L2_STD_PAL_D) |
			(standard & V4L2_STD_SECAM)) {
 ...
} else {
  /* default PAL BG */
  ...
}

As a result, if you have a PAL-B/G signal and select "PAL" in tvtime,
the test passes for PAL_I/PAL_D/SECAM since that matches the bitmask.
The result of course is garbage video.

So here is the question:

How are we expected to interpret an application asking for "PAL" in
cases when the driver needs a more specific video standard?

I can obviously add code to tvtime in the long term to have the user
provide a more specific standard instead of "PAL", but since it is
supported in the V4L2 spec, I would like to understand what the
expected behavior should be in drivers.

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-02-23 23:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-23 21:09 Question on V4L2 S_STD call Devin Heitmueller
2011-02-23 21:53 ` Andy Walls
2011-02-23 22:07   ` Devin Heitmueller
2011-02-23 22:29 ` Mauro Carvalho Chehab
2011-02-23 22:56   ` Devin Heitmueller
2011-02-23 23:52     ` Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox