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

Commit cc8c4f3a authored by Igor M. Liplianin's avatar Igor M. Liplianin Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (8994): Adjust MPEG initialization in cx24116



Adjust MPEG initialization in cx24116 in order to accomodate different
MPEG CLK position and polarity in different cards.

Signed-off-by: default avatarIgor M. Liplianin <liplianin@me.by>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 3f8e51ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -284,7 +284,7 @@ static int dw2102_set_voltage(struct dvb_frontend *fe, fe_sec_voltage_t voltage)

static struct cx24116_config dw2104_config = {
	.demod_address = 0x55,
	/*.mpg_clk_pos_pol = 0x01,*/
	.mpg_clk_pos_pol = 0x01,
};

static int dw2104_frontend_attach(struct dvb_usb_adapter *d)
+4 −1
Original line number Diff line number Diff line
@@ -478,6 +478,9 @@ static int cx24116_load_firmware (struct dvb_frontend* fe, const struct firmware
	cmd.args[0x01] = 0x01;
	cmd.args[0x02] = 0x75;
	cmd.args[0x03] = 0x00;
	if (state->config->mpg_clk_pos_pol)
		cmd.args[0x04] = state->config->mpg_clk_pos_pol;
	else
		cmd.args[0x04] = 0x02;
	cmd.args[0x05] = 0x00;
	cmd.len= 0x06;
+3 −0
Original line number Diff line number Diff line
@@ -33,6 +33,9 @@ struct cx24116_config

	/* Need to reset device during firmware loading */
	int (*reset_device)(struct dvb_frontend* fe);

	/* Need to set MPEG parameters */
	u8 mpg_clk_pos_pol:0x02;
};

#if defined(CONFIG_DVB_CX24116) || defined(CONFIG_DVB_CX24116_MODULE)