Loading drivers/media/platform/msm/camera/cam_cpas/cam_cpas_hw.c +2 −2 Original line number Diff line number Diff line Loading @@ -1250,7 +1250,7 @@ static int cam_cpas_util_client_setup(struct cam_hw_info *cpas_hw) struct cam_cpas *cpas_core = (struct cam_cpas *) cpas_hw->core_info; int i; for (i = 0; i < CPAS_MAX_CLIENTS; i++) { for (i = 0; i < CAM_CPAS_MAX_CLIENTS; i++) { mutex_init(&cpas_core->client_mutex[i]); cpas_core->cpas_client[i] = NULL; } Loading @@ -1263,7 +1263,7 @@ static int cam_cpas_util_client_cleanup(struct cam_hw_info *cpas_hw) struct cam_cpas *cpas_core = (struct cam_cpas *) cpas_hw->core_info; int i; for (i = 0; i < CPAS_MAX_CLIENTS; i++) { for (i = 0; i < CAM_CPAS_MAX_CLIENTS; i++) { if (cpas_core->cpas_client[i]) { cam_cpas_hw_unregister_client(cpas_hw, i); cpas_core->cpas_client[i] = NULL; Loading drivers/media/platform/msm/camera/cam_cpas/cam_cpas_hw.h +5 −4 Original line number Diff line number Diff line Loading @@ -17,13 +17,14 @@ #include "cam_cpas_hw_intf.h" #include "cam_common_util.h" #define CPAS_MAX_CLIENTS 20 #define CAM_CPAS_MAX_CLIENTS 30 #define CAM_CPAS_INFLIGHT_WORKS 5 #define CAM_CPAS_GET_CLIENT_IDX(handle) (handle) #define CAM_CPAS_GET_CLIENT_HANDLE(indx) (indx) #define CAM_CPAS_CLIENT_VALID(indx) ((indx >= 0) && (indx < CPAS_MAX_CLIENTS)) #define CAM_CPAS_CLIENT_VALID(indx) \ ((indx >= 0) && (indx < CAM_CPAS_MAX_CLIENTS)) #define CAM_CPAS_CLIENT_REGISTERED(cpas_core, indx) \ ((CAM_CPAS_CLIENT_VALID(indx)) && \ (cpas_core->cpas_client[indx])) Loading Loading @@ -176,8 +177,8 @@ struct cam_cpas_axi_port { */ struct cam_cpas { struct cam_cpas_hw_caps hw_caps; struct cam_cpas_client *cpas_client[CPAS_MAX_CLIENTS]; struct mutex client_mutex[CPAS_MAX_CLIENTS]; struct cam_cpas_client *cpas_client[CAM_CPAS_MAX_CLIENTS]; struct mutex client_mutex[CAM_CPAS_MAX_CLIENTS]; uint32_t num_clients; uint32_t registered_clients; uint32_t streamon_clients; Loading drivers/media/platform/msm/camera/cam_cpas/cam_cpas_soc.h +1 −1 Original line number Diff line number Diff line Loading @@ -14,8 +14,8 @@ #define _CAM_CPAS_SOC_H_ #include "cam_soc_util.h" #include "cam_cpas_hw.h" #define CAM_CPAS_MAX_CLIENTS 20 #define CAM_REGULATOR_LEVEL_MAX 16 /** Loading Loading
drivers/media/platform/msm/camera/cam_cpas/cam_cpas_hw.c +2 −2 Original line number Diff line number Diff line Loading @@ -1250,7 +1250,7 @@ static int cam_cpas_util_client_setup(struct cam_hw_info *cpas_hw) struct cam_cpas *cpas_core = (struct cam_cpas *) cpas_hw->core_info; int i; for (i = 0; i < CPAS_MAX_CLIENTS; i++) { for (i = 0; i < CAM_CPAS_MAX_CLIENTS; i++) { mutex_init(&cpas_core->client_mutex[i]); cpas_core->cpas_client[i] = NULL; } Loading @@ -1263,7 +1263,7 @@ static int cam_cpas_util_client_cleanup(struct cam_hw_info *cpas_hw) struct cam_cpas *cpas_core = (struct cam_cpas *) cpas_hw->core_info; int i; for (i = 0; i < CPAS_MAX_CLIENTS; i++) { for (i = 0; i < CAM_CPAS_MAX_CLIENTS; i++) { if (cpas_core->cpas_client[i]) { cam_cpas_hw_unregister_client(cpas_hw, i); cpas_core->cpas_client[i] = NULL; Loading
drivers/media/platform/msm/camera/cam_cpas/cam_cpas_hw.h +5 −4 Original line number Diff line number Diff line Loading @@ -17,13 +17,14 @@ #include "cam_cpas_hw_intf.h" #include "cam_common_util.h" #define CPAS_MAX_CLIENTS 20 #define CAM_CPAS_MAX_CLIENTS 30 #define CAM_CPAS_INFLIGHT_WORKS 5 #define CAM_CPAS_GET_CLIENT_IDX(handle) (handle) #define CAM_CPAS_GET_CLIENT_HANDLE(indx) (indx) #define CAM_CPAS_CLIENT_VALID(indx) ((indx >= 0) && (indx < CPAS_MAX_CLIENTS)) #define CAM_CPAS_CLIENT_VALID(indx) \ ((indx >= 0) && (indx < CAM_CPAS_MAX_CLIENTS)) #define CAM_CPAS_CLIENT_REGISTERED(cpas_core, indx) \ ((CAM_CPAS_CLIENT_VALID(indx)) && \ (cpas_core->cpas_client[indx])) Loading Loading @@ -176,8 +177,8 @@ struct cam_cpas_axi_port { */ struct cam_cpas { struct cam_cpas_hw_caps hw_caps; struct cam_cpas_client *cpas_client[CPAS_MAX_CLIENTS]; struct mutex client_mutex[CPAS_MAX_CLIENTS]; struct cam_cpas_client *cpas_client[CAM_CPAS_MAX_CLIENTS]; struct mutex client_mutex[CAM_CPAS_MAX_CLIENTS]; uint32_t num_clients; uint32_t registered_clients; uint32_t streamon_clients; Loading
drivers/media/platform/msm/camera/cam_cpas/cam_cpas_soc.h +1 −1 Original line number Diff line number Diff line Loading @@ -14,8 +14,8 @@ #define _CAM_CPAS_SOC_H_ #include "cam_soc_util.h" #include "cam_cpas_hw.h" #define CAM_CPAS_MAX_CLIENTS 20 #define CAM_REGULATOR_LEVEL_MAX 16 /** Loading