Skip to content

Commit

Permalink
[media] [PATCH] don't reset the delivery system on DTV_CLEAR
Browse files Browse the repository at this point in the history
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: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Jan 11, 2012
1 parent 9544e8a commit 240ab50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/dvb/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,6 @@ static int dvb_frontend_clear_cache(struct dvb_frontend *fe)

c->state = DTV_CLEAR;

c->delivery_system = fe->ops.delsys[0];
dprintk("%s() Clearing cache for delivery system %d\n", __func__,
c->delivery_system);

Expand Down Expand Up @@ -2377,6 +2376,8 @@ int dvb_register_frontend(struct dvb_adapter* dvb,
* Initialize the cache to the proper values according with the
* first supported delivery system (ops->delsys[0])
*/

fe->dtv_property_cache.delivery_system = fe->ops.delsys[0];
dvb_frontend_clear_cache(fe);

mutex_unlock(&frontend_mutex);
Expand Down

0 comments on commit 240ab50

Please sign in to comment.