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

Commit 7f3917f6 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (7925): cx18: ensure that the xceive pin is always asserted on init.

parent 3b4a9714
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -62,11 +62,13 @@ void cx18_gpio_init(struct cx18 *cx)
	gpio_dir = cx->card->gpio_init.direction;
	gpio_val = cx->card->gpio_init.initial_value;

	if (gpio_dir == 0)
		return;

	if (cx->card->xceive_pin) {
		gpio_dir |= 1 << cx->card->xceive_pin;
		gpio_val |= 1 << cx->card->xceive_pin;
	}

	if (gpio_dir == 0)
		return;

	CX18_DEBUG_INFO("GPIO initial dir: %08x/%08x out: %08x/%08x\n",
		   read_reg(CX18_REG_GPIO_DIR1), read_reg(CX18_REG_GPIO_DIR2),