summaryrefslogtreecommitdiff
path: root/drivers/media/video/mt9m001.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2011-07-27 16:03:33 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-03 18:27:47 -0200
commit610eb5a456586f7c63704160649ac6454f7d262d (patch)
tree18e35fb976cc6bb0a4b0c2b951e4c2412887ac89 /drivers/media/video/mt9m001.c
parent579cea034237dcfdcac071faa3e00b4528ddf8ec (diff)
[media] V4L: mt9m001, mt9v022: add a clarifying comment
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/mt9m001.c')
-rw-r--r--drivers/media/video/mt9m001.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/mt9m001.c b/drivers/media/video/mt9m001.c
index 7618b3c2fce0..750ce60abac8 100644
--- a/drivers/media/video/mt9m001.c
+++ b/drivers/media/video/mt9m001.c
@@ -734,6 +734,12 @@ static int mt9m001_s_mbus_config(struct v4l2_subdev *sd,
struct i2c_client *client = v4l2_get_subdevdata(sd);
struct soc_camera_device *icd = client->dev.platform_data;
struct soc_camera_link *icl = to_soc_camera_link(icd);
+ /*
+ * Cannot use icd->current_fmt->host_fmt->bits_per_sample, because that
+ * is the number of bits, that the host has to sample, not the number of
+ * bits, that we have to send. See mx3_camera.c for an example of 10-bit
+ * formats being truncated to 8 bits by the host.
+ */
unsigned int bps = soc_mbus_get_fmtdesc(icd->current_fmt->code)->bits_per_sample;
if (icl->set_bus_param)