All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nigel Kettlewell <nigel.kettlewell@googlemail.com>
To: linux-media@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Support HVR-1200 analog video as a clone of HVR-1500. Tested, composite and s-video inputs.
Date: Sun, 17 Sep 2017 22:42:17 +0100	[thread overview]
Message-ID: <59BEEC39.2030609@googlemail.com> (raw)

I propose the following patch to support Hauppauge HVR-1200 analog 
video, nothing more than a clone of HVR-1500. Patch based on Linux 4.9 
commit 69973b830859bc6529a7a0468ba0d80ee5117826

I have tested composite and S-Video inputs.

With the change, HVR-1200 devices have a /dev/video<n> entry which is 
accessible in the normal way.

Let me know if you need anything more.

Nigel Kettlewell



---
  drivers/media/pci/cx23885/cx23885-cards.c | 24 ++++++++++++++++++++++++
  1 file changed, 24 insertions(+)

diff --git a/drivers/media/pci/cx23885/cx23885-cards.c 
b/drivers/media/pci/cx23885/cx23885-cards.c
index 99ba8d6..5be38f1 100644
--- a/drivers/media/pci/cx23885/cx23885-cards.c
+++ b/drivers/media/pci/cx23885/cx23885-cards.c
@@ -195,7 +195,30 @@ struct cx23885_board cx23885_boards[] = {
         },
         [CX23885_BOARD_HAUPPAUGE_HVR1200] = {
                 .name           = "Hauppauge WinTV-HVR1200",
+               .porta          = CX23885_ANALOG_VIDEO,
                 .portc          = CX23885_MPEG_DVB,
+               .tuner_type     = TUNER_XC2028,
+               .tuner_addr     = 0x61, /* 0xc2 >> 1 */
+               .input          = {{
+                       .type   = CX23885_VMUX_TELEVISION,
+                       .vmux   =       CX25840_VIN7_CH3 |
+                                       CX25840_VIN5_CH2 |
+                                       CX25840_VIN2_CH1,
+                       .gpio0  = 0,
+               }, {
+                       .type   = CX23885_VMUX_COMPOSITE1,
+                       .vmux   =       CX25840_VIN7_CH3 |
+                                       CX25840_VIN4_CH2 |
+                                       CX25840_VIN6_CH1,
+                       .gpio0  = 0,
+               }, {
+                       .type   = CX23885_VMUX_SVIDEO,
+                       .vmux   =       CX25840_VIN7_CH3 |
+                                       CX25840_VIN4_CH2 |
+                                       CX25840_VIN8_CH1 |
+                                       CX25840_SVIDEO_ON,
+                       .gpio0  = 0,
+               } },
         },
         [CX23885_BOARD_HAUPPAUGE_HVR1700] = {
                 .name           = "Hauppauge WinTV-HVR1700",
@@ -2262,6 +2285,7 @@ void cx23885_card_setup(struct cx23885_dev *dev)
         case CX23885_BOARD_HAUPPAUGE_HVR1290:
         case CX23885_BOARD_LEADTEK_WINFAST_PXTV1200:
         case CX23885_BOARD_GOTVIEW_X5_3D_HYBRID:
+       case CX23885_BOARD_HAUPPAUGE_HVR1200:
         case CX23885_BOARD_HAUPPAUGE_HVR1500:
         case CX23885_BOARD_MPX885:
         case CX23885_BOARD_MYGICA_X8507:
--
2.9.4

             reply	other threads:[~2017-09-17 21:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-17 21:42 Nigel Kettlewell [this message]
2017-09-18 12:57 ` [PATCH] Support HVR-1200 analog video as a clone of HVR-1500. Tested, composite and s-video inputs Devin Heitmueller
     [not found]   ` <59C1044E.8060805@googlemail.com>
2017-09-19 19:16     ` Nigel Kettlewell
2017-12-04 12:01       ` Hans Verkuil
2018-01-02 21:46         ` Nigel Kettlewell

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=59BEEC39.2030609@googlemail.com \
    --to=nigel.kettlewell@googlemail.com \
    --cc=linux-kernel@vger.kernel.org \
    --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 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.