Commit eea977ed authored by Michael Büsch's avatar Michael Büsch Committed by Mauro Carvalho Chehab

[media] Add fc0011 tuner driver

This adds support for the Fitipower fc0011 DVB-t tuner.
Signed-off-by: default avatarMichael Buesch <m@bues.ch>
Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 6ec12988
......@@ -2692,6 +2692,13 @@ S: Maintained
F: Documentation/hwmon/f71805f
F: drivers/hwmon/f71805f.c
FC0011 TUNER DRIVER
M: Michael Buesch <m@bues.ch>
L: linux-media@vger.kernel.org
S: Maintained
F: drivers/media/common/tuners/fc0011.h
F: drivers/media/common/tuners/fc0011.c
FANOTIFY
M: Eric Paris <eparis@redhat.com>
S: Maintained
......
......@@ -204,6 +204,13 @@ config MEDIA_TUNER_TDA18218
help
NXP TDA18218 silicon tuner driver.
config MEDIA_TUNER_FC0011
tristate "Fitipower FC0011 silicon tuner"
depends on VIDEO_MEDIA && I2C
default m if MEDIA_TUNER_CUSTOMISE
help
Fitipower FC0011 silicon tuner driver.
config MEDIA_TUNER_TDA18212
tristate "NXP TDA18212 silicon tuner"
depends on VIDEO_MEDIA && I2C
......
......@@ -29,6 +29,7 @@ obj-$(CONFIG_MEDIA_TUNER_MAX2165) += max2165.o
obj-$(CONFIG_MEDIA_TUNER_TDA18218) += tda18218.o
obj-$(CONFIG_MEDIA_TUNER_TDA18212) += tda18212.o
obj-$(CONFIG_MEDIA_TUNER_TUA9001) += tua9001.o
obj-$(CONFIG_MEDIA_TUNER_FC0011) += fc0011.o
ccflags-y += -I$(srctree)/drivers/media/dvb/dvb-core
ccflags-y += -I$(srctree)/drivers/media/dvb/frontends
This diff is collapsed.
#ifndef LINUX_FC0011_H_
#define LINUX_FC0011_H_
#include "dvb_frontend.h"
/** struct fc0011_config - fc0011 hardware config
*
* @i2c_address: I2C bus address.
*/
struct fc0011_config {
u8 i2c_address;
};
/** enum fc0011_fe_callback_commands - Frontend callbacks
*
* @FC0011_FE_CALLBACK_POWER: Power on tuner hardware.
* @FC0011_FE_CALLBACK_RESET: Request a tuner reset.
*/
enum fc0011_fe_callback_commands {
FC0011_FE_CALLBACK_POWER,
FC0011_FE_CALLBACK_RESET,
};
#if defined(CONFIG_MEDIA_TUNER_FC0011) ||\
defined(CONFIG_MEDIA_TUNER_FC0011_MODULE)
struct dvb_frontend *fc0011_attach(struct dvb_frontend *fe,
struct i2c_adapter *i2c,
const struct fc0011_config *config);
#else
static inline
struct dvb_frontend *fc0011_attach(struct dvb_frontend *fe,
struct i2c_adapter *i2c,
const struct fc0011_config *config)
{
dev_err(&i2c->dev, "fc0011 driver disabled in Kconfig\n");
return NULL;
}
#endif
#endif /* LINUX_FC0011_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment