summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2003-07-08 11:21:37 +0000
committerJohannes Stezenbach <devnull@localhost>2003-07-08 11:21:37 +0000
commit75a7b7e768dbb2c5be1951c2642d4ebb5687d5fd (patch)
tree1c7ac784ae651814eb29a525101ea4e475db2d02 /linux/drivers/media/dvb/frontends
parente841743cf89630b111efa5feccde7ded4d96c5f7 (diff)
downloadmediapointer-dvb-s2-75a7b7e768dbb2c5be1951c2642d4ebb5687d5fd.tar.gz
mediapointer-dvb-s2-75a7b7e768dbb2c5be1951c2642d4ebb5687d5fd.tar.bz2
Read SP8870 status reg to clear pending irqs in FE_SET_FRONTEND,
as suggested by Ragnar Sundblad to avoid frontend hang-ups.
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r--linux/drivers/media/dvb/frontends/alps_tdlb7.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/alps_tdlb7.c b/linux/drivers/media/dvb/frontends/alps_tdlb7.c
index d366f5609..60e2b8887 100644
--- a/linux/drivers/media/dvb/frontends/alps_tdlb7.c
+++ b/linux/drivers/media/dvb/frontends/alps_tdlb7.c
@@ -349,6 +349,9 @@ static int tdlb7_ioctl (struct dvb_frontend *fe, unsigned int cmd, void *arg)
sp5659_set_tv_freq (i2c, p->frequency);
+ // read status reg in order to clear pending irqs
+ sp8870_readreg(i2c, 0x200);
+
// sample rate correction bit [23..17]
sp8870_writereg(i2c,0x0319,0x000A);