diff options
author | Vladimir Barinov <vladimir.barinov@cogentembedded.com> | 2013-04-11 18:06:46 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-14 20:05:05 -0300 |
commit | b294a1921454fbcc6e983750ae977ce8a28f31bc (patch) | |
tree | 073eab89cb3dc279ce67e46a0f887cab046caa81 /drivers/media/i2c | |
parent | 61ff5d69dc39fecfe52ee5c8d4695a0ad4444d34 (diff) | |
download | op-kernel-dev-b294a1921454fbcc6e983750ae977ce8a28f31bc.zip op-kernel-dev-b294a1921454fbcc6e983750ae977ce8a28f31bc.tar.gz |
[media] adv7180: fix querystd() method for no input signal
When the input signal is not detected querystd() method should return
V4L2_STD_UNKNOWN instead of previously latched analog video standard.
Signed-off-by: Vladimir Barinov <vladimir.barinov@cogentembedded.com>
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/adv7180.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index 34f39d3..afd561a 100644 --- a/drivers/media/i2c/adv7180.c +++ b/drivers/media/i2c/adv7180.c @@ -135,6 +135,10 @@ struct adv7180_state { static v4l2_std_id adv7180_std_to_v4l2(u8 status1) { + /* in case V4L2_IN_ST_NO_SIGNAL */ + if (!(status1 & ADV7180_STATUS1_IN_LOCK)) + return V4L2_STD_UNKNOWN; + switch (status1 & ADV7180_STATUS1_AUTOD_MASK) { case ADV7180_STATUS1_AUTOD_NTSM_M_J: return V4L2_STD_NTSC; |