aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2014-12-03 18:11:03 -0500
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-12-04 09:42:46 -0500
commit2281c8244b3cbb75c557076f427c4ed8fb32b88a (patch)
tree7b56968176232c26149b13cd97afc3762a3b91f4 /drivers/media
parent69c0e9c547817fef14871bc5c4645fad683f242e (diff)
[media] rtl2832_sdr: control ADC
Recent rtl28xxu patch I made moved demod ADC enable from power control to frontend control (due to slave demod support). Because of that we need call USB interface frontend control too in order to enable ADC. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/dvb-frontends/rtl2832_sdr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/rtl2832_sdr.c b/drivers/media/dvb-frontends/rtl2832_sdr.c
index 7bf98cf6bbe1..2896b47c29d8 100644
--- a/drivers/media/dvb-frontends/rtl2832_sdr.c
+++ b/drivers/media/dvb-frontends/rtl2832_sdr.c
@@ -1013,6 +1013,10 @@ static int rtl2832_sdr_start_streaming(struct vb2_queue *vq, unsigned int count)
1013 if (s->d->props->power_ctrl) 1013 if (s->d->props->power_ctrl)
1014 s->d->props->power_ctrl(s->d, 1); 1014 s->d->props->power_ctrl(s->d, 1);
1015 1015
1016 /* enable ADC */
1017 if (s->d->props->frontend_ctrl)
1018 s->d->props->frontend_ctrl(s->fe, 1);
1019
1016 set_bit(POWER_ON, &s->flags); 1020 set_bit(POWER_ON, &s->flags);
1017 1021
1018 ret = rtl2832_sdr_set_tuner(s); 1022 ret = rtl2832_sdr_set_tuner(s);
@@ -1064,6 +1068,10 @@ static void rtl2832_sdr_stop_streaming(struct vb2_queue *vq)
1064 1068
1065 clear_bit(POWER_ON, &s->flags); 1069 clear_bit(POWER_ON, &s->flags);
1066 1070
1071 /* disable ADC */
1072 if (s->d->props->frontend_ctrl)
1073 s->d->props->frontend_ctrl(s->fe, 0);
1074
1067 if (s->d->props->power_ctrl) 1075 if (s->d->props->power_ctrl)
1068 s->d->props->power_ctrl(s->d, 0); 1076 s->d->props->power_ctrl(s->d, 0);
1069 1077