diff options
author | Oliver Endriss <devnull@localhost> | 2005-06-19 17:49:31 +0000 |
---|---|---|
committer | Oliver Endriss <devnull@localhost> | 2005-06-19 17:49:31 +0000 |
commit | 250cbe7a3a1f0dbd96944b365993b8a34179f665 (patch) | |
tree | 5c46dacd93986593f30533eb605c4e30cb1b1a41 /linux/drivers/media/dvb/ttpci/av7110.c | |
parent | 21486d75bc263ec83ac03fcfe245adfe115184fe (diff) | |
download | mediapointer-dvb-s2-250cbe7a3a1f0dbd96944b365993b8a34179f665.tar.gz mediapointer-dvb-s2-250cbe7a3a1f0dbd96944b365993b8a34179f665.tar.bz2 |
av7110_fe_lock_fix() modified in a way that it can be retried after -ERESTARTSYS
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/av7110.c')
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c index 4e19cb670..957a897c9 100644 --- a/linux/drivers/media/dvb/ttpci/av7110.c +++ b/linux/drivers/media/dvb/ttpci/av7110.c @@ -2038,15 +2038,13 @@ static int av7110_fe_lock_fix(struct av7110* av7110, fe_status_t status) if (av7110->fe_synced == synced) return 0; - av7110->fe_synced = synced; - if (av7110->playing) return 0; if (down_interruptible(&av7110->pid_mutex)) return -ERESTARTSYS; - if (av7110->fe_synced) { + if (synced) { ret = SetPIDs(av7110, av7110->pids[DMX_PES_VIDEO], av7110->pids[DMX_PES_AUDIO], av7110->pids[DMX_PES_TELETEXT], 0, @@ -2062,6 +2060,9 @@ static int av7110_fe_lock_fix(struct av7110* av7110, fe_status_t status) } } + if (!ret) + av7110->fe_synced = synced; + up(&av7110->pid_mutex); return ret; } |