mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
media: staging: atomisp: i2c: Disable non-preview configurations
These sensor drivers have use case specific mode lists. This is currently not used nor there is a standard API for selecting the mode list. Disable configurations for non-preview modes until configuration selection is improved so that all the configurations are always usable. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> [hans.verkuil@cisco.com: clarify that this functionality it currently unused] Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
f97b8e6baa
commit
718df0a814
|
|
@ -574,6 +574,11 @@ static struct gc2235_resolution gc2235_res_preview[] = {
|
|||
};
|
||||
#define N_RES_PREVIEW (ARRAY_SIZE(gc2235_res_preview))
|
||||
|
||||
/*
|
||||
* Disable non-preview configurations until the configuration selection is
|
||||
* improved.
|
||||
*/
|
||||
#if 0
|
||||
static struct gc2235_resolution gc2235_res_still[] = {
|
||||
{
|
||||
.desc = "gc2235_1600_900_30fps",
|
||||
|
|
@ -658,6 +663,7 @@ static struct gc2235_resolution gc2235_res_video[] = {
|
|||
|
||||
};
|
||||
#define N_RES_VIDEO (ARRAY_SIZE(gc2235_res_video))
|
||||
#endif
|
||||
|
||||
static struct gc2235_resolution *gc2235_res = gc2235_res_preview;
|
||||
static unsigned long N_RES = N_RES_PREVIEW;
|
||||
|
|
|
|||
|
|
@ -1148,6 +1148,11 @@ struct ov2722_resolution ov2722_res_preview[] = {
|
|||
};
|
||||
#define N_RES_PREVIEW (ARRAY_SIZE(ov2722_res_preview))
|
||||
|
||||
/*
|
||||
* Disable non-preview configurations until the configuration selection is
|
||||
* improved.
|
||||
*/
|
||||
#if 0
|
||||
struct ov2722_resolution ov2722_res_still[] = {
|
||||
{
|
||||
.desc = "ov2722_480P_30fps",
|
||||
|
|
@ -1250,6 +1255,7 @@ struct ov2722_resolution ov2722_res_video[] = {
|
|||
},
|
||||
};
|
||||
#define N_RES_VIDEO (ARRAY_SIZE(ov2722_res_video))
|
||||
#endif
|
||||
|
||||
static struct ov2722_resolution *ov2722_res = ov2722_res_preview;
|
||||
static unsigned long N_RES = N_RES_PREVIEW;
|
||||
|
|
|
|||
|
|
@ -1147,6 +1147,11 @@ struct ov5693_resolution ov5693_res_preview[] = {
|
|||
};
|
||||
#define N_RES_PREVIEW (ARRAY_SIZE(ov5693_res_preview))
|
||||
|
||||
/*
|
||||
* Disable non-preview configurations until the configuration selection is
|
||||
* improved.
|
||||
*/
|
||||
#if 0
|
||||
struct ov5693_resolution ov5693_res_still[] = {
|
||||
{
|
||||
.desc = "ov5693_736x496_30fps",
|
||||
|
|
@ -1364,6 +1369,7 @@ struct ov5693_resolution ov5693_res_video[] = {
|
|||
},
|
||||
};
|
||||
#define N_RES_VIDEO (ARRAY_SIZE(ov5693_res_video))
|
||||
#endif
|
||||
|
||||
static struct ov5693_resolution *ov5693_res = ov5693_res_preview;
|
||||
static unsigned long N_RES = N_RES_PREVIEW;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user