mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
media: qcom: camss: Use a macro to specify the initial buffer count
Replace the hardcoded buffer count value with a macro to enable operating on these buffers elsewhere in the CAMSS driver based on this count. Some of the hardware architectures require deferring the AUP and REG update until after the CSID configuration and this macro is expected to be useful in such scenarios. Signed-off-by: Hangxiang Ma <hangxiang.ma@oss.qualcomm.com> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Bryan O'Donoghue <bod@kernel.org> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
committed by
Hans Verkuil
parent
c38d1d7033
commit
d5479f002f
@@ -541,7 +541,7 @@ int vfe_enable_output_v2(struct vfe_line *line)
|
||||
|
||||
ops->vfe_wm_start(vfe, output->wm_idx[0], line);
|
||||
|
||||
for (i = 0; i < 2; i++) {
|
||||
for (i = 0; i < CAMSS_INIT_BUF_COUNT; i++) {
|
||||
output->buf[i] = vfe_buf_get_pending(output);
|
||||
if (!output->buf[i])
|
||||
break;
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
(to_camss_index(ptr_module, index)->dev)
|
||||
|
||||
#define CAMSS_RES_MAX 17
|
||||
#define CAMSS_INIT_BUF_COUNT 2
|
||||
|
||||
struct camss_subdev_resources {
|
||||
char *regulators[CAMSS_RES_MAX];
|
||||
|
||||
Reference in New Issue
Block a user