[Galaxy S II Android Development] dorimanx:
Hmm... i think i need to rise it in 3db groups

0 ~ 3 ~ 6 ~ 9

there is BUG in driver, that we not really know how to fix, driver is huge, and not simple.

i will do tests.

i know you are skilled pro linux admin...

so, i can give you the tools to check the volume controls if you like..

all here!

root@android:/ # ls -la /sys/devices/virtual/sound/sound_mc1n2/
drwxr-xr-x 3 root root 0 Oct 20 17:13 .
drwxr-xr-x 4 root root 0 Oct 20 17:13 ..
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 AVOL_AD0
-rw-rw-rw- 1 root root 4096 Oct 21 00:16 AVOL_HP
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 AVOL_HP_GAIN
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 AVOL_LIN1
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 AVOL_LOUT1
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 AVOL_LOUT2
-rw-rw-rw- 1 root root 4096 Oct 21 00:16 AVOL_MIC1
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 AVOL_MIC1_GAIN
-rw-rw-rw- 1 root root 4096 Oct 21 00:16 AVOL_MIC2
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 AVOL_MIC2_GAIN
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 AVOL_MIC3
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 AVOL_MIC3_GAIN
-rw-rw-rw- 1 root root 4096 Oct 21 00:16 AVOL_RC
-rw-rw-rw- 1 root root 4096 Oct 21 00:16 AVOL_SP
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_AD0
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_AD0_ATT
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_AENG6
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_DAC_ATT
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_DAC_MASTER
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_DAC_VOICE
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_DIR0
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_DIR0_ATT
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_DIR1
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_DIR1_ATT
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_DIR2
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_DIR2_ATT
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_DIT0
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_DIT1
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_DIT2
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_PDM
-rw-rw-rw- 1 root root 4096 Oct 21 01:14 DVOL_SIDETONE
drwxr-xr-x 2 root root 0 Oct 20 17:13 power
lrwxrwxrwx 1 root root 0 Oct 21 01:14 subsystem -> ../../../../class/sound
-rw-r--r-- 1 root root 4096 Oct 20 17:13 uevent
-rw-rw-rw- 1 root root 4096 Oct 21 00:16 update_volume
root@android:/ #

i do this:

# set headphones volume.

echo "$sound_volume1" > /sys/devices/virtual/sound/sound_mc1n2/AVOL_HP;

echo "1" > /sys/devices/virtual/sound/sound_mc1n2/update_volume;

# set MIC gain volume.

echo "$sound_volume2" > /sys/devices/virtual/sound/sound_mc1n2/AVOL_MIC1;

echo "$sound_volume2" > /sys/devices/virtual/sound/sound_mc1n2/AVOL_MIC2;

echo "$sound_volume2" > /sys/devices/virtual/sound/sound_mc1n2/AVOL_RC;

echo "1" > /sys/devices/virtual/sound/sound_mc1n2/update_volume;

# set speaker volume

echo "$sound_volume3" > /sys/devices/virtual/sound/sound_mc1n2/AVOL_SP;

echo "1" > /sys/devices/virtual/sound/sound_mc1n2/update_volume;

when you echo some number to one of the controls

you need to tell driver to use it

echo "1" > /sys/devices/virtual/sound/sound_mc1n2/update_volume;

Thats all, happy testing :)

O! wait on 6DB we get MUTE! :) then + 4db!

0 ~ 4 ~ 8 ~ 12 ....