Re: Try to Make DVB-T part of Compro VideoMate T750 Work

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

 



On 2008 May 7 Wednesday 20:23:37 you wrote:

> Hi, what I2C addresses are you using for each device?

Hi, Rod:

Sorry for late replying...

Following is my patch to v4l-dvb (v4l-dvb-4c4fd6b8755c)

The patch is mainly adapted from Newbigin's patch, but the case in saa7134_board_init2 is talltolly a nonsense guessing... lol

Ask a newbie question... lol

What's the role of I2C plays in between these chips?

linleno

---

diff -ru v4l-dvb-4c4fd6b8755c-ori/linux/drivers/media/video/saa7134/saa7134-cards.c v4l-dvb-4c4fd6b8755c/linux/drivers/media/video/saa7134/saa7134-cards.c

--- v4l-dvb-4c4fd6b8755c-ori/linux/drivers/media/video/saa7134/saa7134-cards.c 2008-05-02 18:51:27.000000000 +0800

+++ v4l-dvb-4c4fd6b8755c/linux/drivers/media/video/saa7134/saa7134-cards.c 2008-05-08 22:42:06.000000000 +0800

@@ -5936,6 +5936,7 @@

case SAA7134_BOARD_AVERMEDIA_SUPER_007:

case SAA7134_BOARD_TWINHAN_DTV_DVB_3056:

case SAA7134_BOARD_CREATIX_CTX953:

+ case SAA7134_BOARD_VIDEOMATE_T750:

{

/* this is a hybrid board, initialize to analog mode

* and configure firmware eeprom address

diff -ru v4l-dvb-4c4fd6b8755c-ori/linux/drivers/media/video/saa7134/saa7134-dvb.c v4l-dvb-4c4fd6b8755c/linux/drivers/media/video/saa7134/saa7134-dvb.c

--- v4l-dvb-4c4fd6b8755c-ori/linux/drivers/media/video/saa7134/saa7134-dvb.c 2008-05-02 18:51:27.000000000 +0800

+++ v4l-dvb-4c4fd6b8755c/linux/drivers/media/video/saa7134/saa7134-dvb.c 2008-05-08 22:42:54.000000000 +0800

@@ -40,6 +40,8 @@

#include "tda1004x.h"

#include "nxt200x.h"

#include "tuner-xc2028.h"

+#include "zl10353.h"

+#include "qt1010.h"

#include "tda10086.h"

#include "tda826x.h"

@@ -937,6 +939,17 @@

.demod_address = 0x0a,

};

+static struct zl10353_config videomate_t750_zl10353_config = {

+ .demod_address = 0x0f,

+ .no_tuner = 0,

+ .parallel_ts = 1,

+};

+

+static struct qt1010_config videomate_t750_qt1010_config = {

+ .i2c_address = 0x62

+};

+

+

/* ==================================================================

* Core code

*/

@@ -1263,15 +1276,33 @@

goto dettach_frontend;

break;

case SAA7134_BOARD_AVERMEDIA_CARDBUS_506:

-#if 0

- /*FIXME: What frontend does Videomate T750 use? */

- case SAA7134_BOARD_VIDEOMATE_T750:

-#endif

dev->dvb.frontend = dvb_attach(mt352_attach,

&avermedia_e506r_mt352_dev,

&dev->i2c_adap);

attach_xc3028 = 1;

break;

+#if 1

+ /*FIXME: What frontend does Videomate T750 use? */

+ case SAA7134_BOARD_VIDEOMATE_T750:

+ printk("Compro VideoMate T750 DVB setup\n");

+ dev->dvb.frontend = dvb_attach(zl10353_attach,

+ &videomate_t750_zl10353_config,

+ &dev->i2c_adap);

+ if (dev->dvb.frontend != NULL) {

+ printk("Attaching pll\n");

+ // if there is a gate function then the i2c bus breaks.....!

+ dev->dvb.frontend->ops.i2c_gate_ctrl = 0;

+

+ if (dvb_attach(qt1010_attach,

+ dev->dvb.frontend,

+ &dev->i2c_adap,

+ &videomate_t750_qt1010_config) == NULL)

+ {

+ wprintk("error attaching QT1010\n");

+ }

+ }

+ break;

+#endif

case SAA7134_BOARD_MD7134_BRIDGE_2:

dev->dvb.frontend = dvb_attach(tda10086_attach,

&sd1878_4m, &dev->i2c_adap);

_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux