Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca681fe0 authored by Antti Palosaari's avatar Antti Palosaari Committed by Mauro Carvalho Chehab
Browse files

[media] af9033: provide dyn0_clk clock source



AF903x/IT913x demod provides clock source(s). It seems that this
clock source is used for integrated RF tuner of IT913x. It is
enabled by default, but firmware disables it automatically when
suspend is requested (suspend_flag (0x004c) + trigger_ofsm
(0x0000)). Automatic disable behavior seems to be similar for both
AF903x and IT913x I tested, though there is no likely any real
clock user in a case of AF903x.

Cc: Bimow Chen <Bimow.Chen@ite.com.tw>
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 7c5e3e5f
Loading
Loading
Loading
Loading
+2 −8
Original line number Original line Diff line number Diff line
@@ -314,14 +314,8 @@ static int af9033_init(struct dvb_frontend *fe)
			goto err;
			goto err;
	}
	}


	/* feed clock to RF tuner */
	/* clock output */
	switch (state->cfg.tuner) {
	if (state->cfg.dyn0_clk) {
	case AF9033_TUNER_IT9135_38:
	case AF9033_TUNER_IT9135_51:
	case AF9033_TUNER_IT9135_52:
	case AF9033_TUNER_IT9135_60:
	case AF9033_TUNER_IT9135_61:
	case AF9033_TUNER_IT9135_62:
		ret = af9033_wr_reg(state, 0x80fba8, 0x00);
		ret = af9033_wr_reg(state, 0x80fba8, 0x00);
		if (ret < 0)
		if (ret < 0)
			goto err;
			goto err;
+5 −0
Original line number Original line Diff line number Diff line
@@ -75,6 +75,11 @@ struct af9033_config {
	 * input spectrum inversion
	 * input spectrum inversion
	 */
	 */
	bool spec_inv;
	bool spec_inv;

	/*
	 *
	 */
	bool dyn0_clk;
};
};