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

Commit d9e091fe authored by Changbing Xiong's avatar Changbing Xiong Committed by Mauro Carvalho Chehab
Browse files

[media] au0828: Cancel stream-restart operation if frontend is disconnected



If the tuner is already disconnected, It is meaningless to go on doing the
stream-restart operation, It is better to cancel this operation.

Signed-off-by: default avatarChangbing Xiong <cb.xiong@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent c4018fa2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -471,6 +471,8 @@ void au0828_dvb_unregister(struct au0828_dev *dev)
	if (dvb->frontend == NULL)
		return;

	cancel_work_sync(&dev->restart_streaming);

	dvb_net_release(&dvb->net);
	dvb->demux.dmx.remove_frontend(&dvb->demux.dmx, &dvb->fe_mem);
	dvb->demux.dmx.remove_frontend(&dvb->demux.dmx, &dvb->fe_hw);