Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110199
b: refs/heads/master
c: c18c5ff
h: refs/heads/master
i:
  110197: 8a47868
  110195: 4f9cbcc
  110191: 50bb0bc
v: v3
  • Loading branch information
Patrick Boettcher authored and Mauro Carvalho Chehab committed Oct 5, 2008
1 parent 620ec2a commit cf93d4a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dda06a8e4610757def753ee3a541a0b1a1feb36b
refs/heads/master: c18c5ffe13e553cf670da521fe09150c36edeb61
1 change: 1 addition & 0 deletions trunk/drivers/media/dvb/b2c2/flexcop-fe-tuner.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ static struct s5h1420_config skystar2_rev2_7_s5h1420_config = {
.demod_address = 0x53,
.invert = 1,
.repeated_start_workaround = 1,
.serial_mpeg = 1,
};

static struct itd1000_config skystar2_rev2_7_itd1000_config = {
Expand Down
9 changes: 6 additions & 3 deletions trunk/drivers/media/dvb/frontends/s5h1420.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,11 @@ static u8 s5h1420_readreg(struct s5h1420_state *state, u8 reg)
if (ret != 3)
return ret;
} else {
ret = i2c_transfer(state->i2c, &msg[1], 2);
if (ret != 2)
ret = i2c_transfer(state->i2c, &msg[1], 1);
if (ret != 1)
return ret;
ret = i2c_transfer(state->i2c, &msg[2], 1);
if (ret != 1)
return ret;
}

Expand Down Expand Up @@ -823,7 +826,7 @@ static int s5h1420_init (struct dvb_frontend* fe)
struct s5h1420_state* state = fe->demodulator_priv;

/* disable power down and do reset */
state->CON_1_val = 0x10;
state->CON_1_val = state->config->serial_mpeg << 4;
s5h1420_writereg(state, 0x02, state->CON_1_val);
msleep(10);
s5h1420_reset(state);
Expand Down
8 changes: 5 additions & 3 deletions trunk/drivers/media/dvb/frontends/s5h1420.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ struct s5h1420_config
u8 demod_address;

/* does the inversion require inversion? */
u8 invert : 1;
u8 invert:1;

u8 repeated_start_workaround : 1;
u8 cdclk_polarity : 1; /* 1 == falling edge, 0 == raising edge */
u8 repeated_start_workaround:1;
u8 cdclk_polarity:1; /* 1 == falling edge, 0 == raising edge */

u8 serial_mpeg:1;
};

#if defined(CONFIG_DVB_S5H1420) || (defined(CONFIG_DVB_S5H1420_MODULE) && defined(MODULE))
Expand Down

0 comments on commit cf93d4a

Please sign in to comment.