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

Commit e2be32ac authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab
Browse files

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: default avatarMichael Krufky <mkrufky@linuxtv.org>
Reviewed-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 1dde7a4f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -101,6 +101,8 @@ static void fe_release(struct tuner *t)

	if (fe_tuner_ops->release)
		fe_tuner_ops->release(&t->fe);

	t->fe.ops.analog_demod_ops = NULL;
}

static void fe_standby(struct tuner *t)
@@ -353,6 +355,8 @@ static void set_type(struct i2c_client *c, unsigned int type,
		break;
	}

	ops = t->fe.ops.analog_demod_ops;

	if (((NULL == ops) ||
	     ((NULL == ops->set_tv_freq) && (NULL == ops->set_radio_freq))) &&
	    (fe_tuner_ops->set_analog_params)) {