Commit 240ab508 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] [PATCH] don't reset the delivery system on DTV_CLEAR

As a DVBv3 application may be relying on the delivery system,
don't reset it at DTV_CLEAR. For DVBv5 applications, the
delivery system should be set anyway.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 9544e8a6
...@@ -909,7 +909,6 @@ static int dvb_frontend_clear_cache(struct dvb_frontend *fe) ...@@ -909,7 +909,6 @@ static int dvb_frontend_clear_cache(struct dvb_frontend *fe)
c->state = DTV_CLEAR; c->state = DTV_CLEAR;
c->delivery_system = fe->ops.delsys[0];
dprintk("%s() Clearing cache for delivery system %d\n", __func__, dprintk("%s() Clearing cache for delivery system %d\n", __func__,
c->delivery_system); c->delivery_system);
...@@ -2377,6 +2376,8 @@ int dvb_register_frontend(struct dvb_adapter* dvb, ...@@ -2377,6 +2376,8 @@ int dvb_register_frontend(struct dvb_adapter* dvb,
* Initialize the cache to the proper values according with the * Initialize the cache to the proper values according with the
* first supported delivery system (ops->delsys[0]) * first supported delivery system (ops->delsys[0])
*/ */
fe->dtv_property_cache.delivery_system = fe->ops.delsys[0];
dvb_frontend_clear_cache(fe); dvb_frontend_clear_cache(fe);
mutex_unlock(&frontend_mutex); mutex_unlock(&frontend_mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment