[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: Eero Nurkkala <ext-eero.nurkkala@nokia.com> Signed-off-by: Nils Faerber <nils.faerber@kernelconcepts.de> Signed-off-by: Joni Lapilainen <joni.lapilainen@gmail.com> Signed-off-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> [hans.verkuil@cisco.com: moved to staging, added slab.h include] Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
71b6aaafd5
commit
899127b67d
|
@ -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"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
obj-$(CONFIG_DVB_AS102) += as102/
|
||||
obj-$(CONFIG_I2C_BCM2048) += bcm2048/
|
||||
obj-$(CONFIG_DVB_CXD2099) += cxd2099/
|
||||
obj-$(CONFIG_LIRC_STAGING) += lirc/
|
||||
obj-$(CONFIG_SOLO6X10) += solo6x10/
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
#
|
||||
# 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.
|
|
@ -0,0 +1 @@
|
|||
obj-$(CONFIG_I2C_BCM2048) += radio-bcm2048.o
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* 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 */
|
Loading…
Reference in New Issue