summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/creative-zen/button-zen.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/creative-zen/button-zen.c')
-rw-r--r--firmware/target/arm/imx233/creative-zen/button-zen.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/creative-zen/button-zen.c b/firmware/target/arm/imx233/creative-zen/button-zen.c
index 1997f91357..8f20961a57 100644
--- a/firmware/target/arm/imx233/creative-zen/button-zen.c
+++ b/firmware/target/arm/imx233/creative-zen/button-zen.c
@@ -57,6 +57,20 @@ struct imx233_button_lradc_mapping_t imx233_button_lradc_mapping[] =
{2945, BUTTON_PLAYPAUSE},
{3400, 0},
{0, IMX233_BUTTON_LRADC_END},
+#elif defined(CREATIVE_ZENV)
+ {190, IMX233_BUTTON_LRADC_HOLD},
+ {250, BUTTON_PLAYPAUSE},
+ {530, BUTTON_BACK},
+ {785, BUTTON_VOL_UP},
+ {1040, BUTTON_VOL_DOWN},
+ {1295, BUTTON_MENU},
+ {1540, BUTTON_UP},
+ {1800, BUTTON_SELECT},
+ {2070, BUTTON_LEFT},
+ {2315, BUTTON_RIGHT},
+ {2550, BUTTON_DOWN},
+ {3450, 0},
+ {0, IMX233_BUTTON_LRADC_END},
#elif defined(CREATIVE_ZENMOZAIC)
{0, IMX233_BUTTON_LRADC_HOLD},
{200, BUTTON_MENU},
@@ -100,7 +114,7 @@ bool headphones_inserted(void)
int button_read_device(void)
{
int btn = 0;
- if(BF_RD(POWER_STS, PSWITCH) == 1)
+ if(imx233_power_read_pswitch() == 1)
btn |= BUTTON_POWER;
return imx233_button_lradc_read(btn);
}