耳机接电话挂断功能

检测部分:对比两个宏:

CONFIG_ACCDET_EINT=y
# CONFIG_ACCDET_EINT_IRQ is not set

 在kernel-3.18/drivers/misc/mediatek/accdet/Kconfig:

config ACCDET_EINT
    tristate "MediaTek ACCDET driver"
    ---help---

      ACCDET EINT support for MediaTek SOC

      If you want to use MediaTek ACCDET EINT from PMIC ACCDET itself,
      say Y or M here.

      If unsure, say N.

config ACCDET_EINT_IRQ
    tristate "MediaTek ACCDET driver"
    ---help---

      ACCDET EINT support for MediaTek SOC

      If you want to use MediaTek ACCDET EINT from AP GPIO,
      say Y or M here.

      If unsure, say N.

 

 

 

 

 

 

 

 

 

----------------

转载于:https://www.cnblogs.com/Ph-one/p/5318613.html

你可能感兴趣的:(耳机接电话挂断功能)