diff options
author | Changbing Xiong <cb.xiong@samsung.com> | 2014-05-09 01:54:11 -0300 |
---|---|---|
committer | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2014-05-28 06:02:15 -0700 |
commit | 86006aff1416fe5f2bec63cd8d9b0fc889c2e0f7 (patch) | |
tree | 620e42795904a553909b79c5aebe60d229abb506 | |
parent | b97d3b43df84d24fcf18bf7045cd7fe86bffe415 (diff) | |
download | linux-3.10-86006aff1416fe5f2bec63cd8d9b0fc889c2e0f7.tar.gz linux-3.10-86006aff1416fe5f2bec63cd8d9b0fc889c2e0f7.tar.bz2 linux-3.10-86006aff1416fe5f2bec63cd8d9b0fc889c2e0f7.zip |
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.
Change-Id: Ie63854352383cd300eb3626e63143e6a73d519d8
Signed-off-by: Changbing Xiong <cb.xiong@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rwxr-xr-x[-rw-r--r--] | drivers/media/usb/au0828/au0828-dvb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/usb/au0828/au0828-dvb.c b/drivers/media/usb/au0828/au0828-dvb.c index 9a6f15613a3..fd8e7989084 100644..100755 --- a/drivers/media/usb/au0828/au0828-dvb.c +++ b/drivers/media/usb/au0828/au0828-dvb.c @@ -403,6 +403,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); |