diff options
author | Markus Rechberger <mrechberger@gmail.com> | 2005-11-09 00:38:05 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:23 -0500 |
commit | 30556b23f31973ca311341277c4e4b128c0528bb (patch) | |
tree | fcfdd616a70d5cb443a0121cf49b0ddd800f0256 /drivers/media/video/em28xx | |
parent | 08eca13dc407c389f04ce295144bb3fcd996a10d (diff) |
[PATCH] v4l: 840: fixed settings for msi vox usb 2.0 saa7114 is missing atm
- Fixed settings for MSI Vox USB 2.0 (saa7114 is missing atm)
Signed-off-by: Markus Rechberger <mrechberger@gmail.com>
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')
-rw-r--r-- | drivers/media/video/em28xx/em28xx-cards.c | 2 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx-i2c.c | 3 | ||||
-rw-r--r-- | drivers/media/video/em28xx/em28xx.h | 14 |
3 files changed, 16 insertions, 3 deletions
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c index 27db6d956c3f..4ab30476807d 100644 --- a/drivers/media/video/em28xx/em28xx-cards.c +++ b/drivers/media/video/em28xx/em28xx-cards.c | |||
@@ -146,7 +146,7 @@ struct em2820_board em2820_boards[] = { | |||
146 | .decoder = EM2820_SAA7114, | 146 | .decoder = EM2820_SAA7114, |
147 | .input = {{ | 147 | .input = {{ |
148 | .type = EM2820_VMUX_TELEVISION, | 148 | .type = EM2820_VMUX_TELEVISION, |
149 | .vmux = 2, | 149 | .vmux = 4, |
150 | .amux = 0, | 150 | .amux = 0, |
151 | },{ | 151 | },{ |
152 | .type = EM2820_VMUX_COMPOSITE1, | 152 | .type = EM2820_VMUX_COMPOSITE1, |
diff --git a/drivers/media/video/em28xx/em28xx-i2c.c b/drivers/media/video/em28xx/em28xx-i2c.c index bfe0d8795b6d..20728882e333 100644 --- a/drivers/media/video/em28xx/em28xx-i2c.c +++ b/drivers/media/video/em28xx/em28xx-i2c.c | |||
@@ -437,6 +437,9 @@ static int attach_inform(struct i2c_client *client) | |||
437 | case 0x86: | 437 | case 0x86: |
438 | em2820_i2c_call_clients(dev, TDA9887_SET_CONFIG, &dev->tda9887_conf); | 438 | em2820_i2c_call_clients(dev, TDA9887_SET_CONFIG, &dev->tda9887_conf); |
439 | break; | 439 | break; |
440 | case 0x42: | ||
441 | dprintk1(1,"attach_inform: saa7114 detected.\n"); | ||
442 | break; | ||
440 | case 0x4a: | 443 | case 0x4a: |
441 | dprintk1(1,"attach_inform: saa7113 detected.\n"); | 444 | dprintk1(1,"attach_inform: saa7113 detected.\n"); |
442 | break; | 445 | break; |
diff --git a/drivers/media/video/em28xx/em28xx.h b/drivers/media/video/em28xx/em28xx.h index 5ff308261a7e..15760d3d753d 100644 --- a/drivers/media/video/em28xx/em28xx.h +++ b/drivers/media/video/em28xx/em28xx.h | |||
@@ -493,10 +493,20 @@ inline static int em2820_gamma_set(struct em2820 *dev, s32 val) | |||
493 | } | 493 | } |
494 | 494 | ||
495 | /*FIXME: maxw should be dependent of alt mode */ | 495 | /*FIXME: maxw should be dependent of alt mode */ |
496 | #define norm_maxw(dev) 720 | 496 | inline static unsigned int norm_maxw(struct em2820 *dev) |
497 | { | ||
498 | switch(dev->model){ | ||
499 | case (EM2820_BOARD_MSI_VOX_USB_2): return(640); | ||
500 | default: return(720); | ||
501 | } | ||
502 | } | ||
503 | |||
497 | inline static unsigned int norm_maxh(struct em2820 *dev) | 504 | inline static unsigned int norm_maxh(struct em2820 *dev) |
498 | { | 505 | { |
499 | return (dev->tvnorm->id & V4L2_STD_625_50) ? 576 : 480; | 506 | switch(dev->model){ |
507 | case (EM2820_BOARD_MSI_VOX_USB_2): return(480); | ||
508 | default: return (dev->tvnorm->id & V4L2_STD_625_50) ? 576 : 480; | ||
509 | } | ||
500 | } | 510 | } |
501 | 511 | ||
502 | #endif | 512 | #endif |