summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/lgdt330x.c
diff options
context:
space:
mode:
authorMichael Krufky <devnull@localhost>2005-10-15 17:48:57 +0000
committerMichael Krufky <devnull@localhost>2005-10-15 17:48:57 +0000
commit069ea508eeb8e9d9ec6eabba697ad2b816278d8d (patch)
tree6485abfe22bc58c1113b7a801a49140fb6d9deca /linux/drivers/media/dvb/frontends/lgdt330x.c
parent6da62ea55f07b925af39794448bc1082abf118b5 (diff)
downloadmediapointer-dvb-s2-069ea508eeb8e9d9ec6eabba697ad2b816278d8d.tar.gz
mediapointer-dvb-s2-069ea508eeb8e9d9ec6eabba697ad2b816278d8d.tar.bz2
Added support for Air2PC/AirStar 2 ATSC 3rd generation (HD5000)
Signed-off-by: Taylor Jacob <rtjacob@earthlink.net> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/lgdt330x.c')
-rw-r--r--linux/drivers/media/dvb/frontends/lgdt330x.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/lgdt330x.c b/linux/drivers/media/dvb/frontends/lgdt330x.c
index b01c9a67e..91a66effe 100644
--- a/linux/drivers/media/dvb/frontends/lgdt330x.c
+++ b/linux/drivers/media/dvb/frontends/lgdt330x.c
@@ -27,6 +27,7 @@
* DViCO FusionHDTV 3 Gold-T
* DViCO FusionHDTV 5 Gold
* DViCO FusionHDTV 5 Lite
+ * Air2PC/AirStar 2 ATSC 3rd generation (HD5000)
*
* TODO:
* signal strength always returns 0.
@@ -221,6 +222,11 @@ static int lgdt330x_init(struct dvb_frontend* fe)
0x4c, 0x14
};
+ static u8 flip_lgdt3303_init_data[] = {
+ 0x4c, 0x14,
+ 0x87, 0xf3
+ };
+
struct lgdt330x_state* state = fe->demodulator_priv;
char *chip_name;
int err;
@@ -233,8 +239,13 @@ static int lgdt330x_init(struct dvb_frontend* fe)
break;
case LGDT3303:
chip_name = "LGDT3303";
- err = i2c_write_demod_bytes(state, lgdt3303_init_data,
- sizeof(lgdt3303_init_data));
+ if (state->config->clock_polarity_flip) {
+ err = i2c_write_demod_bytes(state, flip_lgdt3303_init_data,
+ sizeof(flip_lgdt3303_init_data));
+ } else {
+ err = i2c_write_demod_bytes(state, lgdt3303_init_data,
+ sizeof(lgdt3303_init_data));
+ }
break;
default:
chip_name = "undefined";