Commit b4622c14 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

V4L/DVB (13848): smsdvb: Add the proper status for IsRfLocked



Now, if RF is locked but demod is not locked, it will report:
>>> tuning status == 0x03

This happens, for example, if the device is on DVB-T, and the video
standard is ISDB-T.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 25f9461a
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -380,9 +380,9 @@ static int smsdvb_onresponse(void *context, struct smscore_buffer_t *cb)
						DVB3_EVENT_UNC_ERR);

		} else {
			/*client->fe_status =
				(phdr->msgType == MSG_SMS_NO_SIGNAL_IND) ?
				0 : FE_HAS_SIGNAL;*/
			if (client->sms_stat_dvb.ReceptionData.IsRfLocked)
				client->fe_status = FE_HAS_SIGNAL | FE_HAS_CARRIER;
			else
				client->fe_status = 0;
			sms_board_dvb3_event(client, DVB3_EVENT_FE_UNLOCK);
		}