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

Commit c147f610 authored by Steven Toth's avatar Steven Toth Committed by Mauro Carvalho Chehab
Browse files

[media] cx23885: Query the CX25840 during enum_input for status



We can pass a NO_SIGNAL video decoder state back to applications
if it's available.

Signed-off-by: default avatarSteven Toth <stoth@kernellabs.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent a21df45d
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -1303,6 +1303,15 @@ int cx23885_enum_input(struct cx23885_dev *dev, struct v4l2_input *i)
	if (INPUT(n)->type != CX23885_VMUX_TELEVISION)
	if (INPUT(n)->type != CX23885_VMUX_TELEVISION)
		i->audioset = 0x3;
		i->audioset = 0x3;


	if (dev->input == n) {
		/* enum'd input matches our configured input.
		 * Ask the video decoder to process the call
		 * and give it an oppertunity to update the
		 * status field.
		 */
		call_all(dev, video, g_input_status, &i->status);
	}

	return 0;
	return 0;
}
}