xduoox3ii: Wrap the remote key detection in USE_REMOTE
Makes it straightforward to disable for debugging or defective hardware Change-Id: Ie72786f6e9eabf396a05ef8a02e422c34c97691a
This commit is contained in:
parent
ea1aef9b82
commit
c96dc1c886
1 changed files with 3 additions and 1 deletions
|
@ -26,6 +26,8 @@
|
|||
#include "kernel.h"
|
||||
#include "xduoolinux_codec.h"
|
||||
|
||||
#define USE_REMOTE /* Comment out to disable headphone remote */
|
||||
|
||||
int button_map(int keycode)
|
||||
{
|
||||
switch(keycode)
|
||||
|
@ -54,7 +56,7 @@ int button_map(int keycode)
|
|||
case KEY_POWER:
|
||||
return BUTTON_POWER;
|
||||
|
||||
#if defined(XDUOO_X3II) /* Headphone remote */
|
||||
#if defined(XDUOO_X3II) && defined(USE_REMOTE) /* Headphone remote */
|
||||
case KEY_NEXTSONG:
|
||||
return (BUTTON_NEXT | BUTTON_DELAY_RELEASE);
|
||||
|
||||
|
|
Loading…
Reference in a new issue