summaryrefslogtreecommitdiff
path: root/firmware/target/arm/philips/hdd6330/button-hdd6330.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/philips/hdd6330/button-hdd6330.c')
-rw-r--r--firmware/target/arm/philips/hdd6330/button-hdd6330.c18
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
38static int repeat = 0; 38static 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 */
44static 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
53void button_init_device(void) 41void button_init_device(void)
54{ 42{
@@ -142,7 +130,6 @@ bool button_hold(void)
142 */ 130 */
143int button_read_device(void) 131int 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