* [patch] vivi: registered as /dev/video%d
@ 2008-03-01 0:18 Carl Karsten
2008-03-02 6:34 ` Carl Karsten
2008-03-04 14:25 ` Mauro Carvalho Chehab
0 siblings, 2 replies; 11+ messages in thread
From: Carl Karsten @ 2008-03-01 0:18 UTC (permalink / raw)
To: video4linux-list
Now that vivi can be something other than /dev/video0, it should tell us what it
is. This works for n_devs>1.
sudo modprobe vivi n_devs=3
[115041.616401] vivi: V4L2 device registered as /dev/video0
[115041.616445] vivi: V4L2 device registered as /dev/video1
[115041.616481] vivi: V4L2 device registered as /dev/video2
[115041.616486] Video Technology Magazine Virtual Video Capture Board
successfully loaded.
Carl K
diff -r 127f67dea087 linux/drivers/media/video/vivi.c
--- a/linux/drivers/media/video/vivi.c Tue Feb 26 20:43:56 2008 +0000
+++ b/linux/drivers/media/video/vivi.c Fri Feb 29 18:15:01 2008 -0600
@@ -47,6 +47,8 @@
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20)
#include <linux/freezer.h>
#endif
+
+#define MODULE_NAME "vivi"
/* Wake up at about 30 fps */
#define WAKE_NUMERATOR 30
@@ -1338,6 +1340,7 @@ static int __init vivi_init(void)
video_nr++;
dev->vfd = vfd;
+ printk(KERN_INFO "%s: V4L2 device registered as /dev/video%d\n",
MODULE_NAME, vfd->minor);
}
if (ret < 0) {
--
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] 11+ messages in thread
* Re: [patch] vivi: registered as /dev/video%d
2008-03-01 0:18 [patch] vivi: registered as /dev/video%d Carl Karsten
@ 2008-03-02 6:34 ` Carl Karsten
2008-03-04 14:25 ` Mauro Carvalho Chehab
1 sibling, 0 replies; 11+ messages in thread
From: Carl Karsten @ 2008-03-02 6:34 UTC (permalink / raw)
To: video4linux-list
added un registered messages.
Carl K
diff -r 127f67dea087 linux/drivers/media/video/vivi.c
--- a/linux/drivers/media/video/vivi.c Tue Feb 26 20:43:56 2008 +0000
+++ b/linux/drivers/media/video/vivi.c Sun Mar 02 00:33:27 2008 -0600
@@ -48,6 +48,8 @@
#include <linux/freezer.h>
#endif
+#define MODULE_NAME "vivi"
+
/* Wake up at about 30 fps */
#define WAKE_NUMERATOR 30
#define WAKE_DENOMINATOR 1001
@@ -56,7 +58,7 @@
#include "font.h"
#define VIVI_MAJOR_VERSION 0
-#define VIVI_MINOR_VERSION 4
+#define VIVI_MINOR_VERSION 5
#define VIVI_RELEASE 0
#define VIVI_VERSION \
KERNEL_VERSION(VIVI_MAJOR_VERSION, VIVI_MINOR_VERSION, VIVI_RELEASE)
@@ -1220,10 +1222,14 @@ static int vivi_release(void)
list_del(list);
dev = list_entry(list, struct vivi_dev, vivi_devlist);
- if (-1 != dev->vfd->minor)
+ if (-1 != dev->vfd->minor) {
video_unregister_device(dev->vfd);
- else
+ printk(KERN_INFO "%s: /dev/video%d unregistered.\n", MODULE_NAME,
dev->vfd->minor);
+ }
+ else {
video_device_release(dev->vfd);
+ printk(KERN_INFO "%s: /dev/video%d released.\n", MODULE_NAME, dev->vfd->minor);
+ }
kfree(dev);
}
@@ -1338,6 +1344,7 @@ static int __init vivi_init(void)
video_nr++;
dev->vfd = vfd;
+ printk(KERN_INFO "%s: V4L2 device registered as /dev/video%d\n", MODULE_NAME,
vfd->minor);
}
if (ret < 0) {
@@ -1345,7 +1352,8 @@ static int __init vivi_init(void)
printk(KERN_INFO "Error %d while loading vivi driver\n", ret);
} else
printk(KERN_INFO "Video Technology Magazine Virtual Video "
- "Capture Board successfully loaded.\n");
+ "Capture Board ver %u.%u.%u successfully loaded.\n",
+ (VIVI_VERSION >> 16) & 0xFF, (VIVI_VERSION >> 8) & 0xFF, VIVI_VERSION &
0xFF);
return ret;
}
--
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] 11+ messages in thread
* Re: [patch] vivi: registered as /dev/video%d
2008-03-01 0:18 [patch] vivi: registered as /dev/video%d Carl Karsten
2008-03-02 6:34 ` Carl Karsten
@ 2008-03-04 14:25 ` Mauro Carvalho Chehab
2008-05-28 20:15 ` Carl Karsten
1 sibling, 1 reply; 11+ messages in thread
From: Mauro Carvalho Chehab @ 2008-03-04 14:25 UTC (permalink / raw)
To: Carl Karsten; +Cc: video4linux-list
Carl,
On Fri, 29 Feb 2008 18:18:17 -0600
Carl Karsten <carl@personnelware.com> wrote:
> Now that vivi can be something other than /dev/video0, it should tell us what it
> is. This works for n_devs>1.
>
> sudo modprobe vivi n_devs=3
>
> [115041.616401] vivi: V4L2 device registered as /dev/video0
> [115041.616445] vivi: V4L2 device registered as /dev/video1
> [115041.616481] vivi: V4L2 device registered as /dev/video2
> [115041.616486] Video Technology Magazine Virtual Video Capture Board
> successfully loaded.
Please, re-send your patches, adding your SOB. Please numberate them with something like
[PATCH 1/3] for me to apply at the proper order.
Cheers,
Mauro
--
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] 11+ messages in thread
* Re: [patch] vivi: registered as /dev/video%d
2008-03-04 14:25 ` Mauro Carvalho Chehab
@ 2008-05-28 20:15 ` Carl Karsten
2008-05-28 20:37 ` Mauro Carvalho Chehab
0 siblings, 1 reply; 11+ messages in thread
From: Carl Karsten @ 2008-05-28 20:15 UTC (permalink / raw)
To: video4linux-list; +Cc: Mauro Carvalho Chehab
I posted a week ago and haven't heard anything. How long should I wait before
posting this? :)
Carl K
Mauro Carvalho Chehab wrote:
> Carl,
>
> On Fri, 29 Feb 2008 18:18:17 -0600
> Carl Karsten <carl@personnelware.com> wrote:
>
>> Now that vivi can be something other than /dev/video0, it should tell us what it
>> is. This works for n_devs>1.
>>
>> sudo modprobe vivi n_devs=3
>>
>> [115041.616401] vivi: V4L2 device registered as /dev/video0
>> [115041.616445] vivi: V4L2 device registered as /dev/video1
>> [115041.616481] vivi: V4L2 device registered as /dev/video2
>> [115041.616486] Video Technology Magazine Virtual Video Capture Board
>> successfully loaded.
>
> Please, re-send your patches, adding your SOB. Please numberate them with something like
> [PATCH 1/3] for me to apply at the proper order.
>
------------------------------------------------------
Patch 1:
diff -r 9d04bba82511 linux/drivers/media/video/vivi.c
--- a/linux/drivers/media/video/vivi.c Wed May 14 23:14:04 2008 +0000
+++ b/linux/drivers/media/video/vivi.c Tue May 20 01:51:56 2008 -0500
@@ -48,6 +48,8 @@
#include <linux/freezer.h>
#endif
+#define MODULE_NAME "vivi"
+
/* Wake up at about 30 fps */
#define WAKE_NUMERATOR 30
#define WAKE_DENOMINATOR 1001
@@ -56,7 +58,7 @@
#include "font.h"
#define VIVI_MAJOR_VERSION 0
-#define VIVI_MINOR_VERSION 4
+#define VIVI_MINOR_VERSION 5
#define VIVI_RELEASE 0
#define VIVI_VERSION \
KERNEL_VERSION(VIVI_MAJOR_VERSION, VIVI_MINOR_VERSION, VIVI_RELEASE)
@@ -1086,10 +1088,14 @@ static int vivi_release(void)
list_del(list);
dev = list_entry(list, struct vivi_dev, vivi_devlist);
- if (-1 != dev->vfd->minor)
+ if (-1 != dev->vfd->minor) {
video_unregister_device(dev->vfd);
- else
+ printk(KERN_INFO "%s: /dev/video%d unregistered.\n", MODULE_NAME,
dev->vfd->minor);
+ }
+ else {
video_device_release(dev->vfd);
+ printk(KERN_INFO "%s: /dev/video%d released.\n", MODULE_NAME,
dev->vfd->minor);
+ }
kfree(dev);
}
@@ -1202,6 +1208,7 @@ static int __init vivi_init(void)
video_nr++;
dev->vfd = vfd;
+ printk(KERN_INFO "%s: V4L2 device registered as /dev/video%d\n",
MODULE_NAME, vfd->minor);
}
if (ret < 0) {
@@ -1209,7 +1216,8 @@ static int __init vivi_init(void)
printk(KERN_INFO "Error %d while loading vivi driver\n", ret);
} else
printk(KERN_INFO "Video Technology Magazine Virtual Video "
- "Capture Board successfully loaded.\n");
+ "Capture Board ver %u.%u.%u successfully loaded.\n",
+ (VIVI_VERSION >> 16) & 0xFF, (VIVI_VERSION >> 8) & 0xFF, VIVI_VERSION &
0xFF);
return ret;
}
------------------------------------------------------
Signed-off-by: Carl Karsten <carl@personnelware.com>
--
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] 11+ messages in thread
* Re: [patch] vivi: registered as /dev/video%d
2008-05-28 20:15 ` Carl Karsten
@ 2008-05-28 20:37 ` Mauro Carvalho Chehab
2008-05-28 22:03 ` Carl Karsten
0 siblings, 1 reply; 11+ messages in thread
From: Mauro Carvalho Chehab @ 2008-05-28 20:37 UTC (permalink / raw)
To: Carl Karsten; +Cc: video4linux-list
On Wed, 28 May 2008 15:15:35 -0500
Carl Karsten <carl@personnelware.com> wrote:
> I posted a week ago and haven't heard anything.
I was on vacations last week.
> How long should I wait before
> posting this? :)
There are a few issues on your patch:
> - else
> + printk(KERN_INFO "%s: /dev/video%d unregistered.\n", MODULE_NAME,
> dev->vfd->minor);
Your patch got word wrapped. So, it didn't apply.
> + }
> + else {
CodingStyle is wrong. It should be:
} else {
(at the same line)
Also, on some places, you used space, instead of tabs.
Please, check your patch with checkpatch.pl (or, inside Mercurial, make
checkpatch) before sending it.
Also, be sure that your emailer won't add line breaks at the wrong places.
> } else
> printk(KERN_INFO "Video Technology Magazine Virtual Video "
> - "Capture Board successfully loaded.\n");
> + "Capture Board ver %u.%u.%u successfully loaded.\n",
> + (VIVI_VERSION >> 16) & 0xFF, (VIVI_VERSION >> 8) & 0xFF, VIVI_VERSION &
> 0xFF);
The indentation is very weird here.
Cheers,
Mauro
--
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] 11+ messages in thread
* Re: [patch] vivi: registered as /dev/video%d
2008-05-28 20:37 ` Mauro Carvalho Chehab
@ 2008-05-28 22:03 ` Carl Karsten
2008-05-28 22:59 ` hermann pitton
0 siblings, 1 reply; 11+ messages in thread
From: Carl Karsten @ 2008-05-28 22:03 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: video4linux-list
Mauro Carvalho Chehab wrote:
> On Wed, 28 May 2008 15:15:35 -0500
> Carl Karsten <carl@personnelware.com> wrote:
>
>> I posted a week ago and haven't heard anything.
>
> I was on vacations last week.
>
>> How long should I wait before
>> posting this? :)
>
> There are a few issues on your patch:
>
>> - else
>> + printk(KERN_INFO "%s: /dev/video%d unregistered.\n", MODULE_NAME,
>> dev->vfd->minor);
>
> Your patch got word wrapped. So, it didn't apply.
>
>> + }
>> + else {
>
> CodingStyle is wrong. It should be:
> } else {
>
> (at the same line)
>
> Also, on some places, you used space, instead of tabs.
>
> Please, check your patch with checkpatch.pl (or, inside Mercurial, make
> checkpatch) before sending it.
>
> Also, be sure that your emailer won't add line breaks at the wrong places.
>> } else
>> printk(KERN_INFO "Video Technology Magazine Virtual Video "
>> - "Capture Board successfully loaded.\n");
>> + "Capture Board ver %u.%u.%u successfully loaded.\n",
>> + (VIVI_VERSION >> 16) & 0xFF, (VIVI_VERSION >> 8) & 0xFF, VIVI_VERSION &
>> 0xFF);
Fixed what you mentioned, make checkpatch doesn't report anything now. It was
reporting "warning: line over 80 characters" so now that those are fixed maybe
t-bird won't wrap them.
>
> The indentation is very weird here.
Either the original code was weird ("quoted strings" were lined up) or a side
effect of me using 4 space tabs.
If it still looks odd, I'll be happy to adjust.
------------------------------------------------------
Patch 1:
diff -r 9d04bba82511 linux/drivers/media/video/vivi.c
--- a/linux/drivers/media/video/vivi.c Wed May 14 23:14:04 2008 +0000
+++ b/linux/drivers/media/video/vivi.c Wed May 28 16:51:51 2008 -0500
@@ -48,6 +48,8 @@
#include <linux/freezer.h>
#endif
+#define MODULE_NAME "vivi"
+
/* Wake up at about 30 fps */
#define WAKE_NUMERATOR 30
#define WAKE_DENOMINATOR 1001
@@ -56,7 +58,7 @@
#include "font.h"
#define VIVI_MAJOR_VERSION 0
-#define VIVI_MINOR_VERSION 4
+#define VIVI_MINOR_VERSION 5
#define VIVI_RELEASE 0
#define VIVI_VERSION \
KERNEL_VERSION(VIVI_MAJOR_VERSION, VIVI_MINOR_VERSION, VIVI_RELEASE)
@@ -1086,10 +1088,15 @@ static int vivi_release(void)
list_del(list);
dev = list_entry(list, struct vivi_dev, vivi_devlist);
- if (-1 != dev->vfd->minor)
+ if (-1 != dev->vfd->minor) {
video_unregister_device(dev->vfd);
- else
+ printk(KERN_INFO "%s: /dev/video%d unregistered.\n",
+ MODULE_NAME, dev->vfd->minor);
+ } else {
video_device_release(dev->vfd);
+ printk(KERN_INFO "%s: /dev/video%d released.\n",
+ MODULE_NAME, dev->vfd->minor);
+ }
kfree(dev);
}
@@ -1202,6 +1209,8 @@ static int __init vivi_init(void)
video_nr++;
dev->vfd = vfd;
+ printk(KERN_INFO "%s: V4L2 device registered as /dev/video%d\n",
+ MODULE_NAME, vfd->minor);
}
if (ret < 0) {
@@ -1209,7 +1218,9 @@ static int __init vivi_init(void)
printk(KERN_INFO "Error %d while loading vivi driver\n", ret);
} else
printk(KERN_INFO "Video Technology Magazine Virtual Video "
- "Capture Board successfully loaded.\n");
+ "Capture Board ver %u.%u.%u successfully loaded.\n",
+ (VIVI_VERSION >> 16) & 0xFF, (VIVI_VERSION >> 8) & 0xFF,
+ VIVI_VERSION & 0xFF);
return ret;
}
------------------------------------------------------
Signed-off-by: Carl Karsten <carl@personnelware.com>
Carl K
--
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] 11+ messages in thread
* Re: [patch] vivi: registered as /dev/video%d
2008-05-28 22:03 ` Carl Karsten
@ 2008-05-28 22:59 ` hermann pitton
[not found] ` <483DEB53.40604@personnelware.com>
0 siblings, 1 reply; 11+ messages in thread
From: hermann pitton @ 2008-05-28 22:59 UTC (permalink / raw)
To: Carl Karsten; +Cc: video4linux-list, Mauro Carvalho Chehab
Hi Carl,
Am Mittwoch, den 28.05.2008, 17:03 -0500 schrieb Carl Karsten:
> Mauro Carvalho Chehab wrote:
> > On Wed, 28 May 2008 15:15:35 -0500
> > Carl Karsten <carl@personnelware.com> wrote:
> >
> >> I posted a week ago and haven't heard anything.
> >
> > I was on vacations last week.
> >
> >> How long should I wait before
> >> posting this? :)
> >
> > There are a few issues on your patch:
> >
> >> - else
> >> + printk(KERN_INFO "%s: /dev/video%d unregistered.\n", MODULE_NAME,
> >> dev->vfd->minor);
> >
> > Your patch got word wrapped. So, it didn't apply.
> >
> >> + }
> >> + else {
> >
> > CodingStyle is wrong. It should be:
> > } else {
> >
> > (at the same line)
> >
> > Also, on some places, you used space, instead of tabs.
> >
> > Please, check your patch with checkpatch.pl (or, inside Mercurial, make
> > checkpatch) before sending it.
> >
> > Also, be sure that your emailer won't add line breaks at the wrong places.
> >> } else
> >> printk(KERN_INFO "Video Technology Magazine Virtual Video "
> >> - "Capture Board successfully loaded.\n");
> >> + "Capture Board ver %u.%u.%u successfully loaded.\n",
> >> + (VIVI_VERSION >> 16) & 0xFF, (VIVI_VERSION >> 8) & 0xFF, VIVI_VERSION &
> >> 0xFF);
>
> Fixed what you mentioned, make checkpatch doesn't report anything now. It was
> reporting "warning: line over 80 characters" so now that those are fixed maybe
> t-bird won't wrap them.
your hope is in vain for the one space indent in front of every line
tbird adds. We have that issue already seen with your previous patches
and I told you about, it is a very well known tbird flaw ;)
Please use always attachments with thunderbird.
It is no fun to fix all lines for indentation.
Try to apply your mailed patches yourself, as you should if unsure about
the mailer.
Cheers,
Hermann
> >
> > The indentation is very weird here.
>
>
> Either the original code was weird ("quoted strings" were lined up) or a side
> effect of me using 4 space tabs.
>
> If it still looks odd, I'll be happy to adjust.
>
> ------------------------------------------------------
> Patch 1:
> diff -r 9d04bba82511 linux/drivers/media/video/vivi.c
> --- a/linux/drivers/media/video/vivi.c Wed May 14 23:14:04 2008 +0000
> +++ b/linux/drivers/media/video/vivi.c Wed May 28 16:51:51 2008 -0500
> @@ -48,6 +48,8 @@
> #include <linux/freezer.h>
> #endif
>
> +#define MODULE_NAME "vivi"
> +
> /* Wake up at about 30 fps */
> #define WAKE_NUMERATOR 30
> #define WAKE_DENOMINATOR 1001
> @@ -56,7 +58,7 @@
> #include "font.h"
>
> #define VIVI_MAJOR_VERSION 0
> -#define VIVI_MINOR_VERSION 4
> +#define VIVI_MINOR_VERSION 5
> #define VIVI_RELEASE 0
> #define VIVI_VERSION \
> KERNEL_VERSION(VIVI_MAJOR_VERSION, VIVI_MINOR_VERSION, VIVI_RELEASE)
> @@ -1086,10 +1088,15 @@ static int vivi_release(void)
> list_del(list);
> dev = list_entry(list, struct vivi_dev, vivi_devlist);
>
> - if (-1 != dev->vfd->minor)
> + if (-1 != dev->vfd->minor) {
> video_unregister_device(dev->vfd);
> - else
> + printk(KERN_INFO "%s: /dev/video%d unregistered.\n",
> + MODULE_NAME, dev->vfd->minor);
> + } else {
> video_device_release(dev->vfd);
> + printk(KERN_INFO "%s: /dev/video%d released.\n",
> + MODULE_NAME, dev->vfd->minor);
> + }
>
> kfree(dev);
> }
> @@ -1202,6 +1209,8 @@ static int __init vivi_init(void)
> video_nr++;
>
> dev->vfd = vfd;
> + printk(KERN_INFO "%s: V4L2 device registered as /dev/video%d\n",
> + MODULE_NAME, vfd->minor);
> }
>
> if (ret < 0) {
> @@ -1209,7 +1218,9 @@ static int __init vivi_init(void)
> printk(KERN_INFO "Error %d while loading vivi driver\n", ret);
> } else
> printk(KERN_INFO "Video Technology Magazine Virtual Video "
> - "Capture Board successfully loaded.\n");
> + "Capture Board ver %u.%u.%u successfully loaded.\n",
> + (VIVI_VERSION >> 16) & 0xFF, (VIVI_VERSION >> 8) & 0xFF,
> + VIVI_VERSION & 0xFF);
> return ret;
> }
>
> ------------------------------------------------------
> Signed-off-by: Carl Karsten <carl@personnelware.com>
>
> Carl K
>
--
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] 11+ messages in thread
* Re: [patch] vivi: registered as /dev/video%d
[not found] ` <1212021382.5745.13.camel@pc10.localdom.local>
@ 2008-05-31 3:59 ` Carl Karsten
2008-05-31 6:37 ` Carl Karsten
2008-06-10 0:02 ` Carl Karsten
2 siblings, 0 replies; 11+ messages in thread
From: Carl Karsten @ 2008-05-31 3:59 UTC (permalink / raw)
To: Carl Karsten, video4linux-list
[-- Attachment #1: Type: text/plain, Size: 2313 bytes --]
hermann pitton wrote:
> Am Mittwoch, den 28.05.2008, 18:31 -0500 schrieb Carl Karsten:
>> hermann pitton wrote:
>>> Hi Carl,
>>>
>>> Am Mittwoch, den 28.05.2008, 17:03 -0500 schrieb Carl Karsten:
>>>> Mauro Carvalho Chehab wrote:
>>>>> On Wed, 28 May 2008 15:15:35 -0500
>>>>> Carl Karsten <carl@personnelware.com> wrote:
>>>>>
>>>>>> I posted a week ago and haven't heard anything.
>>>>> I was on vacations last week.
>>>>>
>>>>>> How long should I wait before
>>>>>> posting this? :)
>>>>> There are a few issues on your patch:
>>>>>
>>>>>> - else
>>>>>> + printk(KERN_INFO "%s: /dev/video%d unregistered.\n", MODULE_NAME,
>>>>>> dev->vfd->minor);
>>>>> Your patch got word wrapped. So, it didn't apply.
>>>>>
>>>>>> + }
>>>>>> + else {
>>>>> CodingStyle is wrong. It should be:
>>>>> } else {
>>>>>
>>>>> (at the same line)
>>>>>
>>>>> Also, on some places, you used space, instead of tabs.
>>>>>
>>>>> Please, check your patch with checkpatch.pl (or, inside Mercurial, make
>>>>> checkpatch) before sending it.
>>>>>
>>>>> Also, be sure that your emailer won't add line breaks at the wrong places.
>>>>>> } else
>>>>>> printk(KERN_INFO "Video Technology Magazine Virtual Video "
>>>>>> - "Capture Board successfully loaded.\n");
>>>>>> + "Capture Board ver %u.%u.%u successfully loaded.\n",
>>>>>> + (VIVI_VERSION >> 16) & 0xFF, (VIVI_VERSION >> 8) & 0xFF, VIVI_VERSION &
>>>>>> 0xFF);
>>>> Fixed what you mentioned, make checkpatch doesn't report anything now. It was
>>>> reporting "warning: line over 80 characters" so now that those are fixed maybe
>>>> t-bird won't wrap them.
>>> your hope is in vain for the one space indent in front of every line
>>> tbird adds. We have that issue already seen with your previous patches
>>> and I told you about, it is a very well known tbird flaw ;)
>>>
>>> Please use always attachments with thunderbird.
>>> It is no fun to fix all lines for indentation.
>> Sorry about that - I meant to attach it too.
>>
>> What is the proper way to supply:
>>
>> Signed-off-by: Carl Karsten <carl@personnelware.com>
>>
>> Carl K
>
> Hi,
>
> no, at least I did not receive it as attachment.
>
> Last known status, years back here, is that tbird attachments are always
> OK and unbroken.
>
trying again.
Carl K
[-- Attachment #2: vivi.c.diff --]
[-- Type: text/x-diff, Size: 1734 bytes --]
diff -r 9d04bba82511 linux/drivers/media/video/vivi.c
--- a/linux/drivers/media/video/vivi.c Wed May 14 23:14:04 2008 +0000
+++ b/linux/drivers/media/video/vivi.c Thu May 29 14:16:27 2008 -0500
@@ -48,6 +48,8 @@
#include <linux/freezer.h>
#endif
+#define MODULE_NAME "vivi"
+
/* Wake up at about 30 fps */
#define WAKE_NUMERATOR 30
#define WAKE_DENOMINATOR 1001
@@ -56,7 +58,7 @@
#include "font.h"
#define VIVI_MAJOR_VERSION 0
-#define VIVI_MINOR_VERSION 4
+#define VIVI_MINOR_VERSION 5
#define VIVI_RELEASE 0
#define VIVI_VERSION \
KERNEL_VERSION(VIVI_MAJOR_VERSION, VIVI_MINOR_VERSION, VIVI_RELEASE)
@@ -1086,10 +1088,15 @@ static int vivi_release(void)
list_del(list);
dev = list_entry(list, struct vivi_dev, vivi_devlist);
- if (-1 != dev->vfd->minor)
+ if (-1 != dev->vfd->minor) {
video_unregister_device(dev->vfd);
- else
+ printk(KERN_INFO "%s: /dev/video%d unregistered.\n",
+ MODULE_NAME, dev->vfd->minor);
+ } else {
video_device_release(dev->vfd);
+ printk(KERN_INFO "%s: /dev/video%d released.\n",
+ MODULE_NAME, dev->vfd->minor);
+ }
kfree(dev);
}
@@ -1202,6 +1209,8 @@ static int __init vivi_init(void)
video_nr++;
dev->vfd = vfd;
+ printk(KERN_INFO "%s: V4L2 device registered as /dev/video%d\n",
+ MODULE_NAME, vfd->minor);
}
if (ret < 0) {
@@ -1209,7 +1218,9 @@ static int __init vivi_init(void)
printk(KERN_INFO "Error %d while loading vivi driver\n", ret);
} else
printk(KERN_INFO "Video Technology Magazine Virtual Video "
- "Capture Board successfully loaded.\n");
+ "Capture Board ver %u.%u.%u successfully loaded.\n",
+ (VIVI_VERSION >> 16) & 0xFF, (VIVI_VERSION >> 8) & 0xFF,
+ VIVI_VERSION & 0xFF);
return ret;
}
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
--
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] 11+ messages in thread
* Re: [patch] vivi: registered as /dev/video%d
[not found] ` <1212021382.5745.13.camel@pc10.localdom.local>
2008-05-31 3:59 ` Carl Karsten
@ 2008-05-31 6:37 ` Carl Karsten
2008-06-01 4:38 ` hermann pitton
2008-06-10 0:02 ` Carl Karsten
2 siblings, 1 reply; 11+ messages in thread
From: Carl Karsten @ 2008-05-31 6:37 UTC (permalink / raw)
To: video4linux-list, Carl Karsten
[-- Attachment #1: Type: text/plain, Size: 2167 bytes --]
hermann pitton wrote:
> Am Mittwoch, den 28.05.2008, 18:31 -0500 schrieb Carl Karsten:
>> hermann pitton wrote:
>>> Hi Carl,
>>>
>>> Am Mittwoch, den 28.05.2008, 17:03 -0500 schrieb Carl Karsten:
>>>> Mauro Carvalho Chehab wrote:
>>>>> On Wed, 28 May 2008 15:15:35 -0500
>>>>> Carl Karsten <carl@personnelware.com> wrote:
>>>>>
>>>>>> I posted a week ago and haven't heard anything.
>>>>> I was on vacations last week.
>>>>>
>>>>>> How long should I wait before
>>>>>> posting this? :)
>>>>> There are a few issues on your patch:
>>>>>
>>>>>> - else
>>>>>> + printk(KERN_INFO "%s: /dev/video%d unregistered.\n", MODULE_NAME,
>>>>>> dev->vfd->minor);
>>>>> Your patch got word wrapped. So, it didn't apply.
>>>>>
>>>>>> + }
>>>>>> + else {
>>>>> CodingStyle is wrong. It should be:
>>>>> } else {
>>>>>
>>>>> (at the same line)
>>>>>
>>>>> Also, on some places, you used space, instead of tabs.
>>>>>
>>>>> Please, check your patch with checkpatch.pl (or, inside Mercurial, make
>>>>> checkpatch) before sending it.
>>>>>
>>>>> Also, be sure that your emailer won't add line breaks at the wrong places.
>>>>>> } else
>>>>>> printk(KERN_INFO "Video Technology Magazine Virtual Video "
>>>>>> - "Capture Board successfully loaded.\n");
>>>>>> + "Capture Board ver %u.%u.%u successfully loaded.\n",
>>>>>> + (VIVI_VERSION >> 16) & 0xFF, (VIVI_VERSION >> 8) & 0xFF, VIVI_VERSION &
>>>>>> 0xFF);
>>>> Fixed what you mentioned, make checkpatch doesn't report anything now. It was
>>>> reporting "warning: line over 80 characters" so now that those are fixed maybe
>>>> t-bird won't wrap them.
>>> your hope is in vain for the one space indent in front of every line
>>> tbird adds. We have that issue already seen with your previous patches
>>> and I told you about, it is a very well known tbird flaw ;)
>>>
>>> Please use always attachments with thunderbird.
>>> It is no fun to fix all lines for indentation.
>> Sorry about that - I meant to attach it too.
>>
>> What is the proper way to supply:
>>
>> Signed-off-by: Carl Karsten <carl@personnelware.com>
>>
>> Carl K
list ate .diff, trying .patch.
Carl K
[-- Attachment #2: vivi.c.patch --]
[-- Type: text/x-diff, Size: 1734 bytes --]
diff -r 9d04bba82511 linux/drivers/media/video/vivi.c
--- a/linux/drivers/media/video/vivi.c Wed May 14 23:14:04 2008 +0000
+++ b/linux/drivers/media/video/vivi.c Thu May 29 14:16:27 2008 -0500
@@ -48,6 +48,8 @@
#include <linux/freezer.h>
#endif
+#define MODULE_NAME "vivi"
+
/* Wake up at about 30 fps */
#define WAKE_NUMERATOR 30
#define WAKE_DENOMINATOR 1001
@@ -56,7 +58,7 @@
#include "font.h"
#define VIVI_MAJOR_VERSION 0
-#define VIVI_MINOR_VERSION 4
+#define VIVI_MINOR_VERSION 5
#define VIVI_RELEASE 0
#define VIVI_VERSION \
KERNEL_VERSION(VIVI_MAJOR_VERSION, VIVI_MINOR_VERSION, VIVI_RELEASE)
@@ -1086,10 +1088,15 @@ static int vivi_release(void)
list_del(list);
dev = list_entry(list, struct vivi_dev, vivi_devlist);
- if (-1 != dev->vfd->minor)
+ if (-1 != dev->vfd->minor) {
video_unregister_device(dev->vfd);
- else
+ printk(KERN_INFO "%s: /dev/video%d unregistered.\n",
+ MODULE_NAME, dev->vfd->minor);
+ } else {
video_device_release(dev->vfd);
+ printk(KERN_INFO "%s: /dev/video%d released.\n",
+ MODULE_NAME, dev->vfd->minor);
+ }
kfree(dev);
}
@@ -1202,6 +1209,8 @@ static int __init vivi_init(void)
video_nr++;
dev->vfd = vfd;
+ printk(KERN_INFO "%s: V4L2 device registered as /dev/video%d\n",
+ MODULE_NAME, vfd->minor);
}
if (ret < 0) {
@@ -1209,7 +1218,9 @@ static int __init vivi_init(void)
printk(KERN_INFO "Error %d while loading vivi driver\n", ret);
} else
printk(KERN_INFO "Video Technology Magazine Virtual Video "
- "Capture Board successfully loaded.\n");
+ "Capture Board ver %u.%u.%u successfully loaded.\n",
+ (VIVI_VERSION >> 16) & 0xFF, (VIVI_VERSION >> 8) & 0xFF,
+ VIVI_VERSION & 0xFF);
return ret;
}
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
--
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] 11+ messages in thread
* Re: [patch] vivi: registered as /dev/video%d
2008-05-31 6:37 ` Carl Karsten
@ 2008-06-01 4:38 ` hermann pitton
0 siblings, 0 replies; 11+ messages in thread
From: hermann pitton @ 2008-06-01 4:38 UTC (permalink / raw)
To: Carl Karsten; +Cc: video4linux-list
Am Samstag, den 31.05.2008, 01:37 -0500 schrieb Carl Karsten:
> hermann pitton wrote:
> > Am Mittwoch, den 28.05.2008, 18:31 -0500 schrieb Carl Karsten:
> >> hermann pitton wrote:
> >>> Hi Carl,
> >>>
> >>> Am Mittwoch, den 28.05.2008, 17:03 -0500 schrieb Carl Karsten:
> >>>> Mauro Carvalho Chehab wrote:
> >>>>> On Wed, 28 May 2008 15:15:35 -0500
> >>>>> Carl Karsten <carl@personnelware.com> wrote:
> >>>>>
> >>>>>> I posted a week ago and haven't heard anything.
> >>>>> I was on vacations last week.
> >>>>>
> >>>>>> How long should I wait before
> >>>>>> posting this? :)
> >>>>> There are a few issues on your patch:
> >>>>>
> >>>>>> - else
> >>>>>> + printk(KERN_INFO "%s: /dev/video%d unregistered.\n", MODULE_NAME,
> >>>>>> dev->vfd->minor);
> >>>>> Your patch got word wrapped. So, it didn't apply.
> >>>>>
> >>>>>> + }
> >>>>>> + else {
> >>>>> CodingStyle is wrong. It should be:
> >>>>> } else {
> >>>>>
> >>>>> (at the same line)
> >>>>>
> >>>>> Also, on some places, you used space, instead of tabs.
> >>>>>
> >>>>> Please, check your patch with checkpatch.pl (or, inside Mercurial, make
> >>>>> checkpatch) before sending it.
> >>>>>
> >>>>> Also, be sure that your emailer won't add line breaks at the wrong places.
> >>>>>> } else
> >>>>>> printk(KERN_INFO "Video Technology Magazine Virtual Video "
> >>>>>> - "Capture Board successfully loaded.\n");
> >>>>>> + "Capture Board ver %u.%u.%u successfully loaded.\n",
> >>>>>> + (VIVI_VERSION >> 16) & 0xFF, (VIVI_VERSION >> 8) & 0xFF, VIVI_VERSION &
> >>>>>> 0xFF);
> >>>> Fixed what you mentioned, make checkpatch doesn't report anything now. It was
> >>>> reporting "warning: line over 80 characters" so now that those are fixed maybe
> >>>> t-bird won't wrap them.
> >>> your hope is in vain for the one space indent in front of every line
> >>> tbird adds. We have that issue already seen with your previous patches
> >>> and I told you about, it is a very well known tbird flaw ;)
> >>>
> >>> Please use always attachments with thunderbird.
> >>> It is no fun to fix all lines for indentation.
> >> Sorry about that - I meant to attach it too.
> >>
> >> What is the proper way to supply:
> >>
> >> Signed-off-by: Carl Karsten <carl@personnelware.com>
> >>
> >> Carl K
>
> list ate .diff, trying .patch.
>
> Carl K
>
Hi Carl,
patch is there now and others seem to come through with .diff stuff.
Always send to Mauro directly or at least maintainers list too.
Under the current load Mauro has, the video4linux list only is no safe
place for patches anymore.
Cheers,
Hermann
--
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] 11+ messages in thread
* Re: [patch] vivi: registered as /dev/video%d
[not found] ` <1212021382.5745.13.camel@pc10.localdom.local>
2008-05-31 3:59 ` Carl Karsten
2008-05-31 6:37 ` Carl Karsten
@ 2008-06-10 0:02 ` Carl Karsten
2 siblings, 0 replies; 11+ messages in thread
From: Carl Karsten @ 2008-06-10 0:02 UTC (permalink / raw)
To: video4linux-list; +Cc: Mauro Carvalho Chehab
[-- Attachment #1: Type: text/plain, Size: 2522 bytes --]
hermann pitton wrote:
> Am Mittwoch, den 28.05.2008, 18:31 -0500 schrieb Carl Karsten:
>> hermann pitton wrote:
>>> Hi Carl,
>>>
>>> Am Mittwoch, den 28.05.2008, 17:03 -0500 schrieb Carl Karsten:
>>>> Mauro Carvalho Chehab wrote:
>>>>> On Wed, 28 May 2008 15:15:35 -0500
>>>>> Carl Karsten <carl@personnelware.com> wrote:
>>>>>
>>>>>> I posted a week ago and haven't heard anything.
>>>>> I was on vacations last week.
>>>>>
>>>>>> How long should I wait before
>>>>>> posting this? :)
>>>>> There are a few issues on your patch:
>>>>>
>>>>>> - else
>>>>>> + printk(KERN_INFO "%s: /dev/video%d unregistered.\n", MODULE_NAME,
>>>>>> dev->vfd->minor);
>>>>> Your patch got word wrapped. So, it didn't apply.
>>>>>
>>>>>> + }
>>>>>> + else {
>>>>> CodingStyle is wrong. It should be:
>>>>> } else {
>>>>>
>>>>> (at the same line)
>>>>>
>>>>> Also, on some places, you used space, instead of tabs.
>>>>>
>>>>> Please, check your patch with checkpatch.pl (or, inside Mercurial, make
>>>>> checkpatch) before sending it.
>>>>>
>>>>> Also, be sure that your emailer won't add line breaks at the wrong places.
>>>>>> } else
>>>>>> printk(KERN_INFO "Video Technology Magazine Virtual Video "
>>>>>> - "Capture Board successfully loaded.\n");
>>>>>> + "Capture Board ver %u.%u.%u successfully loaded.\n",
>>>>>> + (VIVI_VERSION >> 16) & 0xFF, (VIVI_VERSION >> 8) & 0xFF, VIVI_VERSION &
>>>>>> 0xFF);
>>>> Fixed what you mentioned, make checkpatch doesn't report anything now. It was
>>>> reporting "warning: line over 80 characters" so now that those are fixed maybe
>>>> t-bird won't wrap them.
>>> your hope is in vain for the one space indent in front of every line
>>> tbird adds. We have that issue already seen with your previous patches
>>> and I told you about, it is a very well known tbird flaw ;)
>>>
>>> Please use always attachments with thunderbird.
>>> It is no fun to fix all lines for indentation.
>> Sorry about that - I meant to attach it too.
>>
>> What is the proper way to supply:
>>
>> Signed-off-by: Carl Karsten <carl@personnelware.com>
>>
>> Carl K
>
> Hi,
>
> no, at least I did not receive it as attachment.
>
> Last known status, years back here, is that tbird attachments are always
> OK and unbroken.
>
Same patch I have been trying to correctly submit, Sorry all for posts to the
list, just trying to do it right so the busy people don't have to fuss with
fixing it.
Signed-off-by: Carl Karsten <carl@personnelware.com>
Carl K
[-- Attachment #2: vivi.c.diff --]
[-- Type: text/x-diff, Size: 1735 bytes --]
diff -r 9d04bba82511 linux/drivers/media/video/vivi.c
--- a/linux/drivers/media/video/vivi.c Wed May 14 23:14:04 2008 +0000
+++ b/linux/drivers/media/video/vivi.c Thu May 29 14:16:27 2008 -0500
@@ -48,6 +48,8 @@
#include <linux/freezer.h>
#endif
+#define MODULE_NAME "vivi"
+
/* Wake up at about 30 fps */
#define WAKE_NUMERATOR 30
#define WAKE_DENOMINATOR 1001
@@ -56,7 +58,7 @@
#include "font.h"
#define VIVI_MAJOR_VERSION 0
-#define VIVI_MINOR_VERSION 4
+#define VIVI_MINOR_VERSION 5
#define VIVI_RELEASE 0
#define VIVI_VERSION \
KERNEL_VERSION(VIVI_MAJOR_VERSION, VIVI_MINOR_VERSION, VIVI_RELEASE)
@@ -1086,10 +1088,15 @@ static int vivi_release(void)
list_del(list);
dev = list_entry(list, struct vivi_dev, vivi_devlist);
- if (-1 != dev->vfd->minor)
+ if (-1 != dev->vfd->minor) {
video_unregister_device(dev->vfd);
- else
+ printk(KERN_INFO "%s: /dev/video%d unregistered.\n",
+ MODULE_NAME, dev->vfd->minor);
+ } else {
video_device_release(dev->vfd);
+ printk(KERN_INFO "%s: /dev/video%d released.\n",
+ MODULE_NAME, dev->vfd->minor);
+ }
kfree(dev);
}
@@ -1202,6 +1209,8 @@ static int __init vivi_init(void)
video_nr++;
dev->vfd = vfd;
+ printk(KERN_INFO "%s: V4L2 device registered as /dev/video%d\n",
+ MODULE_NAME, vfd->minor);
}
if (ret < 0) {
@@ -1209,7 +1218,9 @@ static int __init vivi_init(void)
printk(KERN_INFO "Error %d while loading vivi driver\n", ret);
} else
printk(KERN_INFO "Video Technology Magazine Virtual Video "
- "Capture Board successfully loaded.\n");
+ "Capture Board ver %u.%u.%u successfully loaded.\n",
+ (VIVI_VERSION >> 16) & 0xFF, (VIVI_VERSION >> 8) & 0xFF,
+ VIVI_VERSION & 0xFF);
return ret;
}
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
--
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] 11+ messages in thread
end of thread, other threads:[~2008-06-10 0:03 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-01 0:18 [patch] vivi: registered as /dev/video%d Carl Karsten
2008-03-02 6:34 ` Carl Karsten
2008-03-04 14:25 ` Mauro Carvalho Chehab
2008-05-28 20:15 ` Carl Karsten
2008-05-28 20:37 ` Mauro Carvalho Chehab
2008-05-28 22:03 ` Carl Karsten
2008-05-28 22:59 ` hermann pitton
[not found] ` <483DEB53.40604@personnelware.com>
[not found] ` <1212021382.5745.13.camel@pc10.localdom.local>
2008-05-31 3:59 ` Carl Karsten
2008-05-31 6:37 ` Carl Karsten
2008-06-01 4:38 ` hermann pitton
2008-06-10 0:02 ` Carl Karsten
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox