[media] au8522: Set the initial modulation
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Wed, 19 Apr 2017 23:13:53 +0000 (20:13 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Jun 2017 10:51:33 +0000 (07:51 -0300)
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 <dheitmueller@kernellabs.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/au8522_common.c

index cf4ac24..6722838 100644 (file)
@@ -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);