media: tvp5150: add support to limit sdtv standards
authorMarco Felsch <m.felsch@pengutronix.de>
Thu, 12 Mar 2020 10:31:55 +0000 (11:31 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 12 Mar 2020 15:42:21 +0000 (16:42 +0100)
commitbaf178219478c217d8e9727a31971e32d3ff2b70
tree02eaa95582ac6c9ae201c68e6bac3361b05233c9
parentde4362899e78a02595faa82b6fe16f1e7596002d
media: tvp5150: add support to limit sdtv standards

The tvp5150 accepts NTSC(M,J,4.43), PAL (B,D,G,H,I,M,N) and SECAM video
data and is able to auto-detect the input signal. The auto-detection
does not work if the connector does not receive an input signal and the
tvp5150 might not be configured correctly. This misconfiguration leads
into wrong decoded video streams if the tvp5150 gets powered on before
the video signal is present.

Limit the supported sdtv standards according to the actual selected
connector to avoid a misconfiguration.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/tvp5150.c