Commit 64104dc9 authored by Andreas Regel's avatar Andreas Regel Committed by Mauro Carvalho Chehab

V4L/DVB (11594): stv090x: Fix incorrect TSMODE usage

Signed-off-by: default avatarAndreas Regel <andreas.regel@gmx.de>
Signed-off-by: default avatarManu Abraham <manu@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 4e58a682
...@@ -3813,34 +3813,34 @@ static int stv090x_set_tspath(struct stv090x_state *state) ...@@ -3813,34 +3813,34 @@ static int stv090x_set_tspath(struct stv090x_state *state)
switch (state->config->ts2_mode) { switch (state->config->ts2_mode) {
case STV090x_TSMODE_PARALLEL_PUNCTURED: case STV090x_TSMODE_PARALLEL_PUNCTURED:
reg = stv090x_read_reg(state, STV090x_P1_TSCFGH); reg = stv090x_read_reg(state, STV090x_P2_TSCFGH);
STV090x_SETFIELD_Px(reg, TSFIFO_SERIAL_FIELD, 0x00); STV090x_SETFIELD_Px(reg, TSFIFO_SERIAL_FIELD, 0x00);
STV090x_SETFIELD_Px(reg, TSFIFO_DVBCI_FIELD, 0x00); STV090x_SETFIELD_Px(reg, TSFIFO_DVBCI_FIELD, 0x00);
if (stv090x_write_reg(state, STV090x_P1_TSCFGH, reg) < 0) if (stv090x_write_reg(state, STV090x_P2_TSCFGH, reg) < 0)
goto err; goto err;
break; break;
case STV090x_TSMODE_DVBCI: case STV090x_TSMODE_DVBCI:
reg = stv090x_read_reg(state, STV090x_P1_TSCFGH); reg = stv090x_read_reg(state, STV090x_P2_TSCFGH);
STV090x_SETFIELD_Px(reg, TSFIFO_SERIAL_FIELD, 0x00); STV090x_SETFIELD_Px(reg, TSFIFO_SERIAL_FIELD, 0x00);
STV090x_SETFIELD_Px(reg, TSFIFO_DVBCI_FIELD, 0x01); STV090x_SETFIELD_Px(reg, TSFIFO_DVBCI_FIELD, 0x01);
if (stv090x_write_reg(state, STV090x_P1_TSCFGH, reg) < 0) if (stv090x_write_reg(state, STV090x_P2_TSCFGH, reg) < 0)
goto err; goto err;
break; break;
case STV090x_TSMODE_SERIAL_PUNCTURED: case STV090x_TSMODE_SERIAL_PUNCTURED:
reg = stv090x_read_reg(state, STV090x_P1_TSCFGH); reg = stv090x_read_reg(state, STV090x_P2_TSCFGH);
STV090x_SETFIELD_Px(reg, TSFIFO_SERIAL_FIELD, 0x01); STV090x_SETFIELD_Px(reg, TSFIFO_SERIAL_FIELD, 0x01);
STV090x_SETFIELD_Px(reg, TSFIFO_DVBCI_FIELD, 0x00); STV090x_SETFIELD_Px(reg, TSFIFO_DVBCI_FIELD, 0x00);
if (stv090x_write_reg(state, STV090x_P1_TSCFGH, reg) < 0) if (stv090x_write_reg(state, STV090x_P2_TSCFGH, reg) < 0)
goto err; goto err;
break; break;
case STV090x_TSMODE_SERIAL_CONTINUOUS: case STV090x_TSMODE_SERIAL_CONTINUOUS:
reg = stv090x_read_reg(state, STV090x_P1_TSCFGH); reg = stv090x_read_reg(state, STV090x_P2_TSCFGH);
STV090x_SETFIELD_Px(reg, TSFIFO_SERIAL_FIELD, 0x01); STV090x_SETFIELD_Px(reg, TSFIFO_SERIAL_FIELD, 0x01);
STV090x_SETFIELD_Px(reg, TSFIFO_DVBCI_FIELD, 0x01); STV090x_SETFIELD_Px(reg, TSFIFO_DVBCI_FIELD, 0x01);
if (stv090x_write_reg(state, STV090x_P1_TSCFGH, reg) < 0) if (stv090x_write_reg(state, STV090x_P2_TSCFGH, reg) < 0)
goto err; goto err;
break; break;
......
...@@ -1358,8 +1358,8 @@ static struct stv090x_config tt1600_stv090x_config = { ...@@ -1358,8 +1358,8 @@ static struct stv090x_config tt1600_stv090x_config = {
.address = 0x68, .address = 0x68,
.ref_clk = 27000000, .ref_clk = 27000000,
.ts1_mode = STV090x_TSMODE_DVBCI, .ts1_mode = STV090x_TSMODE_PARALLEL_PUNCTURED,
.ts2_mode = STV090x_TSMODE_DVBCI, .ts2_mode = STV090x_TSMODE_SERIAL_PUNCTURED,
.repeater_level = STV090x_RPTLEVEL_16, .repeater_level = STV090x_RPTLEVEL_16,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment