All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v9 0/4] FM Radio driver.
@ 2010-08-30 11:38 Matti J. Aaltonen
  2010-08-30 11:38 ` [PATCH v9 1/4] V4L2: Add seek spacing and FM RX class Matti J. Aaltonen
                   ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Matti J. Aaltonen @ 2010-08-30 11:38 UTC (permalink / raw)
  To: linux-media, hverkuil, eduardo.valentin, mchehab; +Cc: Matti J. Aaltonen

Hi again,

and thanks for the comments.
I've left the audio codec out of this patch set.

Hans wrote:
> > In principle yes, but we haven't yet decided to implement those now, at
> > the moment the RDS interpretation is left completely to user space
> > applications.
> 
> Matti, is it even possible to use the current FM TX RDS API for this chip?
> That API expects that the chip can generate the correct RDS packets based on
> high-level data. If the chip can only handle 'raw' RDS packets (requiring a
> userspace RDS encoder), then that API will never work.
> 
> But if this chip can indeed handle raw RDS only, then we need to add some
> capability flags to signal that to userspace.

It is possible to use the current FM TX RDS API, the chip supports at least
most of it. I just haven't implemented the support into the driver yet,
for a multiple of reasons. I'm planning of adding that in the relatively 
near future.

Anyhow, I've now added a way of telling that only raw RDS is supported.
Can we use one bit it the capability field for that?

> > +     struct wl1273_device *radio = ctrl->priv;
> 
> No need to use priv for this. You can use this instead:
> 
> static inline struct wl1273_device *to_radio(struct v4l2_ctrl *ctrl)
> {
>         return container_of(ctrl->handler, struct wl1273_device, ctrl_handler);
> }

Fixed. I just didn't come to think that it can be done like this. 

> > +     dev_dbg(radio->dev, "%s\n", __func__);
> > +     return r;
> > +}
> 
> Was the documentation on the control handler understandable enough? Any
> comments on how to improve the API or documentation? It's very new, so
> I'm interested in hearing about your experiences implementing this API.

I think the documentation is OK. But I didn't have time to dwell on it,
but on the other hand I remember thinking that the new API is better
than the previous one...

But what's the motivation behind having subdevices? You'll hardly
have several FM radios and want to do the same things on each
one at the same time?

> No need to use priv.
...
> First V4L2_CID_FM_BAND using new_std instead of new_std_menu (which it should
be).
...
> And a second?!
> 
> > +     if (ctrl) {
> > +             ctrl->is_volatile = 1;
> > +             ctrl->priv = radio;
> > +     }
> 
> And it is volatile? I thought that the ANTENNA_CAPACITOR was volatile.
> Something is messed up here.

Fixed. Yes, that was completely messed up...

Thanks...

Matti

Matti J. Aaltonen (4):
  V4L2: Add seek spacing and FM RX class.
  MFD: WL1273 FM Radio: MFD driver for the FM radio.
  V4L2: WL1273 FM Radio: Controls for the FM radio.
  Documentation: v4l: Add hw_seek spacing and FM_RX class

 Documentation/DocBook/v4l/controls.xml             |   71 +
 Documentation/DocBook/v4l/dev-rds.xml              |    5 +
 .../DocBook/v4l/vidioc-s-hw-freq-seek.xml          |   10 +-
 drivers/media/radio/Kconfig                        |   15 +
 drivers/media/radio/Makefile                       |    1 +
 drivers/media/radio/radio-wl1273.c                 | 1935 ++++++++++++++++++++
 drivers/media/video/v4l2-ctrls.c                   |   12 +
 drivers/mfd/Kconfig                                |    5 +
 drivers/mfd/Makefile                               |    2 +
 drivers/mfd/wl1273-core.c                          |  612 +++++++
 include/linux/mfd/wl1273-core.h                    |  314 ++++
 include/linux/videodev2.h                          |   16 +-
 12 files changed, 2995 insertions(+), 3 deletions(-)
 create mode 100644 drivers/media/radio/radio-wl1273.c
 create mode 100644 drivers/mfd/wl1273-core.c
 create mode 100644 include/linux/mfd/wl1273-core.h


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2010-09-16  7:37 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-30 11:38 [PATCH v9 0/4] FM Radio driver Matti J. Aaltonen
2010-08-30 11:38 ` [PATCH v9 1/4] V4L2: Add seek spacing and FM RX class Matti J. Aaltonen
2010-08-30 11:38   ` [PATCH v9 2/4] MFD: WL1273 FM Radio: MFD driver for the FM radio Matti J. Aaltonen
2010-08-30 11:38     ` [PATCH v9 3/4] V4L2: WL1273 FM Radio: Controls " Matti J. Aaltonen
2010-08-30 11:38       ` [PATCH v9 4/4] Documentation: v4l: Add hw_seek spacing and FM_RX class Matti J. Aaltonen
2010-09-08 18:37         ` Mauro Carvalho Chehab
2010-09-08 19:09       ` [PATCH v9 3/4] V4L2: WL1273 FM Radio: Controls for the FM radio Mauro Carvalho Chehab
2010-09-15 11:36         ` Matti J. Aaltonen
2010-09-16  7:37         ` Matti J. Aaltonen
2010-09-08 18:49     ` [PATCH v9 2/4] MFD: WL1273 FM Radio: MFD driver " Mauro Carvalho Chehab
2010-09-08 18:35   ` [PATCH v9 1/4] V4L2: Add seek spacing and FM RX class Mauro Carvalho Chehab
2010-09-09  7:57     ` Matti J. Aaltonen
2010-09-15  9:54     ` Matti J. Aaltonen
2010-09-07 19:10 ` [PATCH v9 0/4] FM Radio driver Hans Verkuil
2010-09-11 12:10 ` Hans Verkuil
2010-09-13 10:50   ` Matti J. Aaltonen
2010-09-13 11:32     ` Hans Verkuil
2010-09-13 11:44       ` Matti J. Aaltonen
2010-09-13 11:51         ` Hans Verkuil
2010-09-13 11:59           ` Matti J. Aaltonen
2010-09-13 12:06             ` Hans Verkuil
2010-09-13 12:15               ` Matti J. Aaltonen
2010-09-13 12:23                 ` Hans Verkuil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.