[PATCH 1/1] omap3isp: Check media bus code on links

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Check media bus code on links. The user could configure different formats at
different ends of the link, say, 8 bits-per-pixel in the source and 10
bits-per-pixel in the sink. This leads to interesting and typically
undesired results image-wise.

Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxx>
---
 drivers/media/video/omap3isp/ispvideo.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/omap3isp/ispvideo.c b/drivers/media/video/omap3isp/ispvideo.c
index 615dae5..dbdd5b4 100644
--- a/drivers/media/video/omap3isp/ispvideo.c
+++ b/drivers/media/video/omap3isp/ispvideo.c
@@ -352,7 +352,8 @@ static int isp_video_validate_pipeline(struct isp_pipeline *pipe)
 
 		/* Check if the two ends match */
 		if (fmt_source.format.width != fmt_sink.format.width ||
-		    fmt_source.format.height != fmt_sink.format.height)
+		    fmt_source.format.height != fmt_sink.format.height ||
+		    fmt_source.format.code != fmt_sink.format.code)
 			return -EPIPE;
 
 		if (shifter_link) {
-- 
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux