summaryrefslogtreecommitdiff
path: root/drivers/media/tuners/fc2580_priv.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2015-05-03 21:42:02 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-05-18 15:58:10 -0300
commit252fad1cee34d6613a44ff218d7a80fd5f4b0987 (patch)
tree47e335ab2514334b757fc49591559c933d8ec05a /drivers/media/tuners/fc2580_priv.h
parent8b302d43e84dc863729010a1ea9a5a2bc83d25de (diff)
[media] fc2580: implement V4L2 subdevice for SDR control
Implement V4L2 subdevice for bandwidth and frequency controls of SDR usage. That driver now implements both DVB frontend and V4L2 subdevice. Driver itself is I2C driver. Lets see how it works. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/tuners/fc2580_priv.h')
-rw-r--r--drivers/media/tuners/fc2580_priv.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/media/tuners/fc2580_priv.h b/drivers/media/tuners/fc2580_priv.h
index bd88b0141141..031a43d7e7af 100644
--- a/drivers/media/tuners/fc2580_priv.h
+++ b/drivers/media/tuners/fc2580_priv.h
@@ -22,6 +22,8 @@
#define FC2580_PRIV_H
#include "fc2580.h"
+#include <media/v4l2-ctrls.h>
+#include <media/v4l2-subdev.h>
#include <linux/regmap.h>
#include <linux/math64.h>
@@ -131,6 +133,15 @@ struct fc2580_dev {
u32 clk;
struct i2c_client *client;
struct regmap *regmap;
+ struct v4l2_subdev subdev;
+ bool active;
+ unsigned int f_frequency;
+ unsigned int f_bandwidth;
+
+ /* Controls */
+ struct v4l2_ctrl_handler hdl;
+ struct v4l2_ctrl *bandwidth_auto;
+ struct v4l2_ctrl *bandwidth;
};
#endif