V4L/DVB (4202): allow selecting CX2341x port mode
CX2341X port was always set to 'memory', but 'streaming' is also possible
ivtv uses the memory (DMA) interface with the CX2341X, while pvrusb2 and
cx88-blackbird use the streaming interface. This setting is now selectable
by the driver.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
diff --git a/include/media/cx2341x.h b/include/media/cx2341x.h
index 0c9292f..fb170d4 100644
--- a/include/media/cx2341x.h
+++ b/include/media/cx2341x.h
@@ -19,8 +19,15 @@
#ifndef CX2341X_H
#define CX2341X_H
+enum cx2341x_port {
+ CX2341X_PORT_MEMORY,
+ CX2341X_PORT_STREAMING,
+ CX2341X_PORT_SERIAL
+};
+
struct cx2341x_mpeg_params {
/* misc */
+ enum cx2341x_port port;
u16 width;
u16 height;
u16 is_50hz;