Default [KERNEL][Afaneh Kernel V1.0] I9100 kernel with ATT 4 touchkeys enabled

If you have a i777 or S959G but with a i9100 motherboard.
If you have problems with the touch buttons and need to remap.
If your mic doesnt work and the other person hear a very noisy sound.
I had recompiled Jeboo kernel for you.


Tested on NeatRom v5.1.1 XWMS1.

Githubs:
kernel -- https://github.com/jeboo/kernel_JB_I9100official
initramfs -- https://github.com/jeboo/initramfs_XWLSS

patch it take me more than 2 hours to figure it out
 

in "kernel_JB_I9100official/include/linux/i2c/touchkey_i2c.h"
change the blue lines
Code:
#if defined(CONFIG_TARGET_LOCALE_NAATT) \
	|| defined(CONFIG_TARGET_LOCALE_NAATT_TEMP)
#define TK_USE_4KEY_TYPE_ATT
#elif defined(CONFIG_MACH_LOCALE_NA) \
	|| defined(CONFIG_MACH_U1_NA_SPR) \
	|| defined(CONFIG_MACH_U1_NA_USCC)
#define TK_USE_4KEY_TYPE_NA
#elif defined(CONFIG_MACH_M0) \
	|| defined(CONFIG_MACH_C1) \
	|| defined(CONFIG_MACH_M3)\
	|| defined(CONFIG_MACH_T0)
#define TK_USE_2KEY_TYPE_M0
#else
#define TK_USE_2KEY_TYPE_U1
#endif
with this red lines
Code:
#if defined(CONFIG_TARGET_LOCALE_NAATT) \
	|| defined(CONFIG_TARGET_LOCALE_NAATT_TEMP)
#define TK_USE_4KEY_TYPE_ATT
#elif defined(CONFIG_MACH_LOCALE_NA) \
	|| defined(CONFIG_MACH_U1_NA_SPR) \
	|| defined(CONFIG_MACH_U1_NA_USCC)
#define TK_USE_4KEY_TYPE_NA
#elif defined(CONFIG_MACH_M0) \
	|| defined(CONFIG_MACH_C1) \
	|| defined(CONFIG_MACH_M3)\
	|| defined(CONFIG_MACH_T0)
#define TK_USE_4KEY_TYPE_ATT
#else
#define TK_USE_4KEY_TYPE_ATT
#endif


rate this thread to be always shown.

thanks to
Jeboo
Entropy512
PhilZ
me
Attached Files
File Type: zip Afaneh_Kernel_v1.0_i9100_for_i777.zip - [Click for QR Code] (7.76 MB, 58 views)
Out of service untill 30/08/2014

Samsung galaxy captivat stock cm11 powered by NeatKernel.
Samsung galaxy S3 SCH-I535 stock 4.4.2 rooted + safestrap v3.75.

.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
My work:
[KERNEL][4.1+] NeatKernel v1.09 [Dual recovery] captivate vibrant galaxys
[Stock 2.3.5][KK4] NeatRom Lite v1.0 Captivate[Arabic,Farsi support]


Thanks button doesn't bite