Commit c4dc6f92 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] drx-j: call ctrl_set_standard even if a standard is powered

Modulation and other parameters might have changed. So, better
to call ctrl_set_standard() even if the device is already
powered.

That helps to put the device into a sane state, if something
got wrong on a previous set_frontend call.
Acked-by: default avatarDevin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent c76286ba
...@@ -20213,18 +20213,15 @@ static int drx39xxj_set_frontend(struct dvb_frontend *fe) ...@@ -20213,18 +20213,15 @@ static int drx39xxj_set_frontend(struct dvb_frontend *fe)
default: default:
return -EINVAL; return -EINVAL;
} }
/* Set the standard (will be powered up if necessary */
if (standard != state->current_standard || state->powered_up == 0) { result = ctrl_set_standard(demod, &standard);
/* Set the standard (will be powered up if necessary */ if (result != 0) {
result = ctrl_set_standard(demod, &standard); pr_err("Failed to set standard! result=%02x\n",
if (result != 0) { result);
pr_err("Failed to set standard! result=%02x\n", return -EINVAL;
result);
return -EINVAL;
}
state->powered_up = 1;
state->current_standard = standard;
} }
state->powered_up = 1;
state->current_standard = standard;
/* set channel parameters */ /* set channel parameters */
channel = def_channel; channel = def_channel;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment