[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>
This commit is contained in:
@@ -1837,17 +1837,17 @@ static int SetOperationMode(struct drxk_state *state,
|
|||||||
*/
|
*/
|
||||||
switch (oMode) {
|
switch (oMode) {
|
||||||
case OM_DVBT:
|
case OM_DVBT:
|
||||||
|
state->m_OperationMode = oMode;
|
||||||
status = SetDVBTStandard(state, oMode);
|
status = SetDVBTStandard(state, oMode);
|
||||||
if (status < 0)
|
if (status < 0)
|
||||||
goto error;
|
goto error;
|
||||||
state->m_OperationMode = oMode;
|
|
||||||
break;
|
break;
|
||||||
case OM_QAM_ITU_A: /* fallthrough */
|
case OM_QAM_ITU_A: /* fallthrough */
|
||||||
case OM_QAM_ITU_C:
|
case OM_QAM_ITU_C:
|
||||||
|
state->m_OperationMode = oMode;
|
||||||
status = SetQAMStandard(state, oMode);
|
status = SetQAMStandard(state, oMode);
|
||||||
if (status < 0)
|
if (status < 0)
|
||||||
goto error;
|
goto error;
|
||||||
state->m_OperationMode = oMode;
|
|
||||||
break;
|
break;
|
||||||
case OM_QAM_ITU_B:
|
case OM_QAM_ITU_B:
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user