提交 899127b6 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] This adds support for the BCM2048 radio module found in Nokia N900

Add suport for Nokia N900 radio. This driver is far from being ready
to be added at the main tree, as it creates its own sysfs interface,
and violates lots of Coding Style rules, doing even evil things like
returning from a function inside a macro.

So, it is being added at staging with the condition that it will be
soon be fixed.

[m.chehab@samsung.com: added a description for the patch]
Signed-off-by: NEero Nurkkala <ext-eero.nurkkala@nokia.com>
Signed-off-by: NNils Faerber <nils.faerber@kernelconcepts.de>
Signed-off-by: NJoni Lapilainen <joni.lapilainen@gmail.com>
Signed-off-by: NPali Rohár <pali.rohar@gmail.com>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
[hans.verkuil@cisco.com: moved to staging, added slab.h include]
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 71b6aaaf
......@@ -21,6 +21,8 @@ if STAGING_MEDIA
# Please keep them in alphabetic order
source "drivers/staging/media/as102/Kconfig"
source "drivers/staging/media/bcm2048/Kconfig"
source "drivers/staging/media/cxd2099/Kconfig"
source "drivers/staging/media/davinci_vpfe/Kconfig"
......
obj-$(CONFIG_DVB_AS102) += as102/
obj-$(CONFIG_I2C_BCM2048) += bcm2048/
obj-$(CONFIG_DVB_CXD2099) += cxd2099/
obj-$(CONFIG_LIRC_STAGING) += lirc/
obj-$(CONFIG_SOLO6X10) += solo6x10/
......
#
# Multimedia Video device configuration
#
config I2C_BCM2048
tristate "Broadcom BCM2048 FM Radio Receiver support"
depends on I2C && VIDEO_V4L2 && RADIO_ADAPTERS
---help---
Say Y here if you want support to BCM2048 FM Radio Receiver.
This device driver supports only i2c bus.
To compile this driver as a module, choose M here: the
module will be called radio-bcm2048.
obj-$(CONFIG_I2C_BCM2048) += radio-bcm2048.o
此差异已折叠。
/*
* drivers/staging/media/radio-bcm2048.h
*
* Property and command definitions for bcm2048 radio receiver chip.
*
* Copyright (C) Nokia Corporation
* Contact: Eero Nurkkala <ext-eero.nurkkala@nokia.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#ifndef BCM2048_H
#define BCM2048_H
#define BCM2048_NAME "bcm2048"
#define BCM2048_I2C_ADDR 0x22
#endif /* ifndef BCM2048_H */
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册