]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (5037): Pvrusb2: Implement multiple minor device number handling
authorPantelis Koukousoulas <pakt223@freemail.gr>
Thu, 28 Dec 2006 02:07:58 +0000 (23:07 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 21 Feb 2007 15:34:22 +0000 (13:34 -0200)
commit2fdf3d9c94f7f752dacbebb75bbecda3c1b082a0
tree24d9c155095a642806cb3fee4210843936f220fe
parent6fcb5b3ef758ca78461d390dc07bed5a4667c521
V4L/DVB (5037): Pvrusb2: Implement multiple minor device number handling

This is the first patch in preparation of the V4L2/IVTV radio interface.
It does away with the assumption of only one minor per device. It also
adds a file to show the radio minor as well. This can be useful for a
program like pvr-radio.c (when it grows up), since this way it can search
for the minor of the /dev/radioX device it opened and use the video minor
of the same driver instance to get to the actual stream.

The implementation looks kinda ugly. Feel free to improve (that is the
reason behind separate patches anyway).

Signed-off-by: Pantelis Koukousoulas <pakt223@freemail.gr>
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-hdw-internal.h
drivers/media/video/pvrusb2/pvrusb2-hdw.c
drivers/media/video/pvrusb2/pvrusb2-hdw.h
drivers/media/video/pvrusb2/pvrusb2-sysfs.c
drivers/media/video/pvrusb2/pvrusb2-v4l2.c