Page 1 of 1

Dopi JetKernel patch

PostPosted: Sun Jul 24, 2011 8:12 pm
by MadRocker
Here is the audio input or 3.5mm sound jack to be used in the kernel when you want to make a zImage, remember to enable the options in menuconfig.
This is a WIP so feel free to correct what needs correcting.
This should work with the "1st" 14Jul zimage .config files.
The alsa folder is maybe not needed, need expert advise on this alsa + intel file.

2.6.38 .config has this below in, will have to test and edit to make it work in 2.6.29 kernel.
Code: Select all
#
# Console display driver support
#
CONFIG_SND_JACK=y


Code: Select all
#
# DRBD disabled because PROC_FS, INET or CONNECTOR not selected
#
CONFIG_SAMSUNG_JACK=y


Files to edit and what to add:
Code: Select all
##### JetKernel/drivers/misc/Kconfig start #####
config SAMSUNG_JACK
   bool "3.5MM ear jack driver for Samsung devices"
   depends on INPUT
   default n
   ---help---
    This is 3.5MM ear jack driver for Samsung devices.

    If unsure, say N.

##### JetKernel/drivers/misc/Kconfig end #####


Code: Select all
##### JetKernel/drivers/misc/Makefile start #####
obj-$(CONFIG_SAMSUNG_JACK)   += sec_jack.o
##### JetKernel/drivers/misc/Makefile end #####

Re: Dopi JetKernel patch

PostPosted: Tue Jul 26, 2011 11:24 pm
by MadRocker
Does anyone know of the CONFIG_MACH_BONANZA phone or what model this relates too as it has the ce131 camera and apparently there is decent kernel files for this phone.

#elif CONFIG_MACH_BONANZA
http://o2droid.phj.hu/trac/browser/modu ... s/wlgpio.c

#if defined (CONFIG_MACH_BONANZA)
http://m8-android-kernel.googlecode.com ... 3c_camif.h

+ifeq ($(CONFIG_MACH_BONANZA),y)
https://github.com/cadavre/i5700-sm-kernel/pull/1/files

Re: Dopi JetKernel patch

PostPosted: Tue Jul 26, 2011 11:36 pm
by Carlos_Manuel
EDIT: deleted.

Re: Dopi JetKernel patch

PostPosted: Wed Jul 27, 2011 5:07 am
by MadRocker
For audio to work in a later 2.6.30+ kernel we need to do this below.

Someone else suggested for 2.6.29 that we stitch 2 kernel configs together ie: jet_android_defconfig + msm6246???_defconfig , one for PDA and the other for baseband.

Code: Select all
For MAX8906 you will have to write one driver per chip function (cell) and an additonal driver using the Linux MFD subsystem to bind all the function (cell) drivers to the physical chip and provide I/O functions. The existing driver is completely useless on modern kernels.

The driver for MAX9880 just need a bit of cleaning to look similar to the AK4671 driver from my tree, the s3c6410-max9880.c should get replaced with a file similar to gt_i5700_ak4671_max9877.c.