summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-3.10/0187-Use-a-range-macro-for-Playback-Volume.patch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2014-09-27 19:10:51 +0000
committerFlorian Fainelli <florian@openwrt.org>2014-09-27 19:10:51 +0000
commit6918ea2484861cbf806c812b95a814ab40063c05 (patch)
tree3f4d53baabebad9339cadd1bbfaaf07ed61b9c1e /target/linux/brcm2708/patches-3.10/0187-Use-a-range-macro-for-Playback-Volume.patch
parentff6b0d57b8e4dd9c72b13ac0586c523c8d6e8841 (diff)
downloadmaster-31e0f0ae-6918ea2484861cbf806c812b95a814ab40063c05.tar.gz
master-31e0f0ae-6918ea2484861cbf806c812b95a814ab40063c05.tar.bz2
master-31e0f0ae-6918ea2484861cbf806c812b95a814ab40063c05.zip
brcm2708: update 3.10 patches with raspberrypi/rpi-3.10.y of 27 Apr. 2014
Update the 3.10 rasperry patches by rebasing raspberry/rpi-3.10-y against linux-stable/v3.10.49. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 42678
Diffstat (limited to 'target/linux/brcm2708/patches-3.10/0187-Use-a-range-macro-for-Playback-Volume.patch')
-rw-r--r--target/linux/brcm2708/patches-3.10/0187-Use-a-range-macro-for-Playback-Volume.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-3.10/0187-Use-a-range-macro-for-Playback-Volume.patch b/target/linux/brcm2708/patches-3.10/0187-Use-a-range-macro-for-Playback-Volume.patch
new file mode 100644
index 0000000000..a990c5b181
--- /dev/null
+++ b/target/linux/brcm2708/patches-3.10/0187-Use-a-range-macro-for-Playback-Volume.patch
@@ -0,0 +1,29 @@
+From 13d82ae9cf856fd5b58c932181591a9a4fda8659 Mon Sep 17 00:00:00 2001
+From: Howard Mitchell <hm@hmbedded.co.uk>
+Date: Fri, 28 Mar 2014 16:40:31 +0000
+Subject: [PATCH 187/196] Use a range macro for Playback Volume.
+
+This allows limiting the output gain to avoid clipping in the
+DAC ouput stages.
+---
+ sound/soc/codecs/pcm512x.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/sound/soc/codecs/pcm512x.c b/sound/soc/codecs/pcm512x.c
+index ed36a4a..5bc96ec 100644
+--- a/sound/soc/codecs/pcm512x.c
++++ b/sound/soc/codecs/pcm512x.c
+@@ -240,8 +240,8 @@ static const struct soc_enum pcm512x_veds =
+ pcm512x_ramp_step_text);
+
+ static const struct snd_kcontrol_new pcm512x_controls[] = {
+-SOC_DOUBLE_R_TLV("Playback Digital Volume", PCM512x_DIGITAL_VOLUME_2,
+- PCM512x_DIGITAL_VOLUME_3, 0, 255, 1, digital_tlv),
++SOC_DOUBLE_R_RANGE_TLV("Playback Digital Volume", PCM512x_DIGITAL_VOLUME_2,
++ PCM512x_DIGITAL_VOLUME_3, 0, 48, 255, 1, digital_tlv),
+ SOC_DOUBLE("Playback Digital Switch", PCM512x_MUTE, PCM512x_RQML_SHIFT,
+ PCM512x_RQMR_SHIFT, 1, 1),
+
+--
+1.9.1
+