Permalink
Browse files

add analogue headphone amp

  • Loading branch information...
gokhanmoral committed Nov 11, 2012
1 parent 7f5ae64 commit 9bdad7771328d3155a8e1c79f3a9488508f7daa5
Showing with 12 additions and 4 deletions.
  1. +7 −2 res/customconfig/actions/sound_volume
  2. +4 −2 res/customconfig/customconfig.xml
  3. +1 −0 res/customconfig/default.profile
@@ -11,10 +11,15 @@ else
fi;
if [ -d /sys/devices/virtual/sound/sound_mc1n2/ ]; then
+ # 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_volume1" > /sys/devices/virtual/sound/sound_mc1n2/AVOL_RC;
+ 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_volume2" > /sys/devices/virtual/sound/sound_mc1n2/AVOL_SP;
+ echo "$sound_volume3" > /sys/devices/virtual/sound/sound_mc1n2/AVOL_SP;
echo "1" > /sys/devices/virtual/sound/sound_mc1n2/update_volume;
fi;
@@ -134,14 +134,16 @@
<settingsPane description="Headphone Amplification Settings" name="Headphone Amplification">
<seekBar description="Headphone Amplifier Level (0-3 which corresponds to 0-1.5-3-6dB)"
name="Headphone Amplifier" action="eargasm_hp" unit="" min="0" reversed="false" step="1" max="3"/>
+ <seekBar description="Headphone Amplification Level"
+ name="Analog Headphone" action="sound_volume 1" unit="DB" min="-10" reversed="false" step="2" max="20"/>
</settingsPane>
<settingsPane description="Microphone Amplification Settings" name="Microphone Amplification">
<seekBar description="Microphone Amplifier Level (Used to increase or decrease volume during calls)"
- name="Microphone Amplifier" action="sound_volume 1" unit="" min="-20" reversed="false" step="2" max="20"/>
+ name="Microphone Amplifier" action="sound_volume 2" unit="" min="-20" reversed="false" step="2" max="20"/>
</settingsPane>
<settingsPane description="Speaker Amplification Settings" name="Speaker Amplification">
<seekBar description="Speaker Amplifier Level (Used in playing videos, calls with speakerphone, and so on)"
- name="Speaker Amplifier" action="sound_volume 2" unit="" min="-20" reversed="false" step="1" max="20"/>
+ name="Speaker Amplifier" action="sound_volume 3" unit="" min="-20" reversed="false" step="1" max="20"/>
</settingsPane>
</settingsTab>
@@ -62,5 +62,6 @@ soundgasm_hp=0
dyn_brightness=off
sound_volume1=0
sound_volume2=0
+sound_volume3=0
fbearlysuspend_delay0=0

0 comments on commit 9bdad77

Please sign in to comment.