Dopi JetKernel patch

Kernel development related

Dopi JetKernel patch

Postby MadRocker » Sun Jul 24, 2011 8:12 pm

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 #####
You do not have the required permissions to view the files attached to this post.
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am

Advertisement

       

Re: Dopi JetKernel patch

Postby MadRocker » Tue Jul 26, 2011 11:24 pm

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
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am

Re: Dopi JetKernel patch

Postby Carlos_Manuel » Tue Jul 26, 2011 11:36 pm

EDIT: deleted.
Last edited by Carlos_Manuel on Fri Jan 04, 2013 11:32 am, edited 1 time in total.
JétDroid ROMs, stuff... http://code.google.com/p/android-for-jet/
My YT Channel: http://www.youtube.com/user/CarlosJacksonHD
Github: manumanfred
XDA-Devs: Carlos_Manuel

Galaxy Nexus:
ROM: My own ROM 'Dreams', (KTU84P) KitKat 4.4.4
User avatar
Carlos_Manuel
Dev Team
Dev Team
 
Posts: 883
Joined: Tue Mar 29, 2011 11:50 am
Location: Estonia / Finland

Re: Dopi JetKernel patch

Postby MadRocker » Wed Jul 27, 2011 5:07 am

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.
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am


Return to JetKernel

Who is online

Users browsing this forum: No registered users and 2 guests

  • Advertisement
cron