summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-08-03 16:37:27 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-08-03 16:37:27 -0300
commitc9744c4f08675e9a0af829aaf8aafb7b9537ceb7 (patch)
treed532290059724636cd89e0da18ed3e7d23be214e
parent7b4f0177b23a90aef92464a53e99771e4c3d1bbc (diff)
parentf6b49c218844c7d0df8010f6745358f5889b52d6 (diff)
downloadmediapointer-dvb-s2-c9744c4f08675e9a0af829aaf8aafb7b9537ceb7.tar.gz
mediapointer-dvb-s2-c9744c4f08675e9a0af829aaf8aafb7b9537ceb7.tar.bz2
merge: http://linuxtv.org/hg/~quincy/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--linux/drivers/media/video/v4l1-compat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/linux/drivers/media/video/v4l1-compat.c b/linux/drivers/media/video/v4l1-compat.c
index 9b5d7e0c0..dc6f00e12 100644
--- a/linux/drivers/media/video/v4l1-compat.c
+++ b/linux/drivers/media/video/v4l1-compat.c
@@ -611,9 +611,10 @@ v4l_compat_translate_ioctl(struct inode *inode,
dprintk("VIDIOCGPICT / VIDIOC_G_FMT: %d\n",err);
break;
}
-#if 0 /* FIXME */
- pict->depth = fmt2->fmt.pix.depth;
-#endif
+
+ pict->depth = ((fmt2->fmt.pix.bytesperline<<3)
+ + (fmt2->fmt.pix.width-1) )
+ /fmt2->fmt.pix.width;
pict->palette = pixelformat_to_palette(
fmt2->fmt.pix.pixelformat);
break;