From: Mauro Carvalho Chehab Date: Sun, 10 Jul 2011 16:07:36 +0000 (-0300) Subject: [media] drxk: change mode before calling the set mode routines X-Git-Tag: next-20110726~49^2^2~41 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f8786472d127c38e9132d4756800f6dbe9193f76;p=karo-tx-linux.git [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 --- 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: