From: Felipe Balbi <balbi@ti.com>
To: manjunatha_halli@ti.com
Cc: mchehab@infradead.org, hverkuil@xs4all.nl,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org
Subject: Re: [RFC V10 2/7] drivers:media:radio: wl128x: FM Driver V4L2 sources
Date: Tue, 11 Jan 2011 13:21:06 +0200 [thread overview]
Message-ID: <20110111112106.GD2385@legolas.emea.dhcp.ti.com> (raw)
In-Reply-To: <1294745487-29138-3-git-send-email-manjunatha_halli@ti.com>
On Tue, Jan 11, 2011 at 06:31:22AM -0500, manjunatha_halli@ti.com wrote:
> From: Manjunatha Halli <manjunatha_halli@ti.com>
>
> This module interfaces V4L2 subsystem and FM common module.
> It registers itself with V4L2 as Radio module.
>
> Signed-off-by: Manjunatha Halli <manjunatha_halli@ti.com>
> Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
> ---
> drivers/media/radio/wl128x/fmdrv_v4l2.c | 580 +++++++++++++++++++++++++++++++
> drivers/media/radio/wl128x/fmdrv_v4l2.h | 33 ++
> 2 files changed, 613 insertions(+), 0 deletions(-)
> create mode 100644 drivers/media/radio/wl128x/fmdrv_v4l2.c
> create mode 100644 drivers/media/radio/wl128x/fmdrv_v4l2.h
>
> diff --git a/drivers/media/radio/wl128x/fmdrv_v4l2.c b/drivers/media/radio/wl128x/fmdrv_v4l2.c
> new file mode 100644
> index 0000000..d50e5ac
> --- /dev/null
> +++ b/drivers/media/radio/wl128x/fmdrv_v4l2.c
> @@ -0,0 +1,580 @@
> +/*
> + * FM Driver for Connectivity chip of Texas Instruments.
> + * This file provides interfaces to V4L2 subsystem.
> + *
> + * This module registers with V4L2 subsystem as Radio
> + * data system interface (/dev/radio). During the registration,
> + * it will expose two set of function pointers.
> + *
> + * 1) File operation related API (open, close, read, write, poll...etc).
> + * 2) Set of V4L2 IOCTL complaint API.
> + *
> + * Copyright (C) 2011 Texas Instruments
> + * Author: Raja Mani <raja_mani@ti.com>
> + * Author: Manjunatha Halli <manjunatha_halli@ti.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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
> + *
> + */
> +
> +#include "fmdrv.h"
> +#include "fmdrv_v4l2.h"
> +#include "fmdrv_common.h"
> +#include "fmdrv_rx.h"
> +#include "fmdrv_tx.h"
Ideally you would not depend on other headers including the stuff you
need.
> +static struct video_device *gradio_dev;
> +static u8 radio_disconnected;
What happens with these if someone puts two wl128x devices on the same
board ? Will this still work ??
> +static const struct v4l2_ctrl_ops fm_ctrl_ops = {
> + .s_ctrl = fm_v4l2_s_ctrl,
> + .g_volatile_ctrl = fm_g_volatile_ctrl,
> +};
missing a blank line here.
> +static const struct v4l2_ioctl_ops fm_drv_ioctl_ops = {
> + .vidioc_querycap = fm_v4l2_vidioc_querycap,
> + .vidioc_g_audio = fm_v4l2_vidioc_g_audio,
> + .vidioc_s_audio = fm_v4l2_vidioc_s_audio,
> + .vidioc_g_tuner = fm_v4l2_vidioc_g_tuner,
> + .vidioc_s_tuner = fm_v4l2_vidioc_s_tuner,
> + .vidioc_g_frequency = fm_v4l2_vidioc_g_freq,
> + .vidioc_s_frequency = fm_v4l2_vidioc_s_freq,
> + .vidioc_s_hw_freq_seek = fm_v4l2_vidioc_s_hw_freq_seek,
> + .vidioc_g_modulator = fm_v4l2_vidioc_g_modulator,
> + .vidioc_s_modulator = fm_v4l2_vidioc_s_modulator
> +};
--
balbi
next prev parent reply other threads:[~2011-01-11 11:21 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-11 11:31 [RFC V10 0/7] FM V4L2 drivers for WL128x manjunatha_halli
2011-01-11 11:31 ` [RFC V10 1/7] drivers:media:radio: wl128x: FM Driver common header file manjunatha_halli
2011-01-11 11:17 ` Felipe Balbi
2011-01-11 11:31 ` [RFC V10 2/7] drivers:media:radio: wl128x: FM Driver V4L2 sources manjunatha_halli
2011-01-11 11:21 ` Felipe Balbi [this message]
2011-01-11 11:31 ` [RFC V10 3/7] drivers:media:radio: wl128x: FM Driver Common sources manjunatha_halli
2011-01-11 11:24 ` Felipe Balbi
2011-01-11 12:16 ` halli manjunatha
2011-01-11 12:42 ` Raja Mani
2011-01-17 10:15 ` halli manjunatha
2011-01-17 10:33 ` Hans Verkuil
2011-01-18 13:19 ` halli manjunatha
2011-01-19 19:12 ` Mauro Carvalho Chehab
2011-01-20 9:39 ` halli manjunatha
2011-01-11 11:31 ` [RFC V10 4/7] drivers:media:radio: wl128x: FM driver RX sources manjunatha_halli
2011-01-11 11:31 ` [RFC V10 5/7] drivers:media:radio: wl128x: FM driver TX sources manjunatha_halli
2011-01-11 11:31 ` [RFC V10 6/7] drivers:media:radio: wl128x: Kconfig & Makefile for wl128x driver manjunatha_halli
2011-01-11 11:30 ` Felipe Balbi
2011-01-11 11:31 ` [RFC V10 7/7] drivers:media:radio: Update Kconfig and Makefile for wl128x FM driver manjunatha_halli
2011-03-18 16:18 ` [PATCH -next] drivers:media:radio: wl128x: fix printk format and text Randy Dunlap
2011-03-22 18:23 ` Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110111112106.GD2385@legolas.emea.dhcp.ti.com \
--to=balbi@ti.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=manjunatha_halli@ti.com \
--cc=mchehab@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®