aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-04-22 13:46:02 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:51 -0400
commit50407f99a1fd7fcca74e53b1852dc70deb5114db (patch)
tree9c2c884af57b27e9545f56dcdfc9ad6ca462623a /drivers/media/video/cx88
parenta920e42f61bdfe9974f3e2f3715d3a6d319eeaba (diff)
V4L/DVB (7375): cx88/saa7134: fix magic number for xc3028 reusage detection
tuner-xc2028 needs to know when a DVB module is sharing the same analog tuner. This is done by comparing a magic number that needs to be the same on analog and on digital. To make easier, this magic number is a pointer to some data struct. With the previous code, two different pointers were using, causing a miss-detection. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/cx88')
-rw-r--r--drivers/media/video/cx88/cx88-dvb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c
index d72b817bf886..37ebfcc6be55 100644
--- a/drivers/media/video/cx88/cx88-dvb.c
+++ b/drivers/media/video/cx88/cx88-dvb.c
@@ -458,7 +458,7 @@ static int attach_xc3028(u8 addr, struct cx8802_dev *dev)
458 struct xc2028_config cfg = { 458 struct xc2028_config cfg = {
459 .i2c_adap = &dev->core->i2c_adap, 459 .i2c_adap = &dev->core->i2c_adap,
460 .i2c_addr = addr, 460 .i2c_addr = addr,
461 .video_dev = dev->core, 461 .video_dev = dev->core->i2c_adap.algo_data,
462 }; 462 };
463 463
464 if (!dev->dvb.frontend) { 464 if (!dev->dvb.frontend) {