All of lore.kernel.org
 help / color / mirror / Atom feed
From: flinkdeldinky <flinkdeldinky@gmail.com>
To: linux-media@vger.kernel.org
Subject: [PATCH video4linux] For STLabs PCI saa7134 analog receiver card
Date: Thu, 29 Oct 2009 23:07:28 +0700	[thread overview]
Message-ID: <200910292307.28202.flinkdeldinky@gmail.com> (raw)

The following patch provides functionality for the STLabs PCI TV receiver card. It only adds some information to saa7134.h and saa7134-cards.c

The card is auto detected as a 10 MOONS card but that will not work.

I load the saa7134 module with:
saa7134 card=175 tuner=5

I have not tested the remote control or the s-video.  Everything else works.

Tuners 3, 5, 14, 20, 28, 29, 48 seem to work equally well.

diff -r d6c09c3711b5 linux/drivers/media/video/saa7134/saa7134-cards.c          
--- a/linux/drivers/media/video/saa7134/saa7134-cards.c Sun Sep 20 15:14:21 2009 +0000                                                                          
+++ b/linux/drivers/media/video/saa7134/saa7134-cards.c Thu Oct 29 14:54:31 2009 +0700                                                                          
@@ -5342,7 +5342,38 @@                                                          
                        .amux   = LINE2,                                        
                } },                                                            
        },                                                                      
-                                                                               
+       [SAA7134_BOARD_STLAB_PCI_TV7130] = {                                    
+       /* "Aidan Gill" */                                                      
+               .name = "ST Lab ST Lab PCI-TV7130 ",                            
+               .audio_clock = 0x00200000,                                      
+               .tuner_type = TUNER_LG_PAL_NEW_TAPC,                            
+               .radio_type     = UNSET,                                        
+               .tuner_addr     = ADDR_UNSET,                                   
+               .radio_addr     = ADDR_UNSET,                                   
+               .gpiomask = 0x7000,                                             
+               .inputs = {{                                                    
+                       .name = name_tv,                                        
+                       .vmux = 1,                                              
+                       .amux = LINE2,                                          
+                       .gpio = 0x0000,                                         
+                       .tv = 1,                                                
+               }, {                                                            
+                       .name = name_comp1,                                     
+                       .vmux = 3,                                              
+                       .amux = LINE1,                                          
+                       .gpio = 0x2000,                                         
+               }, {                                                            
+                       .name = name_svideo,                                    
+                       .vmux = 0,                                              
+                       .amux = LINE1,                                          
+                       .gpio = 0x2000,                                         
+               } },                                                            
+               .mute = {                                                       
+                       .name = name_mute,                                      
+                       .amux = TV,                                             
+                       .gpio = 0x3000,                                         
+               },                                                              
+       },                                                                      
 };                                                                             
                                                                                
 const unsigned int saa7134_bcount = ARRAY_SIZE(saa7134_boards);                
@@ -6487,6 +6518,12 @@                                                          
                .subdevice    = 0x4847,                                         
                .driver_data  = SAA7134_BOARD_ASUS_EUROPA_HYBRID,               
        }, {                                                                    
+               .vendor       = PCI_VENDOR_ID_PHILIPS,                          
+               .device       = PCI_DEVICE_ID_PHILIPS_SAA7130,                  
+               .subvendor    =  PCI_VENDOR_ID_PHILIPS,                         
+               .subdevice    = 0x2001,
+               .driver_data  = SAA7134_BOARD_STLAB_PCI_TV7130,
+       }, {
                /* --- boards without eeprom + subsystem ID --- */
                .vendor       = PCI_VENDOR_ID_PHILIPS,
                .device       = PCI_DEVICE_ID_PHILIPS_SAA7134,
diff -r d6c09c3711b5 linux/drivers/media/video/saa7134/saa7134.h
--- a/linux/drivers/media/video/saa7134/saa7134.h       Sun Sep 20 15:14:21 2009 +0000
+++ b/linux/drivers/media/video/saa7134/saa7134.h       Thu Oct 29 14:54:31 2009 +0700
@@ -299,6 +299,7 @@
 #define SAA7134_BOARD_ROVERMEDIA_LINK_PRO_FM 172
 #define SAA7134_BOARD_ZOLID_HYBRID_PCI         173
 #define SAA7134_BOARD_ASUS_EUROPA_HYBRID       174
+#define SAA7134_BOARD_STLAB_PCI_TV7130         175

 #define SAA7134_MAXBOARDS 32
 #define SAA7134_INPUT_MAX 8

Signed-off-by: Michael Wellman <flinkdeldinky@gmail.com>

             reply	other threads:[~2009-10-29 16:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-29 16:07 flinkdeldinky [this message]
2009-10-29 23:38 ` [PATCH video4linux] For STLabs PCI saa7134 analog receiver card hermann pitton
     [not found]   ` <48bf42dd0910300803q8b98f1an3935901358cf3bf9@mail.gmail.com>
2009-10-31  2:54     ` hermann pitton

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=200910292307.28202.flinkdeldinky@gmail.com \
    --to=flinkdeldinky@gmail.com \
    --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.