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

Commit 5ee803a2 authored by Benjamin Larsson's avatar Benjamin Larsson Committed by Mauro Carvalho Chehab
Browse files

[media] mn88472: simplify bandwidth registers setting code

parent e6010442
Loading
Loading
Loading
Loading
+14 −27
Original line number Diff line number Diff line
@@ -58,9 +58,6 @@ static int mn88472_set_frontend(struct dvb_frontend *fe)
		goto err;
	}

	switch (c->delivery_system) {
	case SYS_DVBT:
	case SYS_DVBT2:
	if (c->bandwidth_hz <= 5000000) {
		memcpy(bw_val, "\xe5\x99\x9a\x1b\xa9\x1b\xa9", 7);
		bw_val2 = 0x03;
@@ -80,16 +77,6 @@ static int mn88472_set_frontend(struct dvb_frontend *fe)
		ret = -EINVAL;
		goto err;
	}
		break;
	case SYS_DVBC_ANNEX_A:
		/* IF 5070000 Hz, BW 8000000 Hz */
		memcpy(bw_val, "\x8f\x80\x00\x08\xee\x08\xee", 7);
		bw_val2 = 0x00;
		break;
	default:
		ret = -EINVAL;
		goto err;
	}

	/* program tuner */
	if (fe->ops.tuner_ops.set_params) {