]> git.baikalelectronics.ru Git - kernel.git/commit
media: usbtv: Enforce standard for color decoding
authorHugo Grostabussiat <bonstra@bonstra.fr.eu.org>
Sun, 8 Apr 2018 21:12:00 +0000 (17:12 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 10:52:19 +0000 (06:52 -0400)
commitb3d6f207ad4792f55844696ba6ea45095c1e4296
treeb58d00e5222a042a4e36406e47d40563fda7c7b1
parentf84e08b508226d816850c0c4a6ef04e3f28ff6f0
media: usbtv: Enforce standard for color decoding

Depending on the chosen standard, configure the decoder to use the
appropriate color encoding standard (PAL-like, NTSC-like or SECAM).

Until now, the decoder was not configured for a specific color standard,
making it autodetect the color encoding.

While this may sound fine, it potentially causes the wrong image tuning
parameters to be applied (e.g. tuning parameters for NTSC are applied to
a PAL source), and may confuse users about what the actual standard is
in use.

This commit explicitly configures the color standard the decoder will
use, making it visually obvious if a wrong standard was chosen.

Signed-off-by: Hugo Grostabussiat <bonstra@bonstra.fr.eu.org>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/usbtv/usbtv-video.c