summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/au8522_common.c
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@kernellabs.com>2017-04-19 20:13:53 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-06-06 07:51:33 -0300
commitd7590b5704d6489ec5e6c7f65e90f8126a910b23 (patch)
treed59911530e0b4e472fc79eb5275bc3114bf3686a /drivers/media/dvb-frontends/au8522_common.c
parentd9928a115ac5b1b0e77f42a13b47a2a0d46d96d3 (diff)
[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 <dheitmueller@kernellabs.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/au8522_common.c')
-rw-r--r--drivers/media/dvb-frontends/au8522_common.c1
1 files changed, 1 insertions, 0 deletions
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);