--- /dev/null
+diff -Naur linux-3.2.19.org/sound/arm/bcm2835-ctl.c linux-3.2.19/sound/arm/bcm2835-ctl.c
+--- linux-3.2.19.org/sound/arm/bcm2835-ctl.c 2012-06-04 21:11:15.000000000 +0200
++++ linux-3.2.19/sound/arm/bcm2835-ctl.c 2012-06-04 21:32:37.969298501 +0200
+@@ -33,6 +33,19 @@
+
+ #include "bcm2835.h"
+
++
++/* functions to convert alsa to chip volume and back. */
++int alsa2chip(int vol)
++{
++ return -((vol << 8) / 100);
++}
++
++int chip2alsa(int vol)
++{
++ return -((vol * 100) >> 8);
++}
++
++
+ static int snd_bcm2835_ctl_info(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_info *uinfo)
+ {
+@@ -64,7 +77,7 @@
+ BUG_ON(!chip && !(chip->avail_substreams & AVAIL_SUBSTREAMS_MASK));
+
+ if (kcontrol->private_value == PCM_PLAYBACK_VOLUME)
+- ucontrol->value.integer.value[0] = chip->volume;
++ ucontrol->value.integer.value[0] = chip2alsa(chip->volume);
+ else if (kcontrol->private_value == PCM_PLAYBACK_MUTE)
+ ucontrol->value.integer.value[0] = chip->mute;
+ else if (kcontrol->private_value == PCM_PLAYBACK_DEVICE)
+@@ -85,13 +98,10 @@
+ changed = 1;
+ }
+ if (changed
+- || (ucontrol->value.integer.value[0] != chip->volume)) {
+- int atten;
++ || (ucontrol->value.integer.value[0] != chip2alsa(chip->volume))) {
+
+- chip->volume = ucontrol->value.integer.value[0];
++ chip->volume = alsa2chip(ucontrol->value.integer.value[0]);
+ changed = 1;
+- atten = -((chip->volume << 8) / 100);
+- chip->volume = atten;
+ }
+
+ } else if (kcontrol->private_value == PCM_PLAYBACK_MUTE) {