summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorIgor M. Liplianin <liplianin@me.by>2008-11-09 16:35:13 +0200
committerIgor M. Liplianin <liplianin@me.by>2008-11-09 16:35:13 +0200
commitb7deb66fda3accee36c079e200d1773c5e0fcc67 (patch)
treeeb0b6324eaacaa120a4e3443cf65a1420c6c854a /linux
parenta4d14c1b200f333fb3b27517bd31d7f31445dbf8 (diff)
downloadmediapointer-dvb-s2-b7deb66fda3accee36c079e200d1773c5e0fcc67.tar.gz
mediapointer-dvb-s2-b7deb66fda3accee36c079e200d1773c5e0fcc67.tar.bz2
Bug fix: For legacy applications stv0899 performs search only first time after insmod.
From: Igor M. Liplianin <liplianin@me.by> For legacy applications stv0899 performs search only first time after insmod due to not set DVBFE_ALGO_SEARCH_AGAIN bit Signed-off-by: Igor M. Liplianin <liplianin@me.by> Signed-off-by: Manu Abraham <manu@linuxtv.org>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_frontend.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
index 01a9ceb37..60a9c80a1 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -1396,9 +1396,6 @@ static int dtv_property_process_set(struct dvb_frontend *fe,
dprintk("%s() Finalised property cache\n", __func__);
dtv_property_cache_submit(fe);
- /* Request the search algorithm to search */
- fepriv->algo_status |= DVBFE_ALGO_SEARCH_AGAIN;
-
r |= dvb_frontend_ioctl_legacy(inode, file, FE_SET_FRONTEND,
&fepriv->parameters);
break;
@@ -1832,6 +1829,10 @@ static int dvb_frontend_ioctl_legacy(struct inode *inode, struct file *file,
fepriv->min_delay = (dvb_override_tune_delay * HZ) / 1000;
fepriv->state = FESTATE_RETUNE;
+
+ /* Request the search algorithm to search */
+ fepriv->algo_status |= DVBFE_ALGO_SEARCH_AGAIN;
+
dvb_frontend_wakeup(fe);
dvb_frontend_add_event(fe, 0);
fepriv->status = 0;