mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-06-02 04:02:30 -04:00
Merge tag 'media/v7.1-4' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
Pull media fixes from Mauro Carvalho Chehab: - rc: igorplugusb: fix control request setup packet - vsp1: revert a couple patches to fix regressions when setting DRM pipelines * tag 'media/v7.1-4' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: media: rc: igorplugusb: fix control request setup packet Revert "media: renesas: vsp1: brx: Fix format propagation" Revert "media: renesas: vsp1: Initialize format on all pads"
This commit is contained in:
@@ -156,20 +156,14 @@ static int brx_set_format(struct v4l2_subdev *subdev,
|
||||
compose->height = format->height;
|
||||
}
|
||||
|
||||
/*
|
||||
* Propagate the format code to all pads, and the whole format to the
|
||||
* source pad.
|
||||
*/
|
||||
/* Propagate the format code to all pads. */
|
||||
if (fmt->pad == BRX_PAD_SINK(0)) {
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < brx->entity.source_pad; ++i) {
|
||||
for (i = 0; i <= brx->entity.source_pad; ++i) {
|
||||
format = v4l2_subdev_state_get_format(state, i);
|
||||
format->code = fmt->format.code;
|
||||
}
|
||||
|
||||
format = v4l2_subdev_state_get_format(state, i);
|
||||
*format = fmt->format;
|
||||
}
|
||||
|
||||
done:
|
||||
|
||||
@@ -380,7 +380,7 @@ static int vsp1_entity_init_state(struct v4l2_subdev *subdev,
|
||||
unsigned int pad;
|
||||
|
||||
/* Initialize all pad formats with default values. */
|
||||
for (pad = 0; pad < subdev->entity.num_pads; ++pad) {
|
||||
for (pad = 0; pad < subdev->entity.num_pads - 1; ++pad) {
|
||||
struct v4l2_subdev_format format = {
|
||||
.pad = pad,
|
||||
.which = sd_state ? V4L2_SUBDEV_FORMAT_TRY
|
||||
|
||||
@@ -184,7 +184,7 @@ static int igorplugusb_probe(struct usb_interface *intf,
|
||||
if (!ir->buf_in)
|
||||
goto fail;
|
||||
usb_fill_control_urb(ir->urb, udev,
|
||||
usb_rcvctrlpipe(udev, 0), (uint8_t *)&ir->request,
|
||||
usb_rcvctrlpipe(udev, 0), (uint8_t *)ir->request,
|
||||
ir->buf_in, MAX_PACKET, igorplugusb_callback, ir);
|
||||
|
||||
usb_make_path(udev, ir->phys, sizeof(ir->phys));
|
||||
|
||||
Reference in New Issue
Block a user