mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-15 16:42:22 -04:00
media: rcar-vin: Always create a media pad
Prepare for Gen2 media graph support by always initializing a media pad for the VIN device. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Link: https://lore.kernel.org/r/20250613153434.2001800-10-niklas.soderlund+renesas@ragnatech.se Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
This commit is contained in:
committed by
Hans Verkuil
parent
856b49c71a
commit
257d994a6f
@@ -895,10 +895,6 @@ static int rvin_csi2_init(struct rvin_dev *vin)
|
||||
{
|
||||
int ret;
|
||||
|
||||
vin->pad.flags = MEDIA_PAD_FL_SINK;
|
||||
ret = media_entity_pads_init(&vin->vdev.entity, 1, &vin->pad);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = rvin_create_controls(vin, NULL);
|
||||
if (ret < 0)
|
||||
@@ -980,10 +976,6 @@ static int rvin_isp_init(struct rvin_dev *vin)
|
||||
{
|
||||
int ret;
|
||||
|
||||
vin->pad.flags = MEDIA_PAD_FL_SINK;
|
||||
ret = media_entity_pads_init(&vin->vdev.entity, 1, &vin->pad);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = rvin_create_controls(vin, NULL);
|
||||
if (ret < 0)
|
||||
@@ -1377,6 +1369,11 @@ static int rcar_vin_probe(struct platform_device *pdev)
|
||||
goto err_dma;
|
||||
}
|
||||
|
||||
vin->pad.flags = MEDIA_PAD_FL_SINK;
|
||||
ret = media_entity_pads_init(&vin->vdev.entity, 1, &vin->pad);
|
||||
if (ret)
|
||||
goto err_id;
|
||||
|
||||
if (vin->info->use_isp) {
|
||||
ret = rvin_isp_init(vin);
|
||||
} else if (vin->info->use_mc) {
|
||||
|
||||
Reference in New Issue
Block a user