瀏覽代碼

V4L/DVB (9916): dvb-core: don't add an event when in ONE SHOT mode for algo type HW

It has been noticed that in HW tuning mode in cx24123.c that
a check is made to not alter the status var when in one shot
mode, a simpler solution is to not update here for all cards.

Cc: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Darron Broad <darron@kewl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Darron Broad 16 年之前
父節點
當前提交
2fac9a0f44
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/media/dvb/dvb-core/dvb_frontend.c

+ 1 - 1
drivers/media/dvb/dvb-core/dvb_frontend.c

@@ -580,7 +580,7 @@ restart:
 				if (fe->ops.tune)
 				if (fe->ops.tune)
 					fe->ops.tune(fe, params, fepriv->tune_mode_flags, &fepriv->delay, &s);
 					fe->ops.tune(fe, params, fepriv->tune_mode_flags, &fepriv->delay, &s);
 
 
-				if (s != fepriv->status) {
+				if (s != fepriv->status && !(fepriv->tune_mode_flags & FE_TUNE_MODE_ONESHOT)) {
 					dprintk("%s: state changed, adding current state\n", __func__);
 					dprintk("%s: state changed, adding current state\n", __func__);
 					dvb_frontend_add_event(fe, s);
 					dvb_frontend_add_event(fe, s);
 					fepriv->status = s;
 					fepriv->status = s;