From: Devin Heitmueller Date: Wed, 19 Apr 2017 23:13:53 +0000 (-0300) Subject: [media] au8522: Set the initial modulation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d7590b5704d6489ec5e6c7f65e90f8126a910b23;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [media] au8522: Set the initial modulation We need to set the initial modulation on driver setup, or else any calls to GET_FRONTEND prior to the first SET_FRONTEND call will get back garbage. Signed-off-by: Devin Heitmueller Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb-frontends/au8522_common.c b/drivers/media/dvb-frontends/au8522_common.c index cf4ac240a01f..6722838c3707 100644 --- a/drivers/media/dvb-frontends/au8522_common.c +++ b/drivers/media/dvb-frontends/au8522_common.c @@ -234,6 +234,7 @@ int au8522_init(struct dvb_frontend *fe) chip, so that when it gets powered back up it won't think that it is already tuned */ state->current_frequency = 0; + state->current_modulation = VSB_8; au8522_writereg(state, 0xa4, 1 << 5);