diff options
author | Sascha Sommer <saschasommer@freenet.de> | 2005-11-09 00:37:33 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:18 -0500 |
commit | 74458e6c1aea9e422e46030e7bc61e9b0984be5b (patch) | |
tree | a3eb63aee04b2ac457ed44e888a15762c2cc3e13 /drivers/media/video/em28xx/em28xx-core.c | |
parent | d5e5265315770bda46c50ecaa64e2b9790f2064c (diff) |
[PATCH] v4l: 786: chip id removed since it isn t required anymore
- Chip_id removed since it isn't required anymore.
Signed-off-by: Sascha Sommer <saschasommer@freenet.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/em28xx/em28xx-core.c')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-core.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/video/em28xx/em28xx-core.c b/drivers/media/video/em28xx/em28xx-core.c index f5e22154a97f..f7b8fb035c9e 100644 --- a/drivers/media/video/em28xx/em28xx-core.c +++ b/drivers/media/video/em28xx/em28xx-core.c | |||
@@ -437,6 +437,18 @@ int em2820_scaler_set(struct em2820 *dev, u16 h, u16 v) | |||
437 | buf[0] = v; | 437 | buf[0] = v; |
438 | buf[1] = v >> 8; | 438 | buf[1] = v >> 8; |
439 | em2820_write_regs(dev, VSCALELOW_REG, (char *)buf, 2); | 439 | em2820_write_regs(dev, VSCALELOW_REG, (char *)buf, 2); |
440 | if(dev->is_em2800){ | ||
441 | /* FIXME */ | ||
442 | /* random ratio scaling and 720x567 doesn't seem to work */ | ||
443 | /* the maximum we can get is 640x480 with disabled scaler */ | ||
444 | /* and norm_maxw set to 640 */ | ||
445 | if(dev->width == 640 && dev->height == 480) | ||
446 | return em2820_write_regs(dev, COMPR_REG,"\x00",1); | ||
447 | if(dev->height > 288) | ||
448 | return em2820_write_regs(dev, COMPR_REG,"\x10",1); | ||
449 | if(dev->width > 360) | ||
450 | return em2820_write_regs(dev, COMPR_REG,"\x20",1); | ||
451 | } | ||
440 | /* when H and V mixershould be used? */ | 452 | /* when H and V mixershould be used? */ |
441 | /* return em2820_write_reg_bits(dev, COMPR_REG, (h ? 0x20 : 0x00) | (v ? 0x10 : 0x00), 0x30); */ | 453 | /* return em2820_write_reg_bits(dev, COMPR_REG, (h ? 0x20 : 0x00) | (v ? 0x10 : 0x00), 0x30); */ |
442 | /* it seems that both H and V scalers must be active to work correctly */ | 454 | /* it seems that both H and V scalers must be active to work correctly */ |