Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261521
b: refs/heads/master
c: 5eee2bb
h: refs/heads/master
i:
  261519: 07ffb8a
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jul 27, 2011
1 parent bf31257 commit 7c21f4a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 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: 7558977a4ade512648bdfcc5f74dfffd7511d46f
refs/heads/master: 5eee2bb270e34b2e8b245838faef3f9455c69ce6
18 changes: 17 additions & 1 deletion trunk/drivers/media/dvb/frontends/drxk_hard.c
Original file line number Diff line number Diff line change
Expand Up @@ -5389,7 +5389,7 @@ static int SetQAM(struct drxk_state *state, u16 IntermediateFreqkHz,
{
int status;
u8 parameterLen;
u16 setEnvParameters[5];
u16 setEnvParameters[5] = { 0, 0, 0, 0, 0 };
u16 setParamParameters[4] = { 0, 0, 0, 0 };
u16 cmdResult;

Expand Down Expand Up @@ -5456,9 +5456,25 @@ static int SetQAM(struct drxk_state *state, u16 IntermediateFreqkHz,
setParamParameters[1] = DRXK_QAM_I12_J17; /* interleave mode */

status = scu_command(state, SCU_RAM_COMMAND_STANDARD_QAM | SCU_RAM_COMMAND_CMD_DEMOD_SET_PARAM, 4, setParamParameters, 1, &cmdResult);
if (status < 0) {
/* Fall-back to the simpler call */
setParamParameters[0] = QAM_TOP_ANNEX_A;
if (state->m_OperationMode == OM_QAM_ITU_C)
setEnvParameters[0] = QAM_TOP_ANNEX_C; /* Annex */
else
setEnvParameters[0] = 0;

status = scu_command(state, SCU_RAM_COMMAND_STANDARD_QAM | SCU_RAM_COMMAND_CMD_DEMOD_SET_ENV, 1, setEnvParameters, 1, &cmdResult);
if (status < 0)
goto error;

setParamParameters[0] = state->m_Constellation; /* constellation */
setParamParameters[1] = DRXK_QAM_I12_J17; /* interleave mode */

status = scu_command(state, SCU_RAM_COMMAND_STANDARD_QAM | SCU_RAM_COMMAND_CMD_DEMOD_SET_PARAM, 2, setParamParameters, 1, &cmdResult);
}
if (status < 0)
goto error;

/* STEP 3: enable the system in a mode where the ADC provides valid signal
setup constellation independent registers */
Expand Down

0 comments on commit 7c21f4a

Please sign in to comment.