Commit 41e1151b authored by Manu Abraham's avatar Manu Abraham Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (9395): Add initial support for two KNC1 DVB-S2 boards



Add initial support for:
* KNC1 DVB-S2 Plus
* KNC1 DVB-S2 OEM (known as Satelco DVB-S2)

Signed-off-by: default avatarManu Abraham <manu@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 0b8f15dc
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@
struct tda8261_state {
	struct dvb_frontend		*fe;
	struct i2c_adapter		*i2c;
	struct tda8261_config	*config;
	const struct tda8261_config	*config;

	/* state cache */
	u32 frequency;
@@ -37,7 +37,7 @@ struct tda8261_state {

static int tda8261_read(struct tda8261_state *state, u8 *buf)
{
	struct tda8261_config *config = state->config;
	const struct tda8261_config *config = state->config;
	int err = 0;
	struct i2c_msg msg[] = {
		{ .addr	= config->addr, .flags = 0,	  .buf = NULL, .len = 0 },
@@ -52,7 +52,7 @@ static int tda8261_read(struct tda8261_state *state, u8 *buf)

static int tda8261_write(struct tda8261_state *state, u8 *buf)
{
	struct tda8261_config *config = state->config;
	const struct tda8261_config *config = state->config;
	int err = 0;
	struct i2c_msg msg = { .addr = config->addr, .flags = 0, .buf = buf, .len = 4 };

@@ -111,7 +111,7 @@ static int tda8261_set_state(struct dvb_frontend *fe,
			     struct tuner_state *tstate)
{
	struct tda8261_state *state = fe->tuner_priv;
	struct tda8261_config *config = state->config;
	const struct tda8261_config *config = state->config;
	u32 frequency, N, status = 0;
	u8 buf[4];
	int err = 0;
@@ -182,7 +182,7 @@ static struct dvb_tuner_ops tda8261_ops = {
};

struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
				    struct tda8261_config *config,
				    const struct tda8261_config *config,
				    struct i2c_adapter *i2c)
{
	struct tda8261_state *state = NULL;
+3 −6
Original line number Diff line number Diff line
@@ -15,11 +15,8 @@ struct tda8261_config {
	enum tda8261_step	step_size;
};

/* move out from here! */
static const struct tda8261_config sd1878c_config = {
//	.name		= "SD1878C",
	.addr		= 0x60,
	.step_size	= TDA8261_STEP_1000 /* kHz */
};
extern struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe,
					   const struct tda8261_config *config,
					   struct i2c_adapter *i2c);

#endif// __TDA8261_H
+613 −0

File changed.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Diff line number Diff line
@@ -103,6 +103,7 @@ static struct saa7146_pci_extension_data x_var = { \
#define BUDGET_CIN1200C_MK3	   15
#define BUDGET_KNC1C_MK3	   16
#define BUDGET_KNC1CP_MK3	   17
#define BUDGET_KNC1S2              18

#define BUDGET_VIDEO_PORTA         0
#define BUDGET_VIDEO_PORTB         1