summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/msp3400-driver.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-01-28 08:51:01 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-01 07:25:31 -0200
commitfb4932821731f58353d23f6673b55a9612a1cb57 (patch)
tree50fa464979248d7fcc843ea0a1459e4afbf54f0c /drivers/media/i2c/msp3400-driver.h
parent55606310e77f5099d01b59ea9a25401f521c5713 (diff)
downloadblackbird-obmc-linux-fb4932821731f58353d23f6673b55a9612a1cb57.tar.gz
blackbird-obmc-linux-fb4932821731f58353d23f6673b55a9612a1cb57.zip
[media] msp3400: initialize MC data
Add pads and set the device type when used with the media controller. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/i2c/msp3400-driver.h')
-rw-r--r--drivers/media/i2c/msp3400-driver.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/i2c/msp3400-driver.h b/drivers/media/i2c/msp3400-driver.h
index 6cae21366ed5..f0bb37dc9013 100644
--- a/drivers/media/i2c/msp3400-driver.h
+++ b/drivers/media/i2c/msp3400-driver.h
@@ -7,6 +7,7 @@
#include <media/drv-intf/msp3400.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ctrls.h>
+#include <media/v4l2-mc.h>
/* ---------------------------------------------------------------------- */
@@ -102,6 +103,10 @@ struct msp_state {
wait_queue_head_t wq;
unsigned int restart:1;
unsigned int watch_stereo:1;
+
+#if CONFIG_MEDIA_CONTROLLER
+ struct media_pad pads[IF_AUD_DEC_PAD_NUM_PADS];
+#endif
};
static inline struct msp_state *to_state(struct v4l2_subdev *sd)
OpenPOWER on IntegriCloud