2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 04:34:11 +08:00
linux-next/drivers/media
Helen Koike 09c41a23a2 media: Revert "media: vimc: propagate pixel format in the stream"
This reverts commit b6c61a6c37.

The requested pixelformat is being propagated from the capture to the
tpg in the sensor.

This was a bad design choice, as we start having the following issues:

* We set a pixelformat in the capture;
* We set matching media bus formats in the subdevices pads;
* Link validate looks fine (sizes matches, media bus formats matches);
* Issue: if some of the subdevice doesn't know how to generate the
requested pixelformat in the capture, then stream_on fails. This is bad
because capture says it supports that pixelformat, everything looks
fine, but it is not, and there is no way to find it out through the
links.

This patch was implemented so we could request any pixelformat from the
pipeline regardeless of the media bus format configured between pads.
Not all pixelformat can be mapped into a media bus code (e.g.
multiplanar formats), so with this patch we could request those
pixelformats from the tpg.

Solution: map pixelformats to media bus codes as before, and implement
conversions to other pixelformats in the capture to support multiplanar.

So first step to this solution is to revert this patch.

Signed-off-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Lucas A. M. Magalhaes <lucmaga@gmail.com>
Tested-by: André Almeida <andrealmeid@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-08-13 11:40:38 -03:00
..
cec media: cec-notifier: add new notifier functions 2019-06-27 07:19:43 -04:00
common media: v4l2-tpg: add support for new pixelformats 2019-07-30 12:16:45 -04:00
dvb-core media: don't drop front-end reference count for ->detach 2019-08-04 06:33:11 -03:00
dvb-frontends media: si2168: add support for Mygica T230C v2 2019-07-22 15:30:28 -04:00
firewire treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
i2c media: adv7511/cobalt: rename driver name to adv7511-v4l2 2019-08-07 17:07:29 -03:00
mc Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
mmc treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
pci media: adv7511/cobalt: rename driver name to adv7511-v4l2 2019-08-07 17:07:29 -03:00
platform media: Revert "media: vimc: propagate pixel format in the stream" 2019-08-13 11:40:38 -03:00
radio media: radio-raremono: change devm_k*alloc to k*alloc 2019-06-27 07:35:24 -04:00
rc media: Remove dev_err() usage after platform_get_irq() 2019-08-07 17:08:33 -03:00
spi Linux 5.2-rc4 2019-06-11 12:09:28 -04:00
tuners media updates for v5.3-rc1 2019-07-09 09:47:22 -07:00
usb media: don't drop front-end reference count for ->detach 2019-08-04 06:33:11 -03:00
v4l2-core media: v4l2-common: add support for new RGB32 pixelformats 2019-07-30 12:17:08 -04:00
Kconfig media: Don't default-enable "ancillary driver autoselect" if EMBEDDED 2019-07-25 11:48:22 -04:00
Makefile media: move drivers/media/media-* to drivers/media/mc/mc-* 2019-05-28 12:15:46 -04:00