diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-10 20:07:36 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-28 00:55:50 +0400 |
commit | d6a054057781044712bfb0114d2d62d37781ffe9 (patch) | |
tree | 4f4ce9e9b78c55d44dad53e6151b36b715db6657 /drivers/media | |
parent | be44eb283b97c29b06a125cb5527b299d84315f4 (diff) | |
download | linux-d6a054057781044712bfb0114d2d62d37781ffe9.tar.xz |
[media] drxk: change mode before calling the set mode routines
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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/frontends/drxk_hard.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/drxk_hard.c b/drivers/media/dvb/frontends/drxk_hard.c index 74e986fd3283..1d29ed23154f 100644 --- a/drivers/media/dvb/frontends/drxk_hard.c +++ b/drivers/media/dvb/frontends/drxk_hard.c @@ -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: |