From: "Alfredo Jesús Delaiti" <alfredodelaiti@netscape.net>
To: linux-media@vger.kernel.org
Subject: [PATCH] Mygica X8507
Date: Wed, 09 Nov 2011 16:13:00 -0300 [thread overview]
Message-ID: <4EBAD0BC.8030600@netscape.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 571 bytes --]
Hi
This patch supports card Mygica X8507 (analog part)
This controller is a copy of driver card Mygica X8506
This patch depends on patch cx23885-alsa
<http://git.linuxtv.org/liplianin/media_tree.git/shortlog/refs/heads/cx23885-alsa-clean-2>
To do: FM, ISDB-t, remote control, audio for composite1, S-Video and
componet
kernel version 3.1.0-3; OpenSuSE 11.4 64bit
Signed-off-by: Alfredo J. Delaiti <alfredodelaiti@netscape.net>
My apologies if I have once again committed an error sending the patch
Thanks,
Alfredo
--
Dona tu voz
http://www.voxforge.org/es
[-- Attachment #2: cx23885-X8507.diff --]
[-- Type: text/x-patch, Size: 2748 bytes --]
diff -up1rN /usr/src/linux-media/drivers/media/video/cx23885/cx23885-cards.c /usr/src/linux/drivers/media/video/cx23885/cx23885-cards.c
--- /usr/src/linux-media/drivers/media/video/cx23885/cx23885-cards.c 2011-10-12 20:19:03.000000000 -0300
+++ /usr/src/linux/drivers/media/video/cx23885/cx23885-cards.c 2011-11-09 11:34:34.810810514 -0300
@@ -440,2 +440,32 @@ struct cx23885_board cx23885_boards[] =
},
+ [CX23885_BOARD_MYGICA_X8507] = {
+ .name = "Mygica X8507",
+ .tuner_type = TUNER_XC5000,
+ .tuner_addr = 0x61,
+ .tuner_bus = 1,
+ .porta = CX23885_ANALOG_VIDEO,
+ .input = {
+ {
+ .type = CX23885_VMUX_TELEVISION,
+ .vmux = CX25840_COMPOSITE2,
+ .amux = CX25840_AUDIO8,
+ },
+ {
+ .type = CX23885_VMUX_COMPOSITE1,
+ .vmux = CX25840_COMPOSITE8,
+ },
+ {
+ .type = CX23885_VMUX_SVIDEO,
+ .vmux = CX25840_SVIDEO_LUMA3 |
+ CX25840_SVIDEO_CHROMA4,
+ },
+ {
+ .type = CX23885_VMUX_COMPONENT,
+ .vmux = CX25840_COMPONENT_ON |
+ CX25840_VIN1_CH1 |
+ CX25840_VIN6_CH2 |
+ CX25840_VIN7_CH3,
+ },
+ },
+ }
};
@@ -639,2 +669,6 @@ struct cx23885_subid cx23885_subids[] =
.card = CX23885_BOARD_NETUP_DUAL_DVB_T_C_CI_RF,
+ }, {
+ .subvendor = 0x14f1,
+ .subdevice = 0x8502,
+ .card = CX23885_BOARD_MYGICA_X8507,
},
@@ -1070,2 +1104,3 @@ void cx23885_gpio_setup(struct cx23885_d
case CX23885_BOARD_MAGICPRO_PROHDTVE2:
+ case CX23885_BOARD_MYGICA_X8507:
/* GPIO-0 (0)Analog / (1)Digital TV */
@@ -1470,2 +1505,3 @@ void cx23885_card_setup(struct cx23885_d
case CX23885_BOARD_MPX885:
+ case CX23885_BOARD_MYGICA_X8507:
dev->sd_cx25840 = v4l2_i2c_new_subdev(&dev->v4l2_dev,
diff -up1rN /usr/src/linux-media/drivers/media/video/cx23885/cx23885.h /usr/src/linux/drivers/media/video/cx23885/cx23885.h
--- /usr/src/linux-media/drivers/media/video/cx23885/cx23885.h 2011-10-12 20:20:38.000000000 -0300
+++ /usr/src/linux/drivers/media/video/cx23885/cx23885.h 2011-11-09 11:20:13.838836142 -0300
@@ -89,2 +89,3 @@
#define CX23885_BOARD_MPX885 32
+#define CX23885_BOARD_MYGICA_X8507 33
diff -up1rN /usr/src/linux-media/drivers/media/video/cx23885/cx23885-video.c /usr/src/linux/drivers/media/video/cx23885/cx23885-video.c
--- /usr/src/linux-media/drivers/media/video/cx23885/cx23885-video.c 2011-10-12 20:20:33.000000000 -0300
+++ /usr/src/linux/drivers/media/video/cx23885/cx23885-video.c 2011-11-09 11:39:29.458801749 -0300
@@ -494,3 +494,4 @@ static int cx23885_video_mux(struct cx23
if (dev->board == CX23885_BOARD_MYGICA_X8506 ||
- dev->board == CX23885_BOARD_MAGICPRO_PROHDTVE2) {
+ dev->board == CX23885_BOARD_MAGICPRO_PROHDTVE2 ||
+ dev->board == CX23885_BOARD_MYGICA_X8507) {
/* Select Analog TV */
reply other threads:[~2011-11-09 19:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EBAD0BC.8030600@netscape.net \
--to=alfredodelaiti@netscape.net \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox