media: imx319: fix wrong order in test pattern menus
Subsystems (4)
PATCH 1/2 media: imx319: fix wrong order in test pattern menus
From: Bingbu Cao <[email protected]>
current imx319 test pattern order in ctrl menu
is not correct, this patch fixes it.
--- drivers/media/i2c/imx319.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/imx319.c +1 -1
@@ -1648,8 +1648,8 @@ struct imx319 {static const char *const imx319_test_pattern_menu[] = {"Disabled" , -"100% color bars" ,"Solid color" , +"100% color bars" ,"Fade to gray color bars" ,"PN9" };
Signature · 1 line
1.9.1
PATCH 2/2 media: imx355: fix wrong order in test pattern menus
From: Bingbu Cao <[email protected]>
current imx355 test pattern order in ctrl menu
is not correct, this patch fixes it.
--- drivers/media/i2c/imx355.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/i2c/imx355.c +1 -1
@@ -876,8 +876,8 @@ struct imx355 {static const char *const imx355_test_pattern_menu[] = {"Disabled" , -"100% color bars" ,"Solid color" , +"100% color bars" ,"Fade to gray color bars" ,"PN9" };
Signature · 1 line
1.9.1
Sakari Ailus
maintainerRe: [PATCH 2/2] media: imx355: fix wrong order in test pattern menus
Hi Bing Bu,
Quoted 15 lines · On Mon, Nov 26, 2018 at 03:43:34PM +0800, [email protected] wrote:
From: Bingbu Cao <[email protected]>
current imx355 test pattern order in ctrl menu
is not correct, this patch fixes it.Signed-off-by Bingbu Cao <[email protected]>--- drivers/media/i2c/imx355.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/i2c/imx355.c +0
-0
drivers/media/i2c/imx355.c struct imx355 { · line 883
Quoted 9 lines
drivers/media/i2c/imx355.c +1
-1@@ -876,8 +876,8 @@ struct imx355 {static const char *const imx355_test_pattern_menu[] = {"Disabled" , -"100% color bars" ,"Solid color" , +"100% color bars" ,"Fade to gray color bars" ,"PN9" };
While at it, could you use the existing test pattern naming as well for the drivers? That could be a separate patch.
Quoted 1 line
From
drivers/media/i2c/smiapp/smiapp-core.c:
static const char * const smiapp_test_patterns[] = {
"Disabled",
"Solid Colour", "Eight Vertical Colour Bars",
"Colour Bars With Fade to Grey",
"Pseudorandom Sequence (PN9)",
};
It's not strictly necessary from interface point of view, but for the user space it'd be good to align the naming.
Signature · 4 lines
Regards, Sakari Ailus [email protected]
Re: [PATCH 2/2] media: imx355: fix wrong order in test pattern menus
Quoted 19 lines · Sakari Ailus
Hi Bing Bu,
Quoted 16 lines · On Mon, Nov 26, 2018 at 03:43:34PM +0800, [email protected] wrote:
From: Bingbu Cao <[email protected]>
current imx355 test pattern order in ctrl menu
is not correct, this patch fixes it.Signed-off-by Bingbu Cao <[email protected]>--- drivers/media/i2c/imx355.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/i2c/imx355.c +0
-0@@ -876,8 +876,8 @@ struct imx355 {
Quoted 10 lines
drivers/media/i2c/imx355.c struct imx355 { · line 883
Quoted 8 lines
drivers/media/i2c/imx355.c +1
-1static const char *const imx355_test_pattern_menu[] = {"Disabled" , -"100% color bars" ,"Solid color" , +"100% color bars" ,"Fade to gray color bars" ,"PN9" };While at it, could you use the existing test pattern naming as well for the drivers? That could be a separate patch.
Good point, thanks.
I am trying to check whether all the existing Sony camera sensors use same test pattern definition, I can put them together.
Quoted 14 lines
Quoted 2 lines
From
drivers/media/i2c/smiapp/smiapp-core.c:static const char * const smiapp_test_patterns[] = { "Disabled", "Solid Colour","Eight Vertical Colour Bars",
"Colour Bars With Fade to Grey",
"Pseudorandom Sequence (PN9)",
};It's not strictly necessary from interface point of view, but for the user space it'd be good to align the naming.
Re: [PATCH 2/2] media: imx355: fix wrong order in test pattern menus
In reply to Sakari AilusQuoted 35 lines · Sakari Ailus
Hi Bing Bu,
Quoted 15 lines · On Mon, Nov 26, 2018 at 03:43:34PM +0800, [email protected] wrote:
From: Bingbu Cao <[email protected]>
current imx355 test pattern order in ctrl menu
is not correct, this patch fixes it.Signed-off-by Bingbu Cao <[email protected]>--- drivers/media/i2c/imx355.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/i2c/imx355.c +0
-0drivers/media/i2c/imx355.c struct imx355 { · line 883
Quoted 9 lines
drivers/media/i2c/imx355.c +1
-1@@ -876,8 +876,8 @@ struct imx355 {static const char *const imx355_test_pattern_menu[] = {"Disabled" , -"100% color bars" ,"Solid color" , +"100% color bars" ,"Fade to gray color bars" ,"PN9" };While at it, could you use the existing test pattern naming as well for the drivers? That could be a separate patch.
Quoted 1 line
From
drivers/media/i2c/smiapp/smiapp-core.c:static const char * const smiapp_test_patterns[] = { "Disabled", "Solid Colour",
Quoted 7 lines
"Eight Vertical Colour Bars",
"Colour Bars With Fade to Grey",
"Pseudorandom Sequence (PN9)",
};It's not strictly necessary from interface point of view, but for the user space it'd be good to align the naming.
Sakari, ask a question that not really related to this patch.
I am wondering whether there are some standardization for the camera sensor pattern generator.
Currently there are varied patterns and every vendor has its own pattern types.
Quoted 1 line
Re: [PATCH 2/2] media: imx355: fix wrong order in test pattern menus
Quoted 42 lines · Bingbu Cao
Quoted 39 lines · Sakari Ailus
Hi Bing Bu,
Quoted 15 lines · On Mon, Nov 26, 2018 at 03:43:34PM +0800, [email protected] wrote:
From: Bingbu Cao <[email protected]>
current imx355 test pattern order in ctrl menu
is not correct, this patch fixes it.Signed-off-by Bingbu Cao <[email protected]>--- drivers/media/i2c/imx355.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/media/i2c/imx355.c +0
-0drivers/media/i2c/imx355.c struct imx355 { · line 882
Quoted 8 lines
drivers/media/i2c/imx355.c +1
-1@@ -876,8 +876,8 @@ struct imx355 {static const char *const imx355_test_pattern_menu[] = {"Disabled" , -"100% color bars" ,"Solid color" , +"100% color bars" ,"Fade to gray color bars" ,"PN9" };While at it, could you use the existing test pattern naming as well for the drivers? That could be a separate patch.
Quoted 1 line
From
drivers/media/i2c/smiapp/smiapp-core.c:static const char * const smiapp_test_patterns[] = { "Disabled", "Solid Colour","Eight Vertical Colour Bars",
"Colour Bars With Fade to Grey",
"Pseudorandom Sequence (PN9)",
};
Quoted 6 lines
Quoted 2 lines
It's not strictly necessary from interface point of view, but for the user space it'd be good to align the naming.
Sakari, ask a question that not really related to this patch.
I am wondering whether there are some standardization for the camera sensor pattern generator.
Currently there are varied patterns and every vendor has its own pattern types.
Some vendors (and some models) do have their specific patterns, but if you look at a bunch of drivers, these ones repeat over and over. That's why I think it'd make sense to have the menu entries aligned.
Signature · 2 lines
Sakari Ailus e-mail: [email protected]