mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 02:46:41 +07:00
[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: Devin Heitmueller <dheitmueller@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
c76286bafc
commit
c4dc6f9222
@ -20213,8 +20213,6 @@ static int drx39xxj_set_frontend(struct dvb_frontend *fe)
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (standard != state->current_standard || state->powered_up == 0) {
|
||||
/* Set the standard (will be powered up if necessary */
|
||||
result = ctrl_set_standard(demod, &standard);
|
||||
if (result != 0) {
|
||||
@ -20224,7 +20222,6 @@ static int drx39xxj_set_frontend(struct dvb_frontend *fe)
|
||||
}
|
||||
state->powered_up = 1;
|
||||
state->current_standard = standard;
|
||||
}
|
||||
|
||||
/* set channel parameters */
|
||||
channel = def_channel;
|
||||
|
Loading…
Reference in New Issue
Block a user