diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-04-01 21:06:55 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2006-04-01 21:06:55 +0200 |
commit | 1d6852ba00b82d0342468dc905f33226d7e9860b (patch) | |
tree | ce618c966ab7ba29e8554db44307ced1d7089d53 /linux/drivers/media/video/msp3400-kthreads.c | |
parent | 75ba9961e3fc167c48412d75bc01d55fab89cac0 (diff) | |
download | mediapointer-dvb-s2-1d6852ba00b82d0342468dc905f33226d7e9860b.tar.gz mediapointer-dvb-s2-1d6852ba00b82d0342468dc905f33226d7e9860b.tar.bz2 |
Add back the msp_sleep that waits for the tuner to settle down
From: Hans Verkuil <hverkuil@xs4all.nl>
I removed a msp_sleep call that is really needed, otherwise the second
carrier is not detected correctly.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/msp3400-kthreads.c')
-rw-r--r-- | linux/drivers/media/video/msp3400-kthreads.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/video/msp3400-kthreads.c b/linux/drivers/media/video/msp3400-kthreads.c index 714047178..aaaa26219 100644 --- a/linux/drivers/media/video/msp3400-kthreads.c +++ b/linux/drivers/media/video/msp3400-kthreads.c @@ -508,6 +508,10 @@ int msp3400c_thread(void *data) state->watch_stereo = 0; state->nicam_on = 0; + /* wait for tuner to settle down after a channel change */ + if (msp_sleep(state, 200)) + goto restart; + /* carrier detect pass #1 -- main carrier */ cd = msp3400c_carrier_detect_main; count = ARRAY_SIZE(msp3400c_carrier_detect_main); @@ -699,6 +703,10 @@ int msp3410d_thread(void *data) state->watch_stereo = 0; state->nicam_on = 0; + /* wait for tuner to settle down after a channel change */ + if (msp_sleep(state, 200)) + goto restart; + if (msp_debug) v4l_dbg(2, msp_debug, client, "setting standard: %s (0x%04x)\n", msp_standard_std_name(std), std); |