Skip to content

Commit

Permalink
[media] drxk: change mode before calling the set mode routines
Browse files Browse the repository at this point in the history
The set mode routines assume that state were changed to the
new mode, otherwise, they'll fail.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Jul 27, 2011
1 parent be44eb2 commit d6a0540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/dvb/frontends/drxk_hard.c
Original file line number Diff line number Diff line change
Expand Up @@ -1837,17 +1837,17 @@ static int SetOperationMode(struct drxk_state *state,
*/
switch (oMode) {
case OM_DVBT:
state->m_OperationMode = oMode;
status = SetDVBTStandard(state, oMode);
if (status < 0)
goto error;
state->m_OperationMode = oMode;
break;
case OM_QAM_ITU_A: /* fallthrough */
case OM_QAM_ITU_C:
state->m_OperationMode = oMode;
status = SetQAMStandard(state, oMode);
if (status < 0)
goto error;
state->m_OperationMode = oMode;
break;
case OM_QAM_ITU_B:
default:
Expand Down

0 comments on commit d6a0540

Please sign in to comment.