msm: camera: sensor: Add bubble update packet support

This change adds bubble update packet support, when the
sensor mode or feature mask of bubble req is different
with last applied, we can use bubble update packet to
recovery the sensor mode and feature, then the bubble
req can get frame from correct sensor mode and feature.

CRs-Fixed: 3317352
Change-Id: Ia80b578044e74cc5062f9f6c12c5ae8edd2049ac
Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
Signed-off-by: Karthik Anantha Ram <quic_kartanan@quicinc.com>
This commit is contained in:
Depeng Shao
2022-10-05 16:34:16 +08:00
committed by Camera Software Integration
parent d3fb023ac5
commit 4d1434445f
8 changed files with 207 additions and 25 deletions

View File

@@ -121,6 +121,7 @@ enum cam_sensor_packet_opcodes {
CAM_SENSOR_PACKET_OPCODE_SENSOR_PROBE_V2,
CAM_SENSOR_PACKET_OPCODE_SENSOR_REG_BANK_UNLOCK,
CAM_SENSOR_PACKET_OPCODE_SENSOR_REG_BANK_LOCK,
CAM_SENSOR_PACKET_OPCODE_SENSOR_BUBBLE_UPDATE,
CAM_SENSOR_PACKET_OPCODE_SENSOR_NOP = 127,
};
@@ -337,6 +338,15 @@ struct cam_cmd_i2c_info {
__u16 reserved;
} __attribute__((packed));
#define CAM_SENSOR_FEATURE_MASK BIT(0)
#define CAM_SENSOR_FEATURE_NONE 0
#define CAM_SENSOR_FEATURE_AEB_ON BIT(0)
#define CAM_SENSOR_FEATURE_AEB_UPDATE BIT(1)
#define CAM_SENSOR_FEATURE_AEB_OFF BIT(2)
#define CAM_SENSOR_FEATURE_INSENSOR_HDR_3EXP_ON BIT(3)
#define CAM_SENSOR_FEATURE_INSENSOR_HDR_3EXP_OFF BIT(4)
/**
* struct cam_cmd_sensor_res_info - Contains sensor res info
*