Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19d7509c authored by Markus Rechberger's avatar Markus Rechberger Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (3281): Added signal detection support to tvp5150



- added signal detection support to tvp5150

Signed-off-by: default avatarMarkus Rechberger <mrechberger@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 33ccaa3f
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -967,6 +967,17 @@ static int tvp5150_command(struct i2c_client *c,
		}
	case DECODER_GET_STATUS:
		{
			int *iarg = arg;
			int status;
			int res=0;
			status = tvp5150_read(c, 0x88);
			if(status&0x08){
				res |= DECODER_STATUS_COLOR;
			}
			if(status&0x04 && status&0x02){
				res |= DECODER_STATUS_GOOD;
			}
			*iarg=res;
			break;
		}