Skip to content

Commit

Permalink
[media] adv7180: fix querystd() method for no input signal
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vladimir Barinov authored and Mauro Carvalho Chehab committed Apr 14, 2013
1 parent 61ff5d6 commit b294a19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/media/i2c/adv7180.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b294a19

Please sign in to comment.