Skip to content

Commit 7dd0d6d

Browse files
Niklas Söderlundhverkuil
authored andcommitted
media: adv748x: Remove g_pixelaspect implementation
There are no consumer left of g_pixelaspect in the tree, remove the implementation from the adv748x driver in preparation of removing it from struct v4l2_subdev_video_ops all together. 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/20250705083741.77517-3-niklas.soderlund+renesas@ragnatech.se Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
1 parent 78c633a commit 7dd0d6d

2 files changed

Lines changed: 0 additions & 27 deletions

File tree

drivers/media/i2c/adv748x/adv748x-afe.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -161,22 +161,6 @@ int adv748x_afe_s_input(struct adv748x_afe *afe, unsigned int input)
161161
return sdp_write(state, ADV748X_SDP_INSEL, input);
162162
}
163163

164-
static int adv748x_afe_g_pixelaspect(struct v4l2_subdev *sd,
165-
struct v4l2_fract *aspect)
166-
{
167-
struct adv748x_afe *afe = adv748x_sd_to_afe(sd);
168-
169-
if (afe->curr_norm & V4L2_STD_525_60) {
170-
aspect->numerator = 11;
171-
aspect->denominator = 10;
172-
} else {
173-
aspect->numerator = 54;
174-
aspect->denominator = 59;
175-
}
176-
177-
return 0;
178-
}
179-
180164
/* -----------------------------------------------------------------------------
181165
* v4l2_subdev_video_ops
182166
*/
@@ -307,7 +291,6 @@ static const struct v4l2_subdev_video_ops adv748x_afe_video_ops = {
307291
.g_tvnorms = adv748x_afe_g_tvnorms,
308292
.g_input_status = adv748x_afe_g_input_status,
309293
.s_stream = adv748x_afe_s_stream,
310-
.g_pixelaspect = adv748x_afe_g_pixelaspect,
311294
};
312295

313296
/* -----------------------------------------------------------------------------

drivers/media/i2c/adv748x/adv748x-hdmi.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -382,19 +382,9 @@ static int adv748x_hdmi_s_stream(struct v4l2_subdev *sd, int enable)
382382
return ret;
383383
}
384384

385-
static int adv748x_hdmi_g_pixelaspect(struct v4l2_subdev *sd,
386-
struct v4l2_fract *aspect)
387-
{
388-
aspect->numerator = 1;
389-
aspect->denominator = 1;
390-
391-
return 0;
392-
}
393-
394385
static const struct v4l2_subdev_video_ops adv748x_video_ops_hdmi = {
395386
.g_input_status = adv748x_hdmi_g_input_status,
396387
.s_stream = adv748x_hdmi_s_stream,
397-
.g_pixelaspect = adv748x_hdmi_g_pixelaspect,
398388
};
399389

400390
/* -----------------------------------------------------------------------------

0 commit comments

Comments
 (0)