diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2014-02-28 20:30:08 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2014-02-28 20:30:08 +0000 |
commit | a08a7ff8689d7bdafdc4d545b033ca91b067cbcc (patch) | |
tree | 70158d97f68604d69da8da779507469cf930bf07 /target/linux/brcm2708/patches-3.10/0132-V4L2-Correct-JPEG-Q-factor-range.patch | |
parent | b276c3da17145991bcf3c2a63f50963654f9b878 (diff) |
brcm2708: update against latest rpi-3.10.y branch
Update our copies of the brcm2708 patches to the latest rpi-3.10-y
rebased against linux-3.10.y stable (3.10.32). This should hopefully
make it easier for us in the future to leverage the raspberry/rpi-*
branches.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39770 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm2708/patches-3.10/0132-V4L2-Correct-JPEG-Q-factor-range.patch')
-rw-r--r-- | target/linux/brcm2708/patches-3.10/0132-V4L2-Correct-JPEG-Q-factor-range.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-3.10/0132-V4L2-Correct-JPEG-Q-factor-range.patch b/target/linux/brcm2708/patches-3.10/0132-V4L2-Correct-JPEG-Q-factor-range.patch new file mode 100644 index 0000000000..3d656818b4 --- /dev/null +++ b/target/linux/brcm2708/patches-3.10/0132-V4L2-Correct-JPEG-Q-factor-range.patch @@ -0,0 +1,35 @@ +From c76bf0b3b33a00eb7a8bd274a84d3b0cae93a5b9 Mon Sep 17 00:00:00 2001 +From: Dave Stevenson <dsteve@broadcom.com> +Date: Mon, 9 Dec 2013 11:01:53 +0000 +Subject: [PATCH 132/174] V4L2: Correct JPEG Q-factor range + +Should be 1-100, not 0-100 + +Signed-off-by: Dave Stevenson <dsteve@broadcom.com> +--- + drivers/media/platform/bcm2835/controls.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +--- a/drivers/media/platform/bcm2835/controls.c ++++ b/drivers/media/platform/bcm2835/controls.c +@@ -538,7 +538,7 @@ static int ctrl_set_bitrate_mode(struct + return 0; + } + +-static int ctrl_set_q_factor(struct bm2835_mmal_dev *dev, ++static int ctrl_set_image_encode_output(struct bm2835_mmal_dev *dev, + struct v4l2_ctrl *ctrl, + const struct bm2835_mmal_v4l2_ctrl *mmal_ctrl) + { +@@ -683,9 +683,9 @@ static const struct bm2835_mmal_v4l2_ctr + }, + { + V4L2_CID_JPEG_COMPRESSION_QUALITY, MMAL_CONTROL_TYPE_STD, +- 0, 100, ++ 1, 100, + 30, 1, NULL, +- MMAL_PARAMETER_JPEG_Q_FACTOR, &ctrl_set_q_factor ++ MMAL_PARAMETER_JPEG_Q_FACTOR, &ctrl_set_image_encode_output + }, + }; + |