yashsingh1/xdaforums huggingface dataset:
[Xperia Play Android Development] Spizzy01:
I'm pretty sure now that the following lines need to be this:

static const struct file_operations cy8ctma300_touch_fops = {
.owner = THIS_MODULE,
.open = cy8ctma300_touch_open,
.ioctl = cy8ctma300_touch_ioctl,
.release = cy8ctma300_touch_release,
};

Instead of this

static const struct file_operations cy8ctma300_touch_fops = {
.owner = THIS_MODULE,
.open = cy8ctma300_touch_open,
.unlocked_ioctl = cy8ctma300_touch_ioctl,
.release = cy8ctma300_touch_release,
};

[MENTION=4233768]nickholtus[/MENTION] - I'm hoping you can help me - why has the field 'ioctl' been changed to 'unlocked_ioctl' on your sources?

I'm trying to change it back, but can't work out where it has been originally defined. The driver will no longer compile using 'ioctl' as it's an unknown field, so I need to know where it originally comes from to progress any further. I've checked loads of places, and will keep checking - but if you know where it is that would help a lot..

Hmm.. ignore that nick... I've checked github, looks like [MENTION=788040]nobodyAtall[/MENTION] made the changes... I'll look into it lol.

Looks like the modifications and the use of unlocked_ioctl worked on this occasion:

https://github.com/nobodyAtall/msm7x30-3.0.x-nAa/pull/7

But that was using the cy8ctma300_spi.c driver...

[MENTION=788040]nobodyAtall[/MENTION] - I know it's hardly fair to ask/put you on the spot. But do you have any ideas of what the issue could be off the top of your head?

I've made loads of changes so far, all of which have little to no effect on how the driver performs. I've taken code and files from older versions or from other kernels which originally worked, correcting all the errors that came up with doing so but still no joy...

From what I understand, the driver is expecting the following data:

u16 xp = 0, yp = 0, z = 0, id = 0;

But isn't getting it as expected?

If the data it is receiving is not in the format expected, it'll return the 'invalid data' error in dmesg - which is fair enough. (Or in some cases reject the data altogether)

But is that data just raw data from the touchscreen itself? Or is it obtained from somewhere else?

So far all this Kernel stuff sucks lol, you think you're on the right track one minute and it turns out you're not the next. >< Then you try something new and ugh... I thought doing ROMs was bad enough...

Edit: Ignore all of that... I'm off my rocker. Lol. Clearly need to give this a rest for a short while! :)

Best thing to do imo is for some of us to team up at the weekend and take a look at it... We're not going to get very far with just a couple of us 'noobs' (such as myself) actively looking to solve the issue.
[Xperia Play Android Development] nobodyAtall:
~~reposting this here in case it gets some feedback~~

Does anyone have any datasheet for this touchscreen device? Some registers, timing, etc. info would be useful...

- nAa
[Xperia Play Android Development] smokerman:
[MENTION=788040]nobodyAtall[/MENTION] it could be helpfull if you get this touchscreen to work..if anybody have it for neoL also will be good..did you tried to make it work on xperia play without touchpads support? seems the big problem as power disconnect after a second..so it can be done..any thoughts or help on this for xperia play?:good:
[Xperia Play Android Development] nobodyAtall:
From my up to now understanding of the code and on Zeus, it seems that either the driver or the device is not processing/sending interrupts the correct way.
[Xperia Play Android Development] Ljanmi:
can you use RS232 serial connection like on X8 or X10mini
[Xperia Play Android Development] mikeioannina:
It won't help, we can already boot the kernel & debug it so serial connection is not needed.
[Xperia Play Android Development] Spizzy01:
Datasheet attached. :)
[Xperia Play Android Development] playitlouder:
Hi,

I just wanted to state, that I have a spare Play laying around, waiting for some KitKat magic ;)

I'm not a dev, but I could test some stuff, get logcats and such... :D
[Xperia Play Android Development] Spizzy01:
Hi nAa,

Do you have any ideas as to what could be the issue? If you're looking for something specific or need help with something let me know, I may be able to help.

I've checked the voltages from what was in the datasheet, everything seems to check out so I doubt it's power related... I'm not sure what else to check, since a lot of things I had already tested.
[Xperia Play Android Development] nobodyAtall:
The problem seems to be irq related. The interrupt is not firing when it should. No idea yet why it misbehaves though...
[Xperia Play Android Development] Spizzy01:
It's interesting you've said that... I recall some changes regarding IRQs assigned to the touch screen when compared to the 2.6 Kernel, I didn't really look into it though. Clearly I should have!

I'll take another look, see if I find anything anyway.
[Xperia Play Android Development] Bakisha:
I'm not sure will it help, but this is all i could find

Touch sensor is at page 16
[Xperia Play Android Development] Bakisha:
More theoretical theory from me ( based on limited knowledge in electronics and very good skills as notepad user :p ):

as i see from schematics, and comparing to kernel source code, gpio_40 and gpio_42 are used for calling interrupt request and resets

#ifdef CONFIG_TOUCHSCREEN_CY8CTMA300
#define CYPRESS_TOUCH_GPIO_RESET	40
#define CYPRESS_TOUCH_GPIO_IRQ	42
#endif

One thing that is troubling me is i don't see in kernel source (in board.semc.zeus.c file defining gpio pins for 45,47,48 and 46 (SPI_CLK,SPI_CS0_N,SPI_MOSI_DATA and SPI_MISO_DATA on schematics)

So i checked Wedgess's code for JB 2.6 kernel and in file board.semc.zeus.c i found

static struct msm_gpio qsd_spi_gpio_config_data[] = {
{GPIO_CFG(45, 1, GPIO_CFG_OUTPUT, GPIO_CFG_NO_PULL, GPIO_CFG_6MA), "spi_clk"},
{GPIO_CFG(46, 1, GPIO_CFG_OUTPUT, GPIO_CFG_NO_PULL, GPIO_CFG_6MA), "spi_cs0"},
{GPIO_CFG(47, 1, GPIO_CFG_OUTPUT, GPIO_CFG_NO_PULL, GPIO_CFG_6MA), "spi_mosi"},
{GPIO_CFG(48, 1, GPIO_CFG_INPUT, GPIO_CFG_NO_PULL, GPIO_CFG_2MA), "spi_miso"},
};

I didn't find any kind of those lines in 3.4.x kernel...

Can someone with more knowledge in kernel coding tell is it maybe missing parts of code or is it defined somewhere else in code?

EDIT:

Scratch that :mad:

I found those lines in file mach-msm/gpio-zeus.c

Oh, well, back to drawing board :(
[Xperia Play Android Development] nobodyAtall:
Hi community,

I was finally able to get touch events recorded as they should and the touchscreen to be fully operational.

Screenshot attached...

- nAa
[Xperia Play Android Development] Frutak:
You are amazing!!
[Xperia Play Android Development] sewer56lol:
What?!?!?

You're amazing nAa.

Sent from my R800i
[Xperia Play Android Development] saqibkhan:
[MENTION=788040]nobodyAtall[/MENTION] we love you !!! your amazing fantastic magnificent. OMG cant believe myself.. the day has come.. :')

[MENTION=3839575]mikeioannina[/MENTION] [MENTION=4233768]nickholtus[/MENTION] come back guys.. ump straight to 4.4 .. no need of 4.1 or 4.2 nw.. hehe..
[Xperia Play Android Development] darkharbinger81:
Thank you naa

Does it matter where I sent this from?
[Xperia Play Android Development] raminta:
Thank u nAa:thumbup::thumbup::thumbup:
[Xperia Play Android Development] TakisBeskos:
can you push the fix on github ?
[Xperia Play Android Development] nickholtus:
Hi,

Achotjan has my xperia play now, so can't do much, I would love too, but without device almost impossible
[Xperia Play Android Development] MegaRacingHD:
WOW I thought it´s impossible but you made it ! :victory::victory: Big respect !
[Xperia Play Android Development] pedyvirus:
well i think this thread needs some cleaning doesn't it?

__________________________________________

anyway thank you nA

you are our hero :X
[Xperia Play Android Development] CyberScopes:
Even though i no longer use my xperia play, ive gotta say u did awesome fixing that up. Hats off to you :)
[Xperia Play Android Development] nobodyAtall:
Hello all,

First, let me thank [MENTION=4004993]raginginferno[/MENTION] who was kind enough to send me his play (all the way from Canada). Without the actual device nothing would be done.

Now, attaching kernel image for zeus

root@android:/ # uname -a

Linux localhost 3.4.82-nAa+ #677 PREEMPT Sun Apr 6 01:20:26 EEST 2014 armv7l GNU/Linux

Tested only with Android 4.2.2 (mike's latest build):

http://legacyxperia.basketbuild.com/index.php?dir=main/zeus/cm-10.1/nightlies/

Note1: there is still some kernel work to be done for full hw support of the zeus board, but I expect it to be fairly trivial from now on (thus I'll leave it to the capable hands of anyone who's interested :P).

Note2: I will be cleaning up my workspace and pushing changes to github within the day.

Cheers,

- nAa
[Xperia Play Android Development] Frutak:
Ou yaah! Android 4.2.2/ 4.3 / 4.4 it's possible on our xperia play! Yes:D
[Xperia Play Android Development] pedyvirus:
well im testing this great kernel now

problems are like the mike kernel but without touchscreen bug (but i dont know about other fixes. there maybe more fixes here and there but i dont know.

for bluetooth and wifi i saw some ramdisk errors that i think they can cause the problems too

i can really fell the improvments that 3.4 kernel added to our device.
[Xperia Play Android Development] Alvin Satrio Wibowo:
i'm very happy to hear that news dev, and I hope you will tune it again and also make one for the neo l please .... :) Thx, keep it up :good:
[Xperia Play Android Development] Toasty Clown:
Do you lot need reminding that this is a DEV thread? Of this entire page, only around three posts are of any relevance.
[Xperia Play Android Development] 4n00p:
Great news finally some good news for Neo L and play owners are there any other bugs?
[Xperia Play Android Development] saqibkhan:
hehe.. im sorry for this post as well.. Let the community celebrate.. we have been waiting since End of 2012 for this ..

and then the OP can clean up posts.. and we can continue in the General Section..
[Xperia Play Android Development] NewVegasTroop:
I thought this day will never come. Thank you nAa for resurrecting the Xperia PLAY :)
[Xperia Play Android Development] sewer56lol:
36 and even more still to come thanks in one day show how much this community really wants KK.

Anyway guys > everyone we should go back ontopic.
[Xperia Play Android Development] nobodyAtall:
Code is uploaded to github.

Cheers

- nAa
[Xperia Play Android Development] smokerman:
wow..amazing news,maybe from this we can get KK roms, as soon i get my xperia play ( a user donate me one from USA and its shipped but still i didnt get it here in Portugal) i will work hardly to get a KK rom working for our play!!!:D:D:D
[Xperia Play Android Development] WhiteWashed:
That's another really great news, thanks Dev :good:
[Xperia Play Android Development] mikeioannina:
Great news. I'll work on cm10.1/cm10.2 for now since they're pretty stable for the rest of the 2011 devices.

Or I can work directly on cm11 and the new ION kernel, but that will take some more time.
[Xperia Play Android Development] Frutak:
I think you can working on cm10.2 and slowly on cm11 or what is better? :D
[Xperia Play Android Development] saqibkhan:
mike.. ur the captain of this ship from now.. u decide.. I think step by step is better..10.2 to 11..

im so used to MIUI that I cant wait for MIUI v6 based on KitKat 4.4 and 3.4 kernel.. Dying to Test KitKat Kernels and Roms :)
[Xperia Play Android Development] Frutak:
Nice writeing saqibkhan!! BRO

Thx to nAa for fixing touch screen issue!
[Xperia Play Android Development] broim kaskus:
Dev [MENTION=788040]nobodyAtall[/MENTION] My friend had try this kernel for MT25i Xperia Neo L but he could not login to CWM, will you tell us a little how to login to CWM, please? Thanks a lot. Sorry for my post but it's really important for Neo L users which we're gonna make it compatible for Neo L.
[Xperia Play Android Development] Spizzy01:
Gutted...

All that 'tweaking' around with the drivers, settings, board configuration etc. etc. and it turned out to be an issue with a file I hadn't checked at all.

drivers/spi/spi_qsd.c

That file is officially... An ass. :|

I guess I'll start looking into the other 'broken' things such as Bluetooth & WiFi. I'll definitely be starting from scratch though with your sources though, I can see a few variations between my files and yours which I doubt is a good thing, although yours does look more up to date. And you've heard this several times already but thanks, we really appreciate all your help with this. :good:
[Xperia Play Android Development] nobodyAtall:
Yeah, sometimes things can be easier than you think :)
[Xperia Play Android Development] smokerman:
well as i tested roms from cm10.1 to cm11, and ve gotta say my favourites are 4.3.1 and 4.4.2 roms...i take over beanstalk for xperia 2011 devices (except play and neoL of course because of not having kernel) and i recently released my last version of that rom..but maybe i can bring it also for this 2 last devices, its a rom i like a lot and with many great features..see here:http://xdaforums.com/showthread.php?t=2654072.

its better, faster, great battery life, great performance and a lots of free ram..or also carbon rom 4.4.2..lets see how it goes.:good:
[Xperia Play Android Development] darkharbinger81:
Let me know when your ready I'll try for a CDMA release in hoping in a couple of months to have another Xperia play
[Xperia Play Android Development] krchi:
i think you should brinf carbon
[Xperia Play Android Development] ApriliaM3:
Guys can we try and stick to Development related subjects here and resist the urge to engage in topics more suited to General or Q&A

I've had a cleanup here and I'd prefer not be returning for the same reasons

Thanks
[Xperia Play Android Development] mikeioannina:
I got cm11 & new ION kernel to boot, I will open a new thread soon when I fix some more stuff.

Current buildable sources are pushed to LegacyXperia github, kernel branch is zeus-wip but will be merged soon into the main cm-11.0 branch.
[Xperia Play Android Development] Taipangr:
amazing dude haha
[Xperia Play Android Development] saqibkhan:
for both of u before me.. and anyone reading after me.. lets head over to the General thread here http://xdaforums.com/showthread.php?t=2563508 and "SPAM" it with our thankyous and happiness..

As mentioned in post above.. the moderator has strictly forbidden "Our Kinda posts".. only Dev Posts plz..

but am happy too :laugh::laugh::laugh:
[Xperia Play Android Development] ronii ahmad:
nice job sir...

can't wait for it
[Xperia Play Android Development] Spizzy01:
Has anyone made any progress on the charging yet?

So far I've managed to get it to a point where it charges (or at least, it appears to be charging) but it remains on the Kernel splash screen and doesn't boot to Android.

I've been trying to work out what [MENTION=788040]nobodyAtall[/MENTION] was trying to do, I don't suppose you could weigh in again please nAa? :) It looked like you were implementing something where if the voltage varied to a certain extent it would still charge the device...? But I'm most likely completely off target with that one.

I intend to continue looking into it, but at the moment neither of my two spare devices seem to want to boot into fastboot, so I can't flash new kernels at the mo'. This might be something to do with the Kernel, so if it is I'll most likely have to start from scratch again with flashing a stock firmware which should restore fastboot...
[Xperia Play Android Development] Frutak:
Send me a new kernel and I can try it :)))
[Xperia Play Android Development] mikeioannina:
Here's a new cm11 test build http://www.mediafire.com/download/1e41g9jwmxqh4wq/cm-11-20140505-UNOFFICIAL-LegacyXperia-zeus.zip

Kernel source is at https://github.com/LegacyXperia/android_kernel_semc_msm7x30/commits/zeus-wip
[Xperia Play Android Development] Frutak:
Ok I trying now :D and charging is doesnt work.

Button is working.
[Xperia Play Android Development] smashingeeks:
Tried this on NEO L

Working : Boot, Network, Torch, Physical Buttons, Audio

Not Working : Wifi, Bluetooth, Camera, Charging(It shows that it is charging but it actually isn't), Rotation( by default it comes in landscape mode)

Thanks, for working hard on this.
[Xperia Play Android Development] Frutak:
Too same on xperii play :)
[Xperia Play Android Development] krchi:
btw where did you guys get the kernel to use from?

EDIT: Im so stupid? lol found it

Edit2: can neo l enter recovery with this kernel?

edit3: being noob but how do you install this? do i flash it with kernel?

edit4: this rom is wonderful i tested if wifi and charging works but they dont i dont care about other things and ill yolo it through my day everyday if it works lol
[Xperia Play Android Development] mikeioannina:
I've pushed some changes to test about charger: https://github.com/LegacyXperia/android_kernel_semc_msm7x30/commits/zeus-wip

I can't test this (my device charging circuit is broken) so anyone who builds from source should test it and report the results (Ping [MENTION=4347494]Spizzy01[/MENTION], you might be interested in this).
[Xperia Play Android Development] Frutak:
Anyone can build an img and I can try it :))
[Xperia Play Android Development] smashingeeks:
An .img file and I will test it asap
[Xperia Play Android Development] sasukekun67:
http://xdaforums.com/showthread.php?p=45653219
[Xperia Play Android Development] TakisBeskos:
hi , i don't own an xperia play , but i am downloading mike's source ( zeus-wip ) , including the charger changes , and i will edit this post soon to upload the kernel

EDIT: [MENTION=3839575]mikeioannina[/MENTION] , i am getting this error when compiling kernel from zeus-wip

drivers/gpu/msm/adreno_snapshot.c: In function 'snapshot_rb':

drivers/gpu/msm/adreno_snapshot.c:628: sorry, unimplemented: inlining failed in call to 'parse_ib': recursive inlining

drivers/gpu/msm/adreno_snapshot.c:588: sorry, unimplemented: called from here

make[3]: *** [drivers/gpu/msm/adreno_snapshot.o] Error 1

make[2]: *** [drivers/gpu/msm] Error 2

make[1]: *** [drivers/gpu] Error 2

make: *** [drivers] Error 2

make: *** Waiting for unfinished jobs....

i removed the "inline" from static int parse_ib(struct kgsl_device *device, unsigned int ptbase,

unsigned int gpuaddr, unsigned int dwords); line 545 , is that ok ?

EDIT2: i've uploaded the zimage , not sure if it's ok , because i made some changes , just make a boot.img and flash it
[Xperia Play Android Development] mikeioannina:
Here's a test boot.img ready for cm11: http://www.mediafire.com/download/romax43hddue4m4/charger-test1.img
[Xperia Play Android Development] Frutak:
When I will be home I can try it:))
[Xperia Play Android Development] smashingeeks:
Downloading the kernel, will update the result here once tested. Wanted to ask if it matters if I use NEO L, because I have NEO L. I mean will it be problematic?

UPDATE 1 : Mike, really thanks for working on this man. IT IS CHARGING NOW, Screenshots attached, Thanks.

UPDATE 2 : Works on both, USB Charging and using Charger. Attaching SS soon.

UPDATE 3 : I am thinking that it is taking a bit more time to charge and is draining faster too, but the good thing is, it is atleast charging now.
[Xperia Play Android Development] Frutak:
Ok I flash charger.img but the xperia play doesnt boot to recovery.

but I flash boot.img and after charger and phone is booting.

Charging working :3 Thanks for your great work :3 I will try this rom to evening and at nignt I write a review :3
[Xperia Play Android Development] mikeioannina:
Great, didn't expect these changes could fix the problem :)

Now to solve some other issues...
[Xperia Play Android Development] korrectmethod:
Here's FTF version for people with testpoint unlocked bootloaders.

http://www.mediafire.com/download/l5ww3cyx54f8qf8/chargertestmikeioannina.ftf
[Xperia Play Android Development] Frutak:
Great CM11 :D but it not for daily usage now :D
[Xperia Play Android Development] XDM inc:
where did you even get a cm11 rom for xperia play?

Also Still no boot on R800x CDMA xperia play, no splash no nothing, acts as if the phone's bricked.:(
[Xperia Play Android Development] saqibkhan:
its in this same thread.. Page 10.. Post by Mike.. Kernel and ROM both posted.

Actually working Charger Kernel on page 11
[Xperia Play Android Development] XDM inc:
thanks

yea but are there special instructions to installing this kernel? Because the stranded flash the kernel in bootloader mode result on a black on powerup and stays there no boot on R800x CDMA. Now i know theres like 2% difference between the R800x and the r800i (CDMA & GSM) versions of the xperia play so in theory anything that works on the r800i should work on the r800x except radio.
[Xperia Play Android Development] smashingeeks:
Use any JB kernel to flash the CM11 ROM, then flash the Cm11 kernel by mike and then boot
[Xperia Play Android Development] XDM inc:
ok i'll try that
[Xperia Play Android Development] playitlouder:
The Recovery actually works, if you don't have a SD card inserted.

Then connect the USB cable, copy the rom to /data via adb, change the startup script of CWM to install the rom from /data, install gapps the same way and boot.

Or do it the easy way and flash the rom and then the kernel :P
[Xperia Play Android Development] XDM inc:
nothing worked as for now this kernel is NOT supported for for CDMA (R800x) xperia plays

cant understand why but yea.

unless we can get some more cdma plays to test this this is all we have to go on for now.
[Xperia Play Android Development] mikeioannina:
There are some requirements for kitkat builds.

Please make sure you have followed the instructions here:

https://github.com/LegacyXperia/wiki/wiki

Most important: You need to have flashed Neo L's ICS 4.1.B.0.587 ftf and you need to format the partitions in fastboot if the device doesn't boot.

All the instructions are in the above link
[Xperia Play Android Development] XDM inc:
oooh so their is some special things to set up. is this the ftf i need? [NEO L] All Stock Firmware .ftf , and also can i even flash foreign ftf's on my play?
[Xperia Play Android Development] smokerman:
do this first:

1 Flash turbo 3.1 kernel

(note: you can use also lupus JBv8 480p)

2 Go to recovery and flash CM11 ROM

3 Switch off your phone

4 Flash the CM11 kernel with charging fixed

5 Boot.

it should work for neoL and play, no need to flash neol firmwares as they have to flash our xperia play firmware...:good:

ps: as you have r800x you dont need FTF 79 cause your phone have vendor partition already unlocked..but with this rom you probably wont get phone signal on CDMA..
[Xperia Play Android Development] XDM inc:
didnt work
[Xperia Play Android Development] saqibkhan:
Not Working : Torch(was working finely with the previous version of kernel), Camera, Wifi, Bluetooth, Audio in Music App(but I was able to hear the ringtones and notifications tones in Settings), Call volume(don't what's the problem with it, I called on CM11 and it was stuck on "Dialing", maybe it's problem with the network)

Update : Mic doesn't work in calls.. And voice cannot be heard in Earphone Speaker..Phone has to be put in speaker mode to listen to somebody. so basically cant make calls.

Edit 1. Some time .. actually most of the times.. all my Buttons were working.. but sometime not too..

Edit 2: Does not cm10.1 work with this Kernel.. I tried that in desperation too.. lolz.. didn't go Past kernel boot image.
[Xperia Play Android Development] olokos:
Can I get mixer_paths.xml from CM11? I'll try fixing the sound issues. :)

You can find it in /system/etc

Wysłane z mojego C6903 przy użyciu Tapatalka
[Xperia Play Android Development] playitlouder:
No such file for me, unfortunately...
[Xperia Play Android Development] olokos:
[MENTION=3839575]mikeioannina[/MENTION]

Take a look at this:

http://xdaforums.com/showthread.php?t=2754997

BTW. I'm reviving my Xperia Play now, I've just ordered the digizer about 12 hours ago. I should be ready to test stuff this week and hopefully help fixing stuff. :)
[Xperia Play Android Development] Frutak:
Any news with kernel ? :(
[Xperia Play Android Development] smashingeeks:
I don't think we will be getting it, at least not anytime soon