diff options
author | Johannes Stezenbach <devnull@localhost> | 2003-01-13 17:22:01 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2003-01-13 17:22:01 +0000 |
commit | ad7bd2281428a7ce922142891a7d40fd5b6cee57 (patch) | |
tree | 6e1718783b26c4e4736ce70b00d386e5056cd6d1 /linux/drivers/media | |
parent | c7314221f7c3eee1de6ebad0e371547d2608348e (diff) | |
download | mediapointer-dvb-s2-ad7bd2281428a7ce922142891a7d40fd5b6cee57.tar.gz mediapointer-dvb-s2-ad7bd2281428a7ce922142891a7d40fd5b6cee57.tar.bz2 |
fix unresolved symbol __ucmpdi2 in 2.4 build
(don't use 64bit ints in switch())
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c index 42fd26107..7773cd91b 100644 --- a/linux/drivers/media/dvb/ttpci/av7110.c +++ b/linux/drivers/media/dvb/ttpci/av7110.c @@ -4491,21 +4491,17 @@ static int std_callback(struct saa7146_dev* dev, struct saa7146_standard *std) { av7110_t *av7110 = (av7110_t*)dev->ext_priv; printk("std_callback\n"); - switch( std->id ) { - case V4L2_STD_PAL: { - av7110->vidmode = VIDEO_MODE_PAL; - SetMode(av7110, av7110->vidmode); - break; - } - case V4L2_STD_NTSC: { - av7110->vidmode = VIDEO_MODE_NTSC; - SetMode(av7110, av7110->vidmode); - break; - } - default: { - return -1; - } + if (std->id == V4L2_STD_PAL) { + av7110->vidmode = VIDEO_MODE_PAL; + SetMode(av7110, av7110->vidmode); + } + else if (std->id == V4L2_STD_NTSC) { + av7110->vidmode = VIDEO_MODE_NTSC; + SetMode(av7110, av7110->vidmode); } + else + return -1; + return 0; } |