Skip to content

Commit 9dc0f3f

Browse files
palosaarimchehab
authored andcommitted
[media] af9033: feed clock to RF tuner
IT9135 RF tuner clock is coming from demodulator. We need enable it early in demod init, before any tuner I/O. Currently it is enabled by tuner driver itself, but it is too late and performance will be reduced as some registers are not updated correctly. Clock is disabled automatically when demod is put onto sleep. Cc: <[email protected]> # v3.15+ Cc: Bimow Chen <[email protected]> Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 01b461b commit 9dc0f3f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

drivers/media/dvb-frontends/af9033.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,19 @@ static int af9033_init(struct dvb_frontend *fe)
314314
goto err;
315315
}
316316

317+
/* feed clock to RF tuner */
318+
switch (state->cfg.tuner) {
319+
case AF9033_TUNER_IT9135_38:
320+
case AF9033_TUNER_IT9135_51:
321+
case AF9033_TUNER_IT9135_52:
322+
case AF9033_TUNER_IT9135_60:
323+
case AF9033_TUNER_IT9135_61:
324+
case AF9033_TUNER_IT9135_62:
325+
ret = af9033_wr_reg(state, 0x80fba8, 0x00);
326+
if (ret < 0)
327+
goto err;
328+
}
329+
317330
/* settings for TS interface */
318331
if (state->cfg.ts_mode == AF9033_TS_MODE_USB) {
319332
ret = af9033_wr_reg_mask(state, 0x80f9a5, 0x00, 0x01);

0 commit comments

Comments
 (0)