From: Chuanhong Guo Date: Sun, 4 Aug 2019 08:29:39 +0000 (+0800) Subject: gpio-button-hotplug: add volume button handling X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=11182349e1f31f873ebddd69d6b87dec638eaabf;p=openwrt%2Fstaging%2Fyousong.git gpio-button-hotplug: add volume button handling This is used by PISEN WMB001N. Signed-off-by: Chuanhong Guo --- diff --git a/package/kernel/gpio-button-hotplug/Makefile b/package/kernel/gpio-button-hotplug/Makefile index 216d23b76d..ffbc19756c 100644 --- a/package/kernel/gpio-button-hotplug/Makefile +++ b/package/kernel/gpio-button-hotplug/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=gpio-button-hotplug -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_LICENSE:=GPL-2.0 include $(INCLUDE_DIR)/package.mk diff --git a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c index edd03d2b62..3e8e0ea268 100644 --- a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c +++ b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c @@ -95,6 +95,8 @@ static struct bh_map button_map[] = { BH_MAP(KEY_RESTART, "reset"), BH_MAP(KEY_RFKILL, "rfkill"), BH_MAP(KEY_VIDEO, "video"), + BH_MAP(KEY_VOLUMEDOWN, "volume_down"), + BH_MAP(KEY_VOLUMEUP, "volume_up"), BH_MAP(KEY_WIMAX, "wwan"), BH_MAP(KEY_WLAN, "wlan"), BH_MAP(KEY_WPS_BUTTON, "wps"),