yashsingh1/xdaforums huggingface dataset:
[Sony Xperia P, U, Sola, Go] akkufix:
Hmm, i saw some time ago, a datasheet from another combinated chip (also BT, FM...), there has to be first BT activation, before starting FM to get it work, because there was a common transmitter/receiver for them and so they used same main-register.

FM was only "docked" on BT.

Just as an idea...
[Sony Xperia P, U, Sola, Go] mikereidis:
That's not an issue here.

On these phones, FM uses a V4L /dev/radio0 driver and it works independent of whether BT is on or off.

To deal with enabling FM audio, there should be settings that can be made to the ALSA driver at /dev/snd/controlC0 or controlC1 or whatever. I forget the name of the common control utility, something like alsactl. And maybe there's some ALSA UCM use case manager, I don't know right now.

The trick is to figure that out. I tried a little bit once and had no luck. But even then, sometimes an audio chip will turn off if it "thinks" it's not being used, and just setting ALSA controls doesn't mean the audio library knows about the audio.
[Sony Xperia P, U, Sola, Go] 95A31:
Good, thank you :) I will let you know :)
[Sony Xperia P, U, Sola, Go] 95A31:
Ok this is the news:

With Spirit UL I get this logcat. I do not like line 8 and 250. For the moment I skip OMX problem and I want focus on 250 one. I check the code here, but I not figure out what is meaning -> what is the problem -> where start to fix. You know what is the propouse of OnScanListenerTransport ?
[Sony Xperia P, U, Sola, Go] percy_g2:
Can you explain what changes you did in sources ? or come on hangouts
[Sony Xperia P, U, Sola, Go] mikereidis:
Line 8 is nothing.

Line 250 is a null pointer exception in FmReceiverImpl.java, which is in the ST-Ericsson framework support for the FM API: com.stericsson.hardware.fm

Basically, it's broken somehow.

Most CM ROMs have had this FM framework support for a while now, broken on all but an FXP Sony CM build or two. Broken on every Samsung, HTC, and all but 1 or 2 Sony's.

But CM officially "does not support FM" so the CM devs mostly don't care that all those ROMs waste a bit of space with an inactive API, and one that's very broken and likely will never work.

So, Spirit ignores that API so it doesn't crash. Except on devices where the manufacturer is set to "Sony". And since this is a Sony device, you get the crash. Otherwise Spirit would use the V4L directly, when rooted, but the Spirit code for V4L assumes Qualcomm and so only basic tuning features would work; no RDS and some other features.

I'm assuming you have the broken CM FM support, and not the usable Sony version.
[Sony Xperia P, U, Sola, Go] 95A31:
Yes I image that something is broken because I fowardport FM code from CM 10.1/10.2 to CM11. For sure I miss something and/or not well adapt the code... (Anyway, I not understand why if I make some mistake then I can compile with success :confused:)

I want fix all this stuff and I think that almost all the stuff is done and, as usual, the problem is about a sh***y detail(s). My intention is follow the code back for undertand because I get the null pointer, but as I say I do not know the android audio system. Some idea about that ?

I also check the audio dev(s) that you mention and I found only /dev/snd/controlC0 nothing about /dev/radio0. Can it due to broken alsa ? You remember what is/are the FXP working build(s) ?

To all, today I was cleaning the device tree (maybe I cleaned too much, I will check [MENTION=5092285]Andrewasth[/MENTION] ;)) I see that ours devise use tinyalsa, and I readed somewhere in github that was used in "experimental phase". My questions are 1) It is necessary? 2) What is the function of tinyalsa?
[Sony Xperia P, U, Sola, Go] munjeni:
Start from "fm_unlock", see what is required/related to these:

236.E/AndroidRuntime( 5532): Process: com.mikersmicros.fm_unlock, PID: 5532

237.E/AndroidRuntime( 5532): java.lang.RuntimeException: Unable to create service com.mikersmicros.fm_unlock.fm_srvc: java.lang.NullPointerException
[Sony Xperia P, U, Sola, Go] Cyber_C:
I want to ask something

is there any workaround about audio? it's too quiet compared to stock

I know that devs are focus to bring the radio fm, but i'm curious about the audio hehe

thanks :)
[Sony Xperia P, U, Sola, Go] munjeni:
Just for idea, if you open service menu by dialing *#*#7378423#*#* there is fm radio test (simple ui where you can enter freq in mhz), so if these test working we can dissemble these apk and extrack fm radio java code :)
[Sony Xperia P, U, Sola, Go] Garcia98:
We don't have Service Menu APK in CM, anyone can extract it from a stock ROM and upload it?
[Sony Xperia P, U, Sola, Go] monioo:
Here you are https://dl.dropboxusercontent.com/u/54459280/ServiceMenu.apk
[Sony Xperia P, U, Sola, Go] mikereidis:
I don't think it will help. Service menu just calls a stock API or library or something, and CM doesn't have it.
[Sony Xperia P, U, Sola, Go] mikereidis:
/dev/radio0 is CG2900 driver access for FM radio/tuner. Nothing directly to do with audio.

I think it might have been Xperia Z or maybe Xperia T with an FXP with working FM. Some googling may tell.

I'm afraid I'm going to unsubscribe from this thread and leave you to it. I don't have time, sorry.

My advice is to forget about FM, unless you or somebody has at least 10-100 hours to spend on it.

It's funny that I have an Xperia P, but it's bone-stock and un-rooted, just like the HTC Status I have among my 20 test phones. For both the Status and Sony CG2900 devices I literally have just a few customers. So it's not worth it for me to spend any time on it, especially when a mere 5 Samsung flagship devices are 65% of my app sales and there are always fixes to be made for those.
[Sony Xperia P, U, Sola, Go] 95A31:
Now I pay attetion to feature enable not on optimization, sorry :p

[MENTION=4120742]munjeni[/MENTION]

Thank you for suggestes I will check all them (as soon as I can finish the compilaton phase again :laugh:)

No problem man, I understand you (fu** you Samsung :p).

Ty for suggestes :D and back here sometimes.

You will listen about FM in CM :p ;) See you soon :)
[Sony Xperia P, U, Sola, Go] munjeni:
That can be simple tested by deleting fmradio.apk so if fm test working than for sure it uses library, but if fm test not working than we can know it uses fmradio.apk api :D

But I am sure it not use fmradio.apk, instead I think it use framework fm implementation?
[Sony Xperia P, U, Sola, Go] munjeni:
Here is stock radio which I have hacked to work on my CM9 and MIUI rom, problem was only audio (no audio), but allso if you going to use stock rom library without need for compiling a new one, you will need to modify:

Maaybe better idea decompiling stock JB rom and adding fm smali to the CM11 framework + use stock JB fmradio lib + try with service menu if radio is working :)
[Sony Xperia P, U, Sola, Go] munjeni:
If you need smali, here is https://github.com/munjeni/jb_ex.se...amework.jar.out/smali/com/stericsson/hardware

Here is logcat after starting service test - fmradio -> http://pastebin.com/qALtGXse
[Sony Xperia P, U, Sola, Go] Anthrax:
Sorry for OT guys but I think we have got munjeni back, not with full development but helping other to get there.... :cheers:

:thumbsup:
[Sony Xperia P, U, Sola, Go] erorcun:
Percy started to port sources to cm10 in his git. =D

btw, I wanted to port fm radio but it seems 'bambook' don't have ste's audio chip. There are sources for fmradio.cg2900 and radio codes in audio libs but there should be more. ie. sony's radio app uses 'audio_output_radio' or something like that and it exists on cm codes too but it isn't there in leaked sources.
[Sony Xperia P, U, Sola, Go] Vaste92:
Hey, just a little question. As you may know, cocafe managed to get overclocking working on u8500 (he achieved to run the chip at 1,2GHz, with a very good boost on performances (11000 on antutu), that now are greater than SGS2). Will you ever take a look at his OC patch?

Here his post:

http://xdaforums.com/showpost.php?p=49662583&postcount=2855

This is the file that had been modified:

https://github.com/cocafe/i9070_kernel_CoCore-E/blob/master/drivers/mfd/db8500-prcmu.c

Scroll down till line 1120, cocafe added a brief description on how to overclock.

And, finally, the commit:

https://github.com/cocafe/i9070_kernel_CoCore-E/commit/969eadd30d834ff241a818922175825a3ad22aa2
[Sony Xperia P, U, Sola, Go] Andrewasth:
We have it in mind but it's not the primary concern. [MENTION=5265970]95A31[/MENTION] for wifi direct...I'm getting name not unique error still. I will send you logcat (didn't have time earlier)
[Sony Xperia P, U, Sola, Go] suyash691:
and please GPU OC
[Sony Xperia P, U, Sola, Go] Vaste92:
Thanks for the replay :)
[Sony Xperia P, U, Sola, Go] 95A31:
Very nice :) For sure I will use it as test for FM state :) Thank you again :)

Great job, continue in this way :) . Currently I do not studied so in detail FM stuff, I want stabilize Bluetooth and WiFi because I see that the other developers have some difficults to do it.

I spoked with cocafe, he say to me that he found some problem to apply it on Sony kernel, anyway I add it to my TODO list :)

Yeah I remember this error, check in init.st-ericsson.rc that the services wpa_supplicant and p2p_supplicant use both wlan0 as interface (like here). We can not use p2p0 because it have same wlan0's addess. Anyway file transer feature need more tests. Let me know.

I not have reference for this so I can not do this :p

Weekly news:

In this weeks I see that the other developers have some problem with Bluetooth and Wi-Fi. So I paused FM research for a while in order to stabilize this fixes. So for make understandable my jobs on github, I explain here because I do it and how I do it. As usual I do not enter in details in order to make more comprensible the post.

First of all, how they work:

WiFi

Hardware <-> Kernel (drivers) <-> wpa_supplicant <-> Android

Bluetooth

Hardware <-> Kernel (drivers) <-> BlueZ <-> Android​

Are avaible updated Wi-Fi drivers as I previous mentioned, but they do not work. I contacted the mantainer abut that and recentrly I received a beta patch. So I want update Wi-Fi drivers before stabilize Wi-Fi fix.

In order to do that I need update the entire wireless subsystem of the kernel because:

Kernel = general subsystem with standard interfaces <-> specific device drivers​

As usual I do it by backports. I choose same way for bluetooth. I adapted the Sony drivers to current bluetooth subsystem. [MENTION=4120742]munjeni[/MENTION] already integrate this drivers and updated bluetooth subsystem in his kernel with this commit. Because I must use backports for WI-Fi I decide to use it also for bluetooth. So I copy the [MENTION=4120742]munjeni[/MENTION] 's kernel the commit before the bluetooth integration (the follow commits are not significative in my opinion).

Finally I remove the legacy Wi-Fi drivers and subsystem from the kernel with this commit. Then I edit configure the kernel configuration file in order to exlude the bluetooth and wireless subsystem and drivers because they are compiled as modules by backports.

In order to do this last job I tryed to edit BoardConfig.mk like this but it not work and so I make a saparate script for compile bluetooth and wireless modules indipendently from ROM build. This force to add the modules to mobile memory after the ROM flash but is the only way that i found for do that. Currently I am testing this script :)
[Sony Xperia P, U, Sola, Go] wiz_khalifa:
Great news buddy!
[Sony Xperia P, U, Sola, Go] 95A31:
Daily update:

Hi guys, as mentioned I am working on stabilize wireless and bluetooth. Sony Wi-Fi drivers on CyanogenMod git give me a bootloop. New drivers are fine but they are not working (can not see the wireless network). I mailed to maintainer about that. Actually I do not think that we can solve it because he have a life and mee too. I am really frustrated becouse bootloop every 3 days due CyanogenMod changes, moreover there are only 2-3 developers that can bugfix on Xperia 2012 line. So I think that I will leave the developments soon.
[Sony Xperia P, U, Sola, Go] aca89:
Yes, but you have Xperia P. I was talking about XU.
[Sony Xperia P, U, Sola, Go] 95A31:
Every developer is focused on what enjoys. I choose to start to fix the bugs because I want a smooth and full working JB ROM for my XU.

Here all work fine so I can not help you. If you need a stable ROM I suggest you this by [MENTION=4499881]elia222[/MENTION]. The procedure that I usually follow when my phone is "messed up" is: Backup + Flash last official firmware by PC Companion + Flash ROM + Wipes + Restore backup.
[MENTION=359497]FXP[/MENTION] still updates the CM10, but seems abandon the support. I am very sad about it because he is a very skilled developer.

I not need logcat from Xperia U because I own one.
[Sony Xperia P, U, Sola, Go] loren82:
[MENTION=5265970]95A31[/MENTION] You can use any of the correctness of another device? I know that is not the same SoC, but not worth a guide?

For example, this is the correction that was made to make wifi tethering work on ZTE Blade https://github.com/KonstaT/android_device_zte_blade/commit/1722d70ff031be48841933d375163dd1ec001273
[Sony Xperia P, U, Sola, Go] 95A31:
Yes I can use it as guide for understand which files are to be edit :good:.

Daily news:

Right now I see for some seconds the notification of WiFi tethering.

In CM10.2 will be easy fix the WiFi tethering.
[Sony Xperia P, U, Sola, Go] loren82:
Look this http://xdaforums.com/showthread.php?p=44598733
[Sony Xperia P, U, Sola, Go] 95A31:
Weekly report:

Before start two things:

This report is intentionally oversimplifyed in order to be comprensible to all.

I come back to Android Network Deamon by CyanogenMod because it is good, contrary to what I said here.

I am lazy so I skip the introduction... :p The file involvend in the tetherig that I have modified are:

hostapd.conf: Tethering configuration file.

config.xml: Wi-Fi configuration file.

Android.mk: Configuration file for compile tethering software.

ctrl_iface.c: Source code of tethering's interface controller.

WifiStateMachine.java: Source file for know the Wi-Fi state.

SoftapControllerTI.h: Source code of tethering manager.

First of all I noticed that the tethering interface was different amon files, so I set it to wlan0 in all files. In particular i modified: hostapd.conf, config.xml, WifiStateMachine.java, SoftapControllerTI.h.

The second point involve this and this commit by [MENTION=359497]FXP[/MENTION]. He made a workaround in order to choose a tethering manager different from the standard one but not propagated the changes to all files. In particular this workaround must be applyed also to Android.mk and ctrl_iface.c.

The modified files ar avaible here.

With this changes, if I reboot the smartphone and activate the Wi-Fi Tethering, tethering's notification appear for some seconds and logcat return these errors:

E/hostapd ( 2731): Failed to setup control interface.
E/hostapd ( 2731): wlan0: Unable to setup interface.

If I turn off and turn on Wi-Fi Tethering again, nothing appear neither notification nor errors in logcat.
[Sony Xperia P, U, Sola, Go] 95A31:
The fix's publication is coming in a few days ;)
[Sony Xperia P, U, Sola, Go] marce78:
Thx man.

Is there a way to fix also WiFi disconnection on display off?

Inviato dal mio LG-E460 utilizzando Tapatalk
[Sony Xperia P, U, Sola, Go] werty100:
In the past i was triying to get FM working on CM but all i fix was:

Stable FM app no force closes swiching stations

But no sound with the headphones or with out then

---------- Post added at 04:24 PM ---------- Previous post was at 04:23 PM ----------

There was a fix for this on my MIUI i am locking for it

---------- Post added at 04:28 PM ---------- Previous post was at 04:24 PM ----------

Wifi on always:https://play.google.com/store/apps/details?id=com.shantz.wifikeepalive

or this:https://play.google.com/store/apps/details?id=com.apps.easy.wifikeepalive
[Sony Xperia P, U, Sola, Go] Vaste92:
There's one thing that i cannot undestand: are all these fixes merged on FXP repo, so that we can find them on FXP's build, or are you gonna compile one build when the fixes are ready?
[Sony Xperia P, U, Sola, Go] 95A31:
This fixes are not included in [MENTION=359497]FXP[/MENTION] github. You can apply manually each patch and compile CM10 by yourself. Probably i will release an comprensive custom rom, but no in the immediate future.
[Sony Xperia P, U, Sola, Go] 95A31:
Fix Wi-Fi tethering (Fixed in this post by [MENTION=5265970]95A31[/MENTION]):

As I said here the good [MENTION=359497]FXP[/MENTION] started to fix Wi-Fi tethering but not propagated the changes to all necessaries files. In particular must be modify also Android.mk and ctrl_iface.c. After that, is necessary enable the fix by some specifics flags in Android.mk. So the complete fix consist in complete the FreeXperia's work and set the necessary flags.

The corrected files can be downloaded from here. After have substituted the file in relative CyanogenMod's build folder, recompile and flash.
[Sony Xperia P, U, Sola, Go] DevSwift1:
hohoho nice:) I will use this fix in 4.1! Thanks
[Sony Xperia P, U, Sola, Go] marce78:
Oh . ... thx man, I'm waiting for this.

Inviato dal mio LG-E460 utilizzando Tapatalk
[Sony Xperia P, U, Sola, Go] underskyzx:
Any chance of fixing wifi going off when phone sleeps?
[Sony Xperia P, U, Sola, Go] kantry123:
bro any help in fixing bluetooth of xperia U?

bcz...its the only bug that is leaving most users to use these roms

pls.s. do reply if u have time

regards

kantry123
[Sony Xperia P, U, Sola, Go] Anthrax:
Hope you get this merged with your Xnovathor ROM....
[Sony Xperia P, U, Sola, Go] 95A31:
No, this fix not involve normal Wi-Fi connection.

I am currently working on FreeXperia CM10. Here bluetooth it is working.
[Sony Xperia P, U, Sola, Go] Wind07:
But OMX is broken right? Fix OMX and Bluetooh breaks right? Lol!
[Sony Xperia P, U, Sola, Go] 95A31:
No, for me both are working. I use android_vendor_sony by Team Canjica without this commit. I exclude it by reintroducing the deleted files. They are already present here.
[Sony Xperia P, U, Sola, Go] monioo:
I really appreciate your effort, but if cm11 is breaking booting with every update, why just not to shift to Omni or AOSP?
[Sony Xperia P, U, Sola, Go] xperia-alvis:
I also love AOSP... But I've heard that it'll be hard to build? Is that true?
[Sony Xperia P, U, Sola, Go] percy_g2:
Nope its easy ;)
[Sony Xperia P, U, Sola, Go] xperia-alvis:
Wow that's a very good information!!

Coz I think that AOSP will consume less RAM...

RAM management is one of the biggest issue for 512MB devices...:(

But why there isn't any dev working on AOSP Kitkat?:confused:
[Sony Xperia P, U, Sola, Go] Andrewasth:
3.4 is halfway ready ;)
[Sony Xperia P, U, Sola, Go] Wind07:
Using the leaked sources?
[Sony Xperia P, U, Sola, Go] Andrewasth:
Nope. Diff of 3.0.101 and 3.4.79
[Sony Xperia P, U, Sola, Go] ruditremonti:
Great..!!! Good news :D
[Sony Xperia P, U, Sola, Go] Wind07:
Holy how did you do it
[Sony Xperia P, U, Sola, Go] gigitux:
Good

Inviato dal mio Xperia U utilizzando Tapatalk
[Sony Xperia P, U, Sola, Go] netmaniack:
I would love to have AOSP. If CM ir creating problems AOSP is more stable base to work whit, thats for sure.
[Sony Xperia P, U, Sola, Go] KingLegend:
+1
[Sony Xperia P, U, Sola, Go] percy_g2:
Will release in a week for xperia p
[Sony Xperia P, U, Sola, Go] etch04:
have you guys seen this......

[GUIDE] How to port Bluez to Android 4.4!

[MENTION=4913184]percy_g2[/MENTION] [MENTION=5265970]95A31[/MENTION] [MENTION=4120742]munjeni[/MENTION]
[Sony Xperia P, U, Sola, Go] 95A31:
LOL not seen but already done by ourself :) Thank you, is more completed and detailed that any my future thread :)
[Sony Xperia P, U, Sola, Go] 95A31:
Can you guys check if Wi-Fi direct is working with this buid: http://d-h.st/JNF. Remember wipes after flash, they are fondamental. The sources are in my currentn github (device, vendor, hardware, kernel). Thanks to [MENTION=5092285]Andrewasth[/MENTION] for him stable repos.
[Sony Xperia P, U, Sola, Go] akkufix:
Sad to have no X-U for a quick check, but forked your repo. ;)
[Sony Xperia P, U, Sola, Go] 95A31:
Thank you :) I am waiting some reports :)
[Sony Xperia P, U, Sola, Go] alwaysadeel:
building to chk on sola ...
[Sony Xperia P, U, Sola, Go] 95A31:
Daily news:

I start to receive some reports about Wi-Fi direct. Good news: I understand that not work and why it not work. Bad news: our wifi driver is not able to manage wi-fi direct as done by android 4.4.2. So 1) Stress again driver maintainer in order to fix the driver 2) Downgrade Android Wi-Fi direct system to 4.1.2.
[Sony Xperia P, U, Sola, Go] Rodger_Rulez:
Yeah! Only this way) Ahaha:good:
[Sony Xperia P, U, Sola, Go] 95A31:
Daily news 2:

From now I am forced to work in a private way. If someone are interested to see the sources

in order to impove and develop

please send a PM to me.

Anyway I will release test ROMs, updates and detailed explainations as usual.
[Sony Xperia P, U, Sola, Go] munjeni:
I agree. I'm allso in private for everything future, nothing will go public.
[Sony Xperia P, U, Sola, Go] mirhl:
devs, why this turning if I could ask?

are you becoming pissed off of the community? People are ruining your work?
[Sony Xperia P, U, Sola, Go] Garcia98:
*Coughing very loud*

Leaked sources

*Cof, cof, cof*

I also don't know why they are closing their sources ;)

Enviado desde mi Xperia U mediante Tapatalk
[Sony Xperia P, U, Sola, Go] akkufix:
No, i think it has nothing to do of this args.

But it is sometimes better to have some quietness and thus a much better concentration for all this stuff.

Another thing also could be, that lots of partly solved things cruising around and nobody knows anymore, which is the real or latest state.
[Sony Xperia P, U, Sola, Go] alwaysadeel:
Well there is no pressure on anybody to develop or release. Its just something we do to please ourselves, to test our abilities. Good luck to all of u

Sent from my Xperia Sola
[Sony Xperia P, U, Sola, Go] 95A31:
Why I am alone in bugfixing? Why all wait that I "magically" fix all bugs? Why the fuc*** Wi-Fi modules are not loaded :D ?
[Sony Xperia P, U, Sola, Go] alwaysadeel:
because u know more than many of us :)
[Sony Xperia P, U, Sola, Go] Andrewasth:
Bluetooth module isn't loaded as well. That's on logcat and it also indicated to a2dp.

---------- Post added at 10:36 PM ---------- Previous post was at 10:00 PM ----------

For p2p. Check this https://github.com/CyanogenMod/andr...mmit/55b91ba49d9336fb5e4da56e1c8f49b84a6ce312 We haven't added -DANDROID_P2P flag in boardconfig. Maybe we should since we are using ti wpa supplicant
[Sony Xperia P, U, Sola, Go] 95A31:
Bluetooth module is build-in in the kernel. Not need to be loaded. For check use haltest from shell :o

ANDROID_P2P is included in wpa_supplicant_8_ti here https://github.com/CyanogenMod/andr...ti/blob/cm-10.2/wpa_supplicant/Android.mk#L37 :good:

I am happy that you are debugging with me :good:
[Sony Xperia P, U, Sola, Go] Andrewasth:
We have bnep.ko module for bt which is build with the kernel but located in /lib/modules/. If you delete it then bt doesn't work because there is nothing to insmod. Does bt transfer work for you? This wpa suppl is for cm10.2 but the changes are also there on cm11
[Sony Xperia P, U, Sola, Go] alwaysadeel:
bt transfer works.. pairing does not work
[Sony Xperia P, U, Sola, Go] Andrewasth:
On cm11? It doesn't work for me. I paired with an xperia mini yesterday but when I tried to transfer it failed
[Sony Xperia P, U, Sola, Go] Wind07:
I can pair and send with my neo v but I cannot pair with another S3 LTE
[Sony Xperia P, U, Sola, Go] alwaysadeel:
yes on cm11.. try sending first without pairing
[Sony Xperia P, U, Sola, Go] Andrewasth:
Sending yes but receiving?
[Sony Xperia P, U, Sola, Go] alwaysadeel:
Yes only sending, receiving goes onto pairing which FCs

Sent from my Nexus 7
[Sony Xperia P, U, Sola, Go] 95A31:
Someone know when/where/who load the Wi-Fi modules?
[Sony Xperia P, U, Sola, Go] Andrewasth:
They aren't loaded from .rc ?

Στάλθηκε από το Xperia U μου χρησιμοποιώντας Tapatalk
[Sony Xperia P, U, Sola, Go] 95A31:
install_wlan is not working :(