diff mbox

Possible omission in v4l2-common.c?

Message ID de8cad4d0903030450qf4063f1r9e4e53f5f83f1763@mail.gmail.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Brandon Jenkins March 3, 2009, 12:50 p.m. UTC
Hello all,

I was upgrading drivers this morning to capture the latest changes for
the cx18 and I received a merge conflict in v4l2-common.c. In my
system, 1 HDPVR and 3 CX18s. The HDPVR sources are 5 weeks old from
their last sync up but contain:

case V4L2_CID_SHARPNESS:

The newer sources do not, but still have reference to sharpness at
line 420: case V4L2_CID_SHARPNESS:                return "Sharpness";

Because I don't know which way the code is going (is sharpness in or
out) I can't submit a patch, but thought I would raise here. Diff
below was pulled from clean clone of v4l-dvb tree.

Thanks,

Brandon

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

Comments

Hans Verkuil March 3, 2009, 9:18 p.m. UTC | #1
On Tuesday 03 March 2009 13:50:30 Brandon Jenkins wrote:
> Hello all,
>
> I was upgrading drivers this morning to capture the latest changes for
> the cx18 and I received a merge conflict in v4l2-common.c. In my
> system, 1 HDPVR and 3 CX18s. The HDPVR sources are 5 weeks old from
> their last sync up but contain:
>
> case V4L2_CID_SHARPNESS:
>
> The newer sources do not, but still have reference to sharpness at
> line 420: case V4L2_CID_SHARPNESS:                return "Sharpness";
>
> Because I don't know which way the code is going (is sharpness in or
> out) I can't submit a patch, but thought I would raise here. Diff
> below was pulled from clean clone of v4l-dvb tree.

Sharpness is definitely in. This is a bug, please submit this patch with a 
Signed-off-by line and I'll get it merged.

Thanks,

	Hans

> Thanks,
>
> Brandon
>
> diff -r 91f9c6c451f7 linux/drivers/media/video/v4l2-common.c
> --- a/linux/drivers/media/video/v4l2-common.c	Mon Mar 02 09:39:13 2009
> -0300 +++ b/linux/drivers/media/video/v4l2-common.c	Tue Mar 03 07:44:58
> 2009 -0500 @@ -567,6 +567,7 @@
>  	case V4L2_CID_CONTRAST:
>  	case V4L2_CID_SATURATION:
>  	case V4L2_CID_HUE:
> +	case V4L2_CID_SHARPNESS:
>  	case V4L2_CID_RED_BALANCE:
>  	case V4L2_CID_BLUE_BALANCE:
>  	case V4L2_CID_GAMMA:
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Janne Grunau March 3, 2009, 10:26 p.m. UTC | #2
Hi,

On Tuesday 03 March 2009 13:50:30 Brandon Jenkins wrote:
>
> I was upgrading drivers this morning to capture the latest changes
> for the cx18 and I received a merge conflict in v4l2-common.c. In my
> system, 1 HDPVR and 3 CX18s. The HDPVR sources are 5 weeks old from
> their last sync up but contain:
>
> case V4L2_CID_SHARPNESS:
>
> The newer sources do not, but still have reference to sharpness at
> line 420: case V4L2_CID_SHARPNESS:                return "Sharpness";
>
> Because I don't know which way the code is going (is sharpness in or
> out) I can't submit a patch, but thought I would raise here. Diff
> below was pulled from clean clone of v4l-dvb tree.

That's seems to be a merge issue on your side. V4L2_CID_SHARPNESS was 
afaik never handled in v4l2_ctrl_query_fill().

I pushed a correctly merge hdpvr driver.

Janne
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Janne Grunau March 3, 2009, 10:29 p.m. UTC | #3
On Tuesday 03 March 2009 22:18:55 Hans Verkuil wrote:
> On Tuesday 03 March 2009 13:50:30 Brandon Jenkins wrote:
> > Hello all,
> >
> > I was upgrading drivers this morning to capture the latest changes
> > for the cx18 and I received a merge conflict in v4l2-common.c. In
> > my system, 1 HDPVR and 3 CX18s. The HDPVR sources are 5 weeks old
> > from their last sync up but contain:
> >
> > case V4L2_CID_SHARPNESS:
> >
> > The newer sources do not, but still have reference to sharpness at
> > line 420: case V4L2_CID_SHARPNESS:                return
> > "Sharpness";
> >
> > Because I don't know which way the code is going (is sharpness in
> > or out) I can't submit a patch, but thought I would raise here.
> > Diff below was pulled from clean clone of v4l-dvb tree.
>
> Sharpness is definitely in. This is a bug, please submit this patch
> with a Signed-off-by line and I'll get it merged.

It is and afaik was never handled in v4l2_ctrl_query_fill(), the hdpvr 
tree adds that. Since I intend request the merge of the driver in a 
couple of days a seperate patch shouldn't be needed.

janne
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Brandon Jenkins March 4, 2009, 1:15 a.m. UTC | #4
On Tue, Mar 3, 2009 at 5:29 PM, Janne Grunau <j@jannau.net> wrote:
> On Tuesday 03 March 2009 22:18:55 Hans Verkuil wrote:
>> On Tuesday 03 March 2009 13:50:30 Brandon Jenkins wrote:
>> > Hello all,
>> >
>> > I was upgrading drivers this morning to capture the latest changes
>> > for the cx18 and I received a merge conflict in v4l2-common.c. In
>> > my system, 1 HDPVR and 3 CX18s. The HDPVR sources are 5 weeks old
>> > from their last sync up but contain:
>> >
>> > case V4L2_CID_SHARPNESS:
>> >
>> > The newer sources do not, but still have reference to sharpness at
>> > line 420: case V4L2_CID_SHARPNESS:                return
>> > "Sharpness";
>> >
>> > Because I don't know which way the code is going (is sharpness in
>> > or out) I can't submit a patch, but thought I would raise here.
>> > Diff below was pulled from clean clone of v4l-dvb tree.
>>
>> Sharpness is definitely in. This is a bug, please submit this patch
>> with a Signed-off-by line and I'll get it merged.
>
> It is and afaik was never handled in v4l2_ctrl_query_fill(), the hdpvr
> tree adds that. Since I intend request the merge of the driver in a
> couple of days a seperate patch shouldn't be needed.
>
> janne
>

This is interesting to me. I attempted to merge from a clean clone and
pull this morning. The only file which failed was v4l2-common.c.

Here's the fail marker:

<<<<<<< local
        case V4L2_CID_SHARPNESS:
=======
        case V4L2_CID_RED_BALANCE:
        case V4L2_CID_BLUE_BALANCE:
        case V4L2_CID_GAMMA:
>>>>>>> other

To produce this I did this from a clean start this morning:

hg clone http://hg.jannau.net/hdpvr/
cd hdpvr
hg pull http://linuxtv.org/hg/v4l-dvb/
hg merge
hg commit

I did the very same thing last week as well without a fail.

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

Patch

diff -r 91f9c6c451f7 linux/drivers/media/video/v4l2-common.c
--- a/linux/drivers/media/video/v4l2-common.c	Mon Mar 02 09:39:13 2009 -0300
+++ b/linux/drivers/media/video/v4l2-common.c	Tue Mar 03 07:44:58 2009 -0500
@@ -567,6 +567,7 @@ 
 	case V4L2_CID_CONTRAST:
 	case V4L2_CID_SATURATION:
 	case V4L2_CID_HUE:
+	case V4L2_CID_SHARPNESS:
 	case V4L2_CID_RED_BALANCE:
 	case V4L2_CID_BLUE_BALANCE:
 	case V4L2_CID_GAMMA: