Re: [PATCH 0/3] FM Transmitter driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hello again,
>
> On Fri, Apr 03, 2009 at 01:48:21PM +0200, Valentin Eduardo
> (Nokia-D/Helsinki) wrote:
>> On Fri, Apr 03, 2009 at 01:29:27PM +0200, ext Hans Verkuil wrote:
>> > > 2. Split driver into i2c driver (common/tunner?) and media/radio
>> >
>> > Not common/tuner, I think it can just go into media/radio. As long as
>> it is
>> > a stand-alone i2c driver that can be reused.
>>
>> Ok. right.
>
> One question about this split. AFAIU, the split should go as:
> - one i2c driver under media/radio, which handles the i2c device itself
> and
> also registers itself as a v4l2_subdev_tuner of v4l2_subdevice api.
> - another driver under media/radio, which actually registers the
> v4l2_device
> as VFL_TYPE_RADIO and uses the i2c driver through the v4l2_subdev api
> (v4l2_subdev_call ??). In this case, I see this second driver as platform
> driver.
>
> Is that correct ?

Yes, that's correct.

> Any good example of driver which does this?

We do not currently have platform drivers that do that, but you can take a
look at usbvision, which is probably the simplest of the lot when it comes
to this. A more complicated example would be saa7134.

Regards,

        Hans

-- 
Hans Verkuil - video4linux developer - sponsored by TANDBERG

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux