RE: August DVB-T210 » 0002-si2168-TS-clock-inversion-control-implemented.patch
drivers/media/dvb-frontends/si2168.c | ||
---|---|---|
308 | 308 |
if (ret) |
309 | 309 |
goto err; |
310 | 310 | |
311 |
memcpy(cmd.args, "\x14\x00\x09\x10\xe3\x18", 6); |
|
311 |
memcpy(cmd.args, "\x14\x00\x09\x10\xe3\x08", 6); |
|
312 |
cmd.args[5] |= s->ts_clock_inv ? 0x00 : 0x10; |
|
312 | 313 |
cmd.wlen = 6; |
313 | 314 |
cmd.rlen = 4; |
314 | 315 |
ret = si2168_cmd_execute(s, &cmd); |
315 | 316 |
if (ret) |
316 | 317 |
goto err; |
317 | 318 | |
318 |
memcpy(cmd.args, "\x14\x00\x08\x10\xd7\x15", 6); |
|
319 |
memcpy(cmd.args, "\x14\x00\x08\x10\xd7\x05", 6); |
|
320 |
cmd.args[5] |= s->ts_clock_inv ? 0x00 : 0x10; |
|
319 | 321 |
cmd.wlen = 6; |
320 | 322 |
cmd.rlen = 4; |
321 | 323 |
ret = si2168_cmd_execute(s, &cmd); |
... | ... | |
670 | 672 |
*config->i2c_adapter = s->adapter; |
671 | 673 |
*config->fe = &s->fe; |
672 | 674 |
s->ts_mode = config->ts_mode; |
675 |
s->ts_clock_inv = config->ts_clock_inv; |
|
673 | 676 |
s->fw_loaded = false; |
674 | 677 | |
675 | 678 |
i2c_set_clientdata(client, s); |
drivers/media/dvb-frontends/si2168.h | ||
---|---|---|
37 | 37 | |
38 | 38 |
/* TS mode */ |
39 | 39 |
u8 ts_mode; |
40 | ||
41 |
/* TS clock inverted */ |
|
42 |
bool ts_clock_inv; |
|
43 | ||
40 | 44 |
}; |
41 | 45 | |
42 | 46 |
#define SI2168_TS_PARALLEL 0x06 |
drivers/media/dvb-frontends/si2168_priv.h | ||
---|---|---|
38 | 38 |
bool active; |
39 | 39 |
bool fw_loaded; |
40 | 40 |
u8 ts_mode; |
41 |
bool ts_clock_inv; |
|
41 | 42 |
}; |
42 | 43 | |
43 | 44 |
/* firmare command struct */ |
44 |
- |