aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJulian Calaby <julian.calaby@gmail.com>2006-01-11 16:40:09 -0500
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-11 16:40:09 -0500
commit2d05ae6b5b77f063aa0f82cf0570f3e4b80b367c (patch)
tree16c12212c57ae7def1c4b2bfe7acd4ea189b4343 /drivers
parent30367bfda384ccb96c0fe35aaa001c7624e9fd01 (diff)
V4L/DVB (3340): Add bttv card MagicTV (rebranded MachTV)
- Add bttv card MagicTV (rebranded MachTV) Signed-off-by: Julian Calaby <julian.calaby@gmail.com> Signed-off-by: Michael Krufky <mkrufky@m1k.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/bttv-cards.c23
-rw-r--r--drivers/media/video/bttv-input.c6
-rw-r--r--drivers/media/video/bttv.h1
3 files changed, 30 insertions, 0 deletions
diff --git a/drivers/media/video/bttv-cards.c b/drivers/media/video/bttv-cards.c
index 1621ab133d23..6c92a6f5fc10 100644
--- a/drivers/media/video/bttv-cards.c
+++ b/drivers/media/video/bttv-cards.c
@@ -2836,6 +2836,29 @@ struct tvcard bttv_tvcards[] = {
2836 .tuner_addr = ADDR_UNSET, 2836 .tuner_addr = ADDR_UNSET,
2837 .radio_addr = ADDR_UNSET, 2837 .radio_addr = ADDR_UNSET,
2838 }, 2838 },
2839 [BTTV_BOARD_MACHTV_MAGICTV] = {
2840 /* Julian Calaby <julian.calaby@gmail.com>
2841 * Slightly different from original MachTV definition (0x60)
2842
2843 * FIXME: RegSpy says gpiomask should be "0x001c800f", but it
2844 * stuffs up remote chip. Bug is a pin on the jaecs is not set
2845 * properly (methinks) causing no keyup bits being set */
2846
2847 .name = "MagicTV", /* rebranded MachTV */
2848 .video_inputs = 3,
2849 .audio_inputs = 1,
2850 .tuner = 0,
2851 .svhs = 2,
2852 .gpiomask = 7,
2853 .muxsel = { 2, 3, 1, 1 },
2854 .audiomux = { 0, 1, 2, 3, 4 },
2855 .tuner_type = TUNER_TEMIC_4009FR5_PAL,
2856 .tuner_addr = ADDR_UNSET,
2857 .radio_addr = ADDR_UNSET,
2858 .pll = PLL_28,
2859 .has_radio = 1,
2860 .has_remote = 1,
2861 },
2839}; 2862};
2840 2863
2841static const unsigned int bttv_num_tvcards = ARRAY_SIZE(bttv_tvcards); 2864static const unsigned int bttv_num_tvcards = ARRAY_SIZE(bttv_tvcards);
diff --git a/drivers/media/video/bttv-input.c b/drivers/media/video/bttv-input.c
index 12197f1b2757..221b36e7f392 100644
--- a/drivers/media/video/bttv-input.c
+++ b/drivers/media/video/bttv-input.c
@@ -583,6 +583,12 @@ int bttv_input_init(struct bttv *btv)
583 btv->custom_irq = bttv_rc5_irq; 583 btv->custom_irq = bttv_rc5_irq;
584 ir->rc5_gpio = 1; 584 ir->rc5_gpio = 1;
585 break; 585 break;
586 case BTTV_BOARD_MACHTV_MAGICTV:
587 ir_codes = ir_codes_apac_viewcomp;
588 ir->mask_keycode = 0x001F00;
589 ir->mask_keyup = 0x004000;
590 ir->polling = 50; /* ms */
591 break;
586 } 592 }
587 if (NULL == ir_codes) { 593 if (NULL == ir_codes) {
588 dprintk(KERN_INFO "Ooops: IR config error [card=%d]\n",btv->c.type); 594 dprintk(KERN_INFO "Ooops: IR config error [card=%d]\n",btv->c.type);
diff --git a/drivers/media/video/bttv.h b/drivers/media/video/bttv.h
index 9feaa6bab207..e370d74f2a1b 100644
--- a/drivers/media/video/bttv.h
+++ b/drivers/media/video/bttv.h
@@ -166,6 +166,7 @@
166#define BTTV_BOARD_ASOUND_SKYEYE 0x8d 166#define BTTV_BOARD_ASOUND_SKYEYE 0x8d
167#define BTTV_BOARD_SABRENT_TVFM 0x8e 167#define BTTV_BOARD_SABRENT_TVFM 0x8e
168#define BTTV_BOARD_HAUPPAUGE_IMPACTVCB 0x8f 168#define BTTV_BOARD_HAUPPAUGE_IMPACTVCB 0x8f
169#define BTTV_BOARD_MACHTV_MAGICTV 0x90
169 170
170/* i2c address list */ 171/* i2c address list */
171#define I2C_TSA5522 0xc2 172#define I2C_TSA5522 0xc2