提交 e2be32ac 编写于 作者: M Michael Krufky 提交者: Mauro Carvalho Chehab

V4L/DVB (6437): tuner: clear analog_demod_ops on release

Clear analog_demod_ops on release.
Fix test for analog_demod_ops after tuner attach.
Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
Reviewed-by: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 1dde7a4f
...@@ -101,6 +101,8 @@ static void fe_release(struct tuner *t) ...@@ -101,6 +101,8 @@ static void fe_release(struct tuner *t)
if (fe_tuner_ops->release) if (fe_tuner_ops->release)
fe_tuner_ops->release(&t->fe); fe_tuner_ops->release(&t->fe);
t->fe.ops.analog_demod_ops = NULL;
} }
static void fe_standby(struct tuner *t) static void fe_standby(struct tuner *t)
...@@ -353,6 +355,8 @@ static void set_type(struct i2c_client *c, unsigned int type, ...@@ -353,6 +355,8 @@ static void set_type(struct i2c_client *c, unsigned int type,
break; break;
} }
ops = t->fe.ops.analog_demod_ops;
if (((NULL == ops) || if (((NULL == ops) ||
((NULL == ops->set_tv_freq) && (NULL == ops->set_radio_freq))) && ((NULL == ops->set_tv_freq) && (NULL == ops->set_radio_freq))) &&
(fe_tuner_ops->set_analog_params)) { (fe_tuner_ops->set_analog_params)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册