All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cx231xx: Add support for Iconbit U100
@ 2011-05-17 16:46 Igor Novgorodov
  0 siblings, 0 replies; only message in thread
From: Igor Novgorodov @ 2011-05-17 16:46 UTC (permalink / raw)
  To: linux-media; +Cc: linux-kernel

From: Igor Novgorodov <igor@novg.net>

This patch adds support for the "Iconbit Analog Stick U100 FM".
Only composite & s-video inputs, no tuner support now.

Signed-off-by: Igor Novgorodov <igor@novg.net>
---

--- linux-2.6.38.6.orig/drivers/media/video/cx231xx/cx231xx-cards.c     2011-05-10 02:16:23.000000000 +0400
+++ linux-2.6.38.6/drivers/media/video/cx231xx/cx231xx-cards.c          2011-05-17 12:03:11.410810992 +0400
@@ -435,7 +435,33 @@ struct cx231xx_board cx231xx_boards[] =
                         .gpio = 0,
                 } },
         },
+
+       [CX231XX_BOARD_ICONBIT_U100] = {
+               .name = "Iconbit Analog Stick U100 FM",
+               .tuner_type = TUNER_ABSENT,
+               .decoder = CX231XX_AVDECODER,
+               .output_mode = OUT_MODE_VIP11,
+               .demod_xfer_mode = 0,
+               .ctl_pin_status_mask = 0xFFFFFFC4,
+               .agc_analog_digital_select_gpio = 0x1C,
+               .gpio_pin_status_mask = 0x4001000,
+
+               .input = {{
+                       .type = CX231XX_VMUX_COMPOSITE1,
+                       .vmux = CX231XX_VIN_2_1,
+                       .amux = CX231XX_AMUX_LINE_IN,
+                       .gpio = NULL,
+               }, {
+                       .type = CX231XX_VMUX_SVIDEO,
+                       .vmux = CX231XX_VIN_1_1 |
+                               (CX231XX_VIN_1_2 << 8) |
+                               CX25840_SVIDEO_ON,
+                       .amux = CX231XX_AMUX_LINE_IN,
+                       .gpio = NULL,
+               } },
+       },
  };
+
  const unsigned int cx231xx_bcount = ARRAY_SIZE(cx231xx_boards);

  /* table of devices that work with this driver */
@@ -464,6 +490,8 @@ struct usb_device_id cx231xx_id_table[]
          .driver_info = CX231XX_BOARD_HAUPPAUGE_USBLIVE2},
         {USB_DEVICE_VER(USB_VID_PIXELVIEW, USB_PID_PIXELVIEW_SBTVD, 0x4000, 0x4001),
          .driver_info = CX231XX_BOARD_PV_PLAYTV_USB_HYBRID},
+       {USB_DEVICE(0x1f4d, 0x0237),
+        .driver_info = CX231XX_BOARD_ICONBIT_U100},
         {},
  };

--- linux-2.6.38.6.orig/drivers/media/video/cx231xx/cx231xx.h   2011-05-10 02:16:23.000000000 +0400
+++ linux-2.6.38.6/drivers/media/video/cx231xx/cx231xx.h        2011-05-17 09:52:58.067471709 +0400
@@ -64,6 +64,7 @@
  #define CX231XX_BOARD_HAUPPAUGE_EXETER  8
  #define CX231XX_BOARD_HAUPPAUGE_USBLIVE2 9
  #define CX231XX_BOARD_PV_PLAYTV_USB_HYBRID 10
+#define CX231XX_BOARD_ICONBIT_U100 11

  /* Limits minimum and default number of buffers */
  #define CX231XX_MIN_BUF                 4



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-17 16:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-17 16:46 [PATCH] cx231xx: Add support for Iconbit U100 Igor Novgorodov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.