]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
V4L/DVB (13848): smsdvb: Add the proper status for IsRfLocked
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 25 Dec 2009 21:04:17 +0000 (18:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:26 +0000 (15:10 -0300)
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: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/siano/smsdvb.c

index 4784c8f212249fe86018535b6b2fef72921b19ae..5f3939821ca3eef3c786678cc91b9ef5ca326382 100644 (file)
@@ -380,10 +380,10 @@ 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;*/
-                       client->fe_status = 0;
+                       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);
                }
        }