From: Chuanhong Guo Date: Sun, 4 Aug 2019 08:29:39 +0000 (+0800) Subject: gpio-button-hotplug: add volume button handling X-Git-Tag: v1.5.0-rc2~93 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cf64343f39965ab53b388f33e6b87d5cef848085;p=librecmc%2Flibrecmc.git gpio-button-hotplug: add volume button handling This is used by PISEN WMB001N. Signed-off-by: Chuanhong Guo (cherry picked from commit 11182349e1f31f873ebddd69d6b87dec638eaabf) --- diff --git a/package/kernel/gpio-button-hotplug/Makefile b/package/kernel/gpio-button-hotplug/Makefile index 96f6b1cff4..899063f5b4 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 7366695231..81528a4221 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"),