headset volume
[webos-internals:skurriers-modifications.git] / misc / misc-increase-speaker-headset-volume.patch
1 diff --git a/etc/audio/b/media_back_speaker.txt b/etc/audio/b/media_back_speaker.txt
2 index 5f8a6a5..3c35313 100644
3 --- a/etc/audio/b/media_back_speaker.txt
4 +++ b/etc/audio/b/media_back_speaker.txt
5 @@ -21,7 +21,7 @@ begin media_back_speaker
6      setreg 0x10 0x3f
7      setreg 0x17 0x01
8  # 0dB
9 -    setreg 0x1a 0x33
10 +    setreg 0x1a 0x03
11      setreg 0x1e 0x00
12      setreg 0x21 0x00
13      setreg 0x25 0x00
14 diff --git a/etc/audio/b/media_headset.txt b/etc/audio/b/media_headset.txt
15 index 128e268..1f14d37 100644
16 --- a/etc/audio/b/media_headset.txt
17 +++ b/etc/audio/b/media_headset.txt
18 @@ -54,9 +54,9 @@ begin media_headset_default
19      setreg 0x17 0x03
20  # restore headset volume to default when media is playing
21  # +2dB
22 -    setreg 0x19 0x2b
23 +    setreg 0x19 0x03
24  # +2dB
25 -    setreg 0x1a 0x2b    
26 +    setreg 0x1a 0x03    
27  # disable RXR2
28      setreg 0x1c 0x00
29  # disable H-bridge
30 diff --git a/etc/audio/b/phone_back_speaker.txt b/etc/audio/b/phone_back_speaker.txt
31 index 6ae775d..c9fe30a 100644
32 --- a/etc/audio/b/phone_back_speaker.txt
33 +++ b/etc/audio/b/phone_back_speaker.txt
34 @@ -85,5 +85,9 @@ begin phone_back_speaker_volume_8
35  end
36  begin phone_back_speaker_volume_9
37  # 0dB (full scale, or "FS")
38 -    setreg 0x14 0x2b
39 +# setreg 0x14 0x2b This line commented out. Not sure if all of the following
40 +# three lines are needed, or just the one for the 0x14 register.
41 +setreg 0x12 0xFF
42 +setreg 0x14 0x31
43 +setreg 0x26 0x24
44  end
45 diff --git a/etc/audio/b/phone_headset.txt b/etc/audio/b/phone_headset.txt
46 index f07748c..a6057dc 100644
47 --- a/etc/audio/b/phone_headset.txt
48 +++ b/etc/audio/b/phone_headset.txt
49 @@ -79,8 +79,8 @@ begin phone_headset_volume_7
50      setreg 0x14 0x21
51  end
52  begin phone_headset_volume_8
53 -    setreg 0x14 0x23
54 +    setreg 0x14 0x29
55  end
56  begin phone_headset_volume_9
57 -    setreg 0x14 0x25
58 +    setreg 0x14 0x31
59  end