* Template for a new driver
@ 2008-12-15 1:01 Devin Heitmueller
2008-12-15 4:41 ` Hiremath, Vaibhav
2008-12-15 10:06 ` Hans Verkuil
0 siblings, 2 replies; 4+ messages in thread
From: Devin Heitmueller @ 2008-12-15 1:01 UTC (permalink / raw)
To: V4L
Hello,
I am writing a new driver for a video decoder, and wanted to ask if
there was any particular driver people would suggest as a model to
look at for new drivers. For example, I am not completely familiar
with which interfaces are deprecated, and want to make sure I use a
driver as a template that reflects the latest standards/conventions.
Suggestions welcome.
Thanks in advance,
Devin
--
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Template for a new driver
2008-12-15 1:01 Template for a new driver Devin Heitmueller
@ 2008-12-15 4:41 ` Hiremath, Vaibhav
2008-12-15 10:06 ` Hans Verkuil
1 sibling, 0 replies; 4+ messages in thread
From: Hiremath, Vaibhav @ 2008-12-15 4:41 UTC (permalink / raw)
To: Devin Heitmueller, V4L
Thanks,
Vaibhav Hiremath
> -----Original Message-----
> From: video4linux-list-bounces@redhat.com [mailto:video4linux-list-
> bounces@redhat.com] On Behalf Of Devin Heitmueller
> Sent: Monday, December 15, 2008 6:31 AM
> To: V4L
> Subject: Template for a new driver
>
> Hello,
>
> I am writing a new driver for a video decoder, and wanted to ask if
> there was any particular driver people would suggest as a model to
> look at for new drivers. For example, I am not completely familiar
> with which interfaces are deprecated, and want to make sure I use a
> driver as a template that reflects the latest standards/conventions.
>
> Suggestions welcome.
>
[Hiremath, Vaibhav] I would suggest using new sub-device framework which recently Hans has submitted, since all other frameworks are going to be deprecated.
Please refer to the mail-chain for more info -
http://marc.info/?l=linux-video&m=122756460125873&w=2
http://marc.info/?l=linux-video&m=122808129216519&w=2
> Thanks in advance,
>
> Devin
>
> --
> Devin J. Heitmueller
> http://www.devinheitmueller.com
> AIM: devinheitmueller
>
> --
> video4linux-list mailing list
> Unsubscribe mailto:video4linux-list-
> request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/video4linux-list
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Template for a new driver
2008-12-15 1:01 Template for a new driver Devin Heitmueller
2008-12-15 4:41 ` Hiremath, Vaibhav
@ 2008-12-15 10:06 ` Hans Verkuil
2008-12-15 14:35 ` Devin Heitmueller
1 sibling, 1 reply; 4+ messages in thread
From: Hans Verkuil @ 2008-12-15 10:06 UTC (permalink / raw)
To: video4linux-list
On Monday 15 December 2008 02:01:14 Devin Heitmueller wrote:
> Hello,
>
> I am writing a new driver for a video decoder, and wanted to ask if
> there was any particular driver people would suggest as a model to
> look at for new drivers. For example, I am not completely familiar
> with which interfaces are deprecated, and want to make sure I use a
> driver as a template that reflects the latest standards/conventions.
>
> Suggestions welcome.
>
> Thanks in advance,
>
> Devin
Hi Devin,
You definitely want to use the new v4l2_subdev framework for this. Read
Documentation/video4linux/v4l2-framework.txt for more info.
A good example template is probably saa7115.c. Not as big and
complicated as the audio-video decoder cx25840, but still a good
non-trivial example.
I also recommend using struct v4l2_i2c_driver_data if you desire to be
compatible with older kernels. The main reason for having this struct
is to hide all the ugly kernel #ifdefs.
Regards,
Hans
--
Hans Verkuil - video4linux developer - sponsored by TANDBERG
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Template for a new driver
2008-12-15 10:06 ` Hans Verkuil
@ 2008-12-15 14:35 ` Devin Heitmueller
0 siblings, 0 replies; 4+ messages in thread
From: Devin Heitmueller @ 2008-12-15 14:35 UTC (permalink / raw)
To: Hans Verkuil; +Cc: video4linux-list
On Mon, Dec 15, 2008 at 5:06 AM, Hans Verkuil <hverkuil@xs4all.nl> wrote:
> On Monday 15 December 2008 02:01:14 Devin Heitmueller wrote:
>> Hello,
>>
>> I am writing a new driver for a video decoder, and wanted to ask if
>> there was any particular driver people would suggest as a model to
>> look at for new drivers. For example, I am not completely familiar
>> with which interfaces are deprecated, and want to make sure I use a
>> driver as a template that reflects the latest standards/conventions.
>>
>> Suggestions welcome.
>>
>> Thanks in advance,
>>
>> Devin
>
> Hi Devin,
>
> You definitely want to use the new v4l2_subdev framework for this. Read
> Documentation/video4linux/v4l2-framework.txt for more info.
>
> A good example template is probably saa7115.c. Not as big and
> complicated as the audio-video decoder cx25840, but still a good
> non-trivial example.
>
> I also recommend using struct v4l2_i2c_driver_data if you desire to be
> compatible with older kernels. The main reason for having this struct
> is to hide all the ugly kernel #ifdefs.
>
> Regards,
>
> Hans
Thanks for the feedback. Because I didn't wait for more responses
last night, I ended up using the cx25840 driver as the base, which
seems to have been a good choice.
Cheers,
Devin
--
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-12-15 14:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-15 1:01 Template for a new driver Devin Heitmueller
2008-12-15 4:41 ` Hiremath, Vaibhav
2008-12-15 10:06 ` Hans Verkuil
2008-12-15 14:35 ` Devin Heitmueller
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.