[PATCH]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following patch provides functionality for the STLabs PCI card. 
It's a saa7134 card.  I may be the only guy still using it!  I've been
compiling it the code for each kernel I use for years now.

Iif you guys accept this patch you may want to add the following
documentation somewhere (I don't know where to put it):
This card is auto detected as a 10 MOONS card, that doesn't work though.

I load saa7134 as follows:
saa7134 card=175 tuner=5

Everything on the card seems to function and that includes the firewire
port.  I don't know about the remote control though.

Tuners 3, 5, 14, 20, 28, 29, 24, 48 seem to work equally well. Those are
all
the PAL BG tuners. I spot checked several non PAL BG tuners and none worked.


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@xxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux