hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/platform/vsp1/vsp1_sru.c
....@@ -269,6 +269,7 @@
269269
270270 static void sru_configure_stream(struct vsp1_entity *entity,
271271 struct vsp1_pipeline *pipe,
272
+ struct vsp1_dl_list *dl,
272273 struct vsp1_dl_body *dlb)
273274 {
274275 const struct vsp1_sru_param *param;
....@@ -312,6 +313,11 @@
312313 output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config,
313314 SRU_PAD_SOURCE);
314315
316
+ /*
317
+ * The maximum input width of the SRU is 288 input pixels, but 32
318
+ * pixels are reserved to support overlapping partition windows when
319
+ * scaling.
320
+ */
315321 if (input->width != output->width)
316322 return 512;
317323 else
....@@ -333,7 +339,7 @@
333339 output = vsp1_entity_get_pad_format(&sru->entity, sru->entity.config,
334340 SRU_PAD_SOURCE);
335341
336
- /* Adapt if SRUx2 is enabled */
342
+ /* Adapt if SRUx2 is enabled. */
337343 if (input->width != output->width) {
338344 window->width /= 2;
339345 window->left /= 2;