diff options
author | Szymon Dziok <b0hoon@o2.pl> | 2014-11-08 21:12:24 +0100 |
---|---|---|
committer | Szymon Dziok <b0hoon@o2.pl> | 2014-11-10 21:40:47 +0100 |
commit | bcca1114383c2147e60e73825ec68403c90bea40 (patch) | |
tree | e07dcc5f35478d20c5db328e2f2430cea997e185 /firmware/target/arm/philips/hdd6330 | |
parent | 73a780265a25371c0d58d7784fa52946011606cc (diff) | |
download | rockbox-bcca1114383c2147e60e73825ec68403c90bea40.tar.gz rockbox-bcca1114383c2147e60e73825ec68403c90bea40.zip |
HDD1630/HDD6330/SA9200: Integration of the clicker with the "Keyclick" menu.
Change-Id: Ieb26f2252c1f2613cc9bd83c8349f49113f46d87
Diffstat (limited to 'firmware/target/arm/philips/hdd6330')
-rw-r--r-- | firmware/target/arm/philips/hdd6330/button-hdd6330.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/firmware/target/arm/philips/hdd6330/button-hdd6330.c b/firmware/target/arm/philips/hdd6330/button-hdd6330.c index 3f662cca4f..9e9bfd941a 100644 --- a/firmware/target/arm/philips/hdd6330/button-hdd6330.c +++ b/firmware/target/arm/philips/hdd6330/button-hdd6330.c | |||
@@ -37,18 +37,6 @@ static int scroll_repeat = BUTTON_NONE; | |||
37 | #endif | 37 | #endif |
38 | static int repeat = 0; | 38 | static int repeat = 0; |
39 | 39 | ||
40 | /* | ||
41 | * Generate a click sound from the player (not in headphones yet) | ||
42 | * TODO: integrate this with the "key click" option | ||
43 | */ | ||
44 | static void button_click(void) | ||
45 | { | ||
46 | GPO32_ENABLE |= 0x2000; | ||
47 | GPO32_VAL |= 0x2000; | ||
48 | udelay(1000); | ||
49 | GPO32_VAL &= ~0x2000; | ||
50 | } | ||
51 | |||
52 | #ifndef BOOTLOADER | 40 | #ifndef BOOTLOADER |
53 | void button_init_device(void) | 41 | void button_init_device(void) |
54 | { | 42 | { |
@@ -142,7 +130,6 @@ bool button_hold(void) | |||
142 | */ | 130 | */ |
143 | int button_read_device(void) | 131 | int button_read_device(void) |
144 | { | 132 | { |
145 | static int btn_old = BUTTON_NONE; | ||
146 | int btn = int_btn; | 133 | int btn = int_btn; |
147 | 134 | ||
148 | /* Hold */ | 135 | /* Hold */ |
@@ -167,11 +154,6 @@ int button_read_device(void) | |||
167 | btn = BUTTON_NONE; | 154 | btn = BUTTON_NONE; |
168 | } | 155 | } |
169 | 156 | ||
170 | if ((btn != btn_old) && (btn != BUTTON_NONE)) | ||
171 | button_click(); | ||
172 | |||
173 | btn_old = btn; | ||
174 | |||
175 | return btn; | 157 | return btn; |
176 | } | 158 | } |
177 | 159 | ||