saa7134: Add new cards
PATCH 1/1 saa7134: Add new cards
Added new hybrid cards using saa7134 and go7007 chip.
- WIS Voyager or compatible
- Sensoray model 314
- Sensoray model 614
For these boards, module saa7134-go7007 (in staging) is loaded to interface with the go7007 MPEG encoder chip.
linux/Documentation/video4linux/CARDLIST.saa7134 +3 -0
@@ -151,3 +151,6 @@ 150 -> Zogis Real Angel 220 150 -> Zogis Real Angel 220 151 -> ADS Tech Instant HDTV [1421:0380] 152 -> Asus Tiger Rev:1.00 [1043:4857] +153 -> WIS Voyager or compatible [1905:7007] +154 -> Sensoray model 314 [6000:0314] +155 -> Sensoray model 614 [6000:0614]
linux/drivers/media/video/saa7134/saa7134-cards.c +88 -0
100 lines not on this page · raw message
linux/drivers/media/video/saa7134/saa7134-core.c +10 -4
@@ -201,6 +201,8 @@ static void request_module_async(structrequest_module ("saa7134-empress" );if (card_is_dvb (dev))request_module ("saa7134-dvb" ); +if (card_is_go7007 (dev)) +request_module ("saa7134-go7007" );if (alsa)request_module ("saa7134-alsa" );if (oss)
@@ -601,15 +603,19 @@ static irqreturn_t saa7134_irq(int irq,if ((report &SAA7134_IRQ_REPORT_DONE_RA0 ) && (status &0x60 ) ==0 ) -saa7134_irq_video_done (dev,status); +saa7134_irq_video_done (dev, status);if ((report &SAA7134_IRQ_REPORT_DONE_RA0 ) && (status &0x40 ) ==0x40 ) -saa7134_irq_vbi_done (dev,status); +saa7134_irq_vbi_done (dev, status);if ((report &SAA7134_IRQ_REPORT_DONE_RA2 ) && -card_has_mpeg (dev)) -saa7134_irq_ts_done (dev,status); +card_has_mpeg (dev)) { +if (dev->mops->irq_ts_done !=NULL ) + dev->mops->irq_ts_done (dev, status); +else +saa7134_irq_ts_done (dev, status); + }if (report &SAA7134_IRQ_REPORT_GPIO16 ) {switch (dev->has_remote) {
linux/drivers/media/video/saa7134/saa7134.h +7 -0
@@ -276,6 +276,9 @@ struct saa7134_format {#define SAA7134_BOARD_REAL_ANGEL_220 150#define SAA7134_BOARD_ADS_INSTANT_HDTV_PCI 151#define SAA7134_BOARD_ASUSTeK_TIGER 152 +#define SAA7134_BOARD_WIS_VOYAGER 153 +#define SAA7134_BOARD_SENSORAY_314 154 +#define SAA7134_BOARD_SENSORAY_614 155#define SAA7134_MAXBOARDS 32#define SAA7134_INPUT_MAX 8
@@ -306,6 +309,7 @@ enum saa7134_mpeg_type {SAA7134_MPEG_UNUSED ,SAA7134_MPEG_EMPRESS ,SAA7134_MPEG_DVB , + SAA7134_MPEG_GO7007, }; struct saa7134_board {
@@ -336,6 +340,7 @@ struct saa7134_board {#define card_has_radio (dev) (NULL != saa7134_boards[dev->board].radio.name)#define card_is_empress (dev) (SAA7134_MPEG_EMPRESS == saa7134_boards[dev->board].mpeg)#define card_is_dvb (dev) (SAA7134_MPEG_DVB == saa7134_boards[dev->board].mpeg) +#define card_is_go7007 (dev) (SAA7134_MPEG_GO7007 == saa7134_boards[dev->board].mpeg)#define card_has_mpeg (dev) (SAA7134_MPEG_UNUSED != saa7134_boards[dev->board].mpeg)#define card (dev) (saa7134_boards[dev->board])#define card_in (dev,n) (saa7134_boards[dev->board].inputs[n])
@@ -470,6 +475,8 @@ struct saa7134_mpeg_ops {struct list_head next;int (*init)(struct saa7134_dev *dev);int (*fini)(struct saa7134_dev *dev); +void (*irq_ts_done)(struct saa7134_dev *dev, +unsigned long status);void (*signal_change)(struct saa7134_dev *dev); };
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Hi Pete,
Am Montag, den 10.11.2008, 14:52 -0800 schrieb Pete Eberlein:
Quoted 43 lines
Added new hybrid cards using saa7134 and go7007 chip.
- WIS Voyager or compatible
- Sensoray model 314
- Sensoray model 614
For these boards, module saa7134-go7007 (in staging) is loaded to interface with the go7007 MPEG encoder chip.Signed-off-by Pete Eberlein <[email protected]>diff -r
bb00cb692462linux/Documentation/video4linux/CARDLIST.saa7134linux/Documentation/video4linux/CARDLIST.saa7134 +3
-0@@ -151,3 +151,6 @@ 150 -> Zogis Real Angel 220 150 -> Zogis Real Angel 220 151 -> ADS Tech Instant HDTV [1421:0380] 152 -> Asus Tiger Rev:1.00 [1043:4857] +153 -> WIS Voyager or compatible [1905:7007] +154 -> Sensoray model 314 [6000:0314] +155 -> Sensoray model 614 [6000:0614]diff -r
bb00cb692462linux/drivers/media/video/saa7134/saa7134-cards.clinux/drivers/media/video/saa7134/saa7134-cards.c +16
-0@@ -4645,6 +4645,76 @@ struct saa7134_board saa7134_boards[] = .gpio = 0x0200000, }, }, + [SAA7134_BOARD_WIS_VOYAGER ] = { + .name ="WIS Voyager or compatible" , + .audio_clock =0x00200000 , + .tuner_type =TUNER_PHILIPS_TDA8290 , + .inputs = { { + .name = name_comp1, + .vmux =0 , + .amux =LINE2 , + }, { + .name = name_tv, + .vmux =3 , + .amux =TV , + .tv =1 , + }, { + .name = name_svideo, + .vmux =6 ,
linux/drivers/media/video/saa7134/saa7134-cards.c struct saa7134_board saa7134_boards[] = · line 4673
Quoted 10 lines
linux/drivers/media/video/saa7134/saa7134-cards.c +10
-0+ .amux = LINE1, + } }, + .mpeg = SAA7134_MPEG_GO7007, + }, + [SAA7134_BOARD_SENSORAY_314] = { + .name = "Sensoray 314 board", + .audio_clock = 0x00200000, + .tuner_type = TUNER_PHILIPS_TDA8290, + .inputs = { { + .name = name_comp1,
..................................^^^^^^^^^^
Quoted 4 lines
linux/drivers/media/video/saa7134/saa7134-cards.c +4
-0+ .vmux = 0, + .amux = LINE2, + }, { + .name = name_svideo,
linux/drivers/media/video/saa7134/saa7134-cards.c struct saa7134_board saa7134_boards[] = · line 4687
Quoted 10 lines
linux/drivers/media/video/saa7134/saa7134-cards.c +10
-0+ .vmux = 6, + .amux = LINE2, + }, { + .name = name_svideo, + .vmux = 7, + .amux = LINE2, + }, { + .name = name_comp1, + .vmux = 0, + .amux = LINE2,
..........................^^^^^^^^^^^^^
you have some duplicate stuff here.
Quoted 124 lines
linux/drivers/media/video/saa7134/saa7134-cards.c +48
-0+ }, { + .name = name_comp2, + .vmux = 1, + .amux = LINE2, + }, { + .name = name_comp3, + .vmux = 2, + .amux = LINE2, + }, { + .name = name_comp4, + .vmux = 3, + .amux = LINE2, + } }, + .mpeg = SAA7134_MPEG_GO7007, + }, + [SAA7134_BOARD_SENSORAY_614] = { + .name = "Sensoray 614 board", + .audio_clock = 0x00200000, + .tuner_type = TUNER_PHILIPS_TDA8290, + .inputs = { { + .name = name_comp, + .vmux = 0, + .amux = LINE2, + }, { + .name = name_svideo, + .vmux = 6, + .amux = LINE2, + } }, + .mpeg = SAA7134_MPEG_GO7007, + }, };const unsigned int saa7134_bcount =ARRAY_SIZE (saa7134_boards);@@ -5691,6 +5761,24 @@ struct pci_device_id saa7134_pci_tbl[] = .subvendor = 0x1043, .subdevice = 0x4878, /* REV:1.02G */ .driver_data = SAA7134_BOARD_ASUSTeK_TIGER_3IN1, + }, { + .vendor = PCI_VENDOR_ID_PHILIPS, + .device = PCI_DEVICE_ID_PHILIPS_SAA7133, + .subvendor = 0x1905, /* WIS */ + .subdevice = 0x7007, + .driver_data = SAA7134_BOARD_WIS_VOYAGER, + }, { + .vendor = PCI_VENDOR_ID_PHILIPS, + .device = PCI_DEVICE_ID_PHILIPS_SAA7133, + .subvendor = 0x6000, + .subdevice = 0x0314, + .driver_data = SAA7134_BOARD_SENSORAY_314, + }, { + .vendor = PCI_VENDOR_ID_PHILIPS, + .device = PCI_DEVICE_ID_PHILIPS_SAA7133, + .subvendor = 0x6000, + .subdevice = 0x0614, + .driver_data = SAA7134_BOARD_SENSORAY_614, }, { /* --- boards without eeprom + subsystem ID --- */ .vendor = PCI_VENDOR_ID_PHILIPS,diff -r
bb00cb692462linux/drivers/media/video/saa7134/saa7134-core.clinux/drivers/media/video/saa7134/saa7134-core.c +10
-4@@ -201,6 +201,8 @@ static void request_module_async(structrequest_module ("saa7134-empress" );if (card_is_dvb (dev))request_module ("saa7134-dvb" ); +if (card_is_go7007 (dev)) +request_module ("saa7134-go7007" );if (alsa)request_module ("saa7134-alsa" );if (oss)@@ -601,15 +603,19 @@ static irqreturn_t saa7134_irq(int irq,if ((report &SAA7134_IRQ_REPORT_DONE_RA0 ) && (status &0x60 ) ==0 ) -saa7134_irq_video_done (dev,status); +saa7134_irq_video_done (dev, status);if ((report &SAA7134_IRQ_REPORT_DONE_RA0 ) && (status &0x40 ) ==0x40 ) -saa7134_irq_vbi_done (dev,status); +saa7134_irq_vbi_done (dev, status);if ((report &SAA7134_IRQ_REPORT_DONE_RA2 ) && -card_has_mpeg (dev)) -saa7134_irq_ts_done (dev,status); +card_has_mpeg (dev)) { +if (dev->mops->irq_ts_done !=NULL ) + dev->mops->irq_ts_done (dev, status); +else +saa7134_irq_ts_done (dev, status); + }if (report &SAA7134_IRQ_REPORT_GPIO16 ) {switch (dev->has_remote) {diff -r
bb00cb692462linux/drivers/media/video/saa7134/saa7134.hlinux/drivers/media/video/saa7134/saa7134.h +5
-0@@ -276,6 +276,9 @@ struct saa7134_format {#define SAA7134_BOARD_REAL_ANGEL_220 150#define SAA7134_BOARD_ADS_INSTANT_HDTV_PCI 151#define SAA7134_BOARD_ASUSTeK_TIGER 152 +#define SAA7134_BOARD_WIS_VOYAGER 153 +#define SAA7134_BOARD_SENSORAY_314 154 +#define SAA7134_BOARD_SENSORAY_614 155#define SAA7134_MAXBOARDS 32#define SAA7134_INPUT_MAX 8@@ -306,6 +309,7 @@ enum saa7134_mpeg_type {SAA7134_MPEG_UNUSED ,SAA7134_MPEG_EMPRESS ,SAA7134_MPEG_DVB , + SAA7134_MPEG_GO7007, }; struct saa7134_board {@@ -336,6 +340,7 @@ struct saa7134_board {#define card_has_radio (dev) (NULL != saa7134_boards[dev->board].radio.name)#define card_is_empress (dev) (SAA7134_MPEG_EMPRESS == saa7134_boards[dev->board].mpeg)#define card_is_dvb (dev) (SAA7134_MPEG_DVB == saa7134_boards[dev->board].mpeg) +#define card_is_go7007 (dev) (SAA7134_MPEG_GO7007 == saa7134_boards[dev->board].mpeg)#define card_has_mpeg (dev) (SAA7134_MPEG_UNUSED != saa7134_boards[dev->board].mpeg)#define card (dev) (saa7134_boards[dev->board])#define card_in (dev,n) (saa7134_boards[dev->board].inputs[n])
linux/drivers/media/video/saa7134/saa7134.h struct saa7134_mpeg_ops { · line 482
Quoted 8 lines
linux/drivers/media/video/saa7134/saa7134.h +2
-0@@ -470,6 +475,8 @@ struct saa7134_mpeg_ops {struct list_head next;int (*init)(struct saa7134_dev *dev);int (*fini)(struct saa7134_dev *dev); +void (*irq_ts_done)(struct saa7134_dev *dev, +unsigned long status);void (*signal_change)(struct saa7134_dev *dev); };
I probably missed it and there is a plan, but if this should go to v4l-dvb now and SAA7134_MPEG_GO7007 support comes only with staging, should we not #if 0 it until all is merged?
Thanks for your work.
Cheers,
Hermann
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 5 lines · On Tue, 11 Nov 2008 02:37:58 +0100 hermann pitton <[email protected]>…
I probably missed it and there is a plan, but if this should go to v4l-dvb now and
SAA7134_MPEG_GO7007support comes only with staging, should we not #if 0 it until all is merged?Thanks for your work.
It is better to hold the patch until go7007 driver enters at v4l/dvb tree and go outside staging.
Cheers,
Mauro
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 2 lines · Mauro Carvalho Chehab
On Tue, 11 Nov 2008 02:37:58 +0100
hermann pitton <[email protected]> wrote:
Hermann, thanks for the catching the input duplication in the struct.
Quoted 8 lines
Quoted 5 lines
I probably missed it and there is a plan, but if this should go to v4l-dvb now and
SAA7134_MPEG_GO7007support comes only with staging, should we not #if 0 it until all is merged?Thanks for your work.
It is better to hold the patch until go7007 driver enters at v4l/dvb tree and go outside staging.
Thanks. The saa7134-go7007.c portion of the go7007 driver in staging doesn't compile without the changes to the saa7134 headers, but I'll talk with Greg and find a way to make it work. It would be helpful to have the saa7134 changes in first, though.
Signature · 9 lines
Pete Eberlein Sensoray Co., Inc. Email: [email protected] http://www.sensoray.com -- video4linux-list mailing list Unsubscribe mailto:[email protected]?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list
Quoted 12 lines · On Tue, 11 Nov 2008 08:28:25 -0800 Pete Eberlein <[email protected]> wrote:
Quoted 2 lines · Mauro Carvalho Chehab
On Tue, 11 Nov 2008 02:37:58 +0100
hermann pitton <[email protected]> wrote:Hermann, thanks for the catching the input duplication in the struct.
Quoted 6 lines
Quoted 5 lines
I probably missed it and there is a plan, but if this should go to v4l-dvb now and
SAA7134_MPEG_GO7007support comes only with staging, should we not #if 0 it until all is merged?Thanks for your work.
Quoted 7 lines
Quoted 2 lines
It is better to hold the patch until go7007 driver enters at v4l/dvb tree and go outside staging.
Thanks. The
saa7134-go7007.cportion of the go7007 driver in staging doesn't compile without the changes to the saa7134 headers, but I'll talk with Greg and find a way to make it work. It would be helpful to have the saa7134 changes in first, though.
Maybe you can add a #if testing for go7007 for the card entries that require go7007 to be compiled. It may also be a good idea to add go7007 driver at v4l-dvb repository to allow us to test and to avoid it to break when newer API changes happen.
Cheers,
Mauro
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list