yashsingh1/xdaforums huggingface dataset:
[Huawei Ideos X5 U8800] axistr:
Alright, after changing rom to ICS I tried the radio again. It seems the app gives similar results to CM7(.35).

First, I've tried the latest version on the market. On default Cyanogenmod with headphone the app still gives the max volume and speaker isn't working. With qdsp5v2 option phone goes to reboot again. And again you need to set Debug->BC 20780 otherwise audio will stuck again.

Then, I've tried the Feb9 version almost same experiences with my #248 post. So it is not stable for ICS also.

After that, I've tried the Feb8 version. Again same experiences with my #237 post. Headphones, speaker, and seek work. Audio is still max and with Debug->BC 20780 mediaserver is killed after closing the app.

In summary, I think the Feb8 version with qdsp5v2 is the best for ICS and CM7 for now. If you want to change to qdsp5v2, at first install reject the su access for the app then change to qdsp5v2 and reboot the app&phone. Next opening of the app you can give the su access and start to using. Only major problem is volume adjustment for me. The others are not so important.
[Huawei Ideos X5 U8800] mikereidis:
If there is nothing named with "radio" or "huawei" or similar in the title, the framework stuff will usually be in framework.jar and framework.odex .

I looked at the APK and the FM calls looked a bit different than I expected, but that doesn't mean much yet.

EDIT: I also looked at libfm_volume.so, which sounds promising for the volume issue, but it's fully of HCI calls, which I think means it's for the Broadcom chips, Huawei uses on other phones.
[Huawei Ideos X5 U8800] mikereidis:
I can try setting the Tavarua code to what it was for Feb 8 then.

Easier than rejecting the SU access is what I said above. Give it SU, but at the Intro screen, just hit Back. Then you can change settings before a power up.

BTW, older versions than the current Feb 14 cached the "SU" access state. So even if you changed SU status in Superuser.apk, the app would retain the original state (or think it did) unless you re-installed or rebooted. App power cycle wouldn't work unless memory got very low.
[Huawei Ideos X5 U8800] honking:
would you please upload u8800-51 stock rom ?
[Huawei Ideos X5 U8800] dancer_69:
Is already uploaded on general section, post 26:

http://xdaforums.com/showthread.php?t=1330482
[Huawei Ideos X5 U8800] mikereidis:
Feb 20 is on the Market now. I only made 1 small change to try and get it back to like Feb 8: On app shutdown a "killall mediaserver" is done via the shell w/ SU if available. On both versions another method (kill) is used, but it may not work, or 2 kills might be better.

There are 2 other small changes compare to Feb 8:

(1) - "killall mediaserver" should be done when the phone rings. (But it looks now like it's broken still.)

(2) - You shouldn't need to set Debug->BC 20780 to enable power down kill of mediaserver. This setting is now a list instead of a checkbox. The default of Automatic, or "disable" will enable the kill. Setting to "enable" will disable the kill. Yes that's a bit backwards.

As I've said, you can change SU now with only an app power cycle. You shouldn't need a device reboot.

Also. if you need to configure the app before starting, use the Back key at the Intro screen. The Intro screen can be forced by an uninstall and reinstall, or in the app select Menu->Help->Intro->Keep . With keep selected last, you will always get the Intro.
[Huawei Ideos X5 U8800] LeonelG:
I'll try.

the last time you used it, and gave FC had to uninstall
[Huawei Ideos X5 U8800] axistr:
@mikereidis, I've installed the Feb 20 Market version as well.

As you said, now I can configure app when intro menu active. It seems still the same as previous market version. With default settings(Cyanogenmod), only headphone works. Play/pause, speaker don't work. With default Debug->BC 20780, audio is restored and if I "enable" it audio isn't restored. I couldn't test the phone ring.

If I change to qdsp5v2, phone goes to reboot again in 3-5 seconds.

If it helps here is the log --> http://pastebin.com/jmLhtaKF
[Huawei Ideos X5 U8800] mikereidis:
I got the /home/mike/Downloads/dload Froyo Original.zip but it's not a system dump I can examine easily.

If someone could dump the contents of /system and whatever, that would be useful.
[Huawei Ideos X5 U8800] dancer_69:
I've dumped the system.img with dsixda's kitchen.

I will upload it soon.

EDIT:

http://www.mediafire.com/?rawi64n1c81uqz8
[Huawei Ideos X5 U8800] honking:
it seems that u8800-51 is u8800pro's alias ,not u8800.
[Huawei Ideos X5 U8800] mikereidis:
And the pro allegedly uses a Broadcom FM combo chip.

I thought the app posted most recently seemed to look a bit funny. It used only a subset of APIs and missed normally important ones like acquireFdNative(), to open the device driver. Huawei may have integrated the APIs so there are at least some common APIs, which makes for easy confusion.

So, is the Huawei FM app for the Tavarua just a dream ?

The only other Huawei device I know with Tavarua is the X6 u9000. Is that confirmed to have a working Huawei FM app ?
[Huawei Ideos X5 U8800] honking:
I found two tools can control u8800's fm in shell, they call fmconfig and fm_qsoc_patches. I run them in shell, it seems that fm works well without error, the only problem is no sound. They are fm test tool, can we get some useful information from these tool?
[Huawei Ideos X5 U8800] Parrad11:
I am not sure if it was coincidence or not, but running "fm_qsoc_patches 33620484 1" (fm_qsoc_patches <ChipVersion> <0, 1, 2 for normal/wa_enable/wa_disable> [true/false for Analogmode]) appeared to reduce the amount of the background "sh" noise, at least through the speaker.
[Huawei Ideos X5 U8800] mikereidis:
If they work, yes.

I've seen lots of fm_qsoc_patches files, including on phones without Tavarua. But most of those phones have Qualcomm SOCs, so the file may be "leftovers". Or it might even do something for an audio port intended for fm...

There also lots of different init.qcom.fm.sh files. So the command line utilities might do very different things on different phones. And some ROMs may not have the best utility, so I think it'd be useful to collect and compare the different versions.

I have lots of those 2 files on my dev PC: fm_qsoc_patches and init.qcom.fm.sh . But I don't have a single copy of fmconfig, despite having several ROM dumps in directories.
[Huawei Ideos X5 U8800] mikereidis:
So your device had a chip "version" of 33620484 set in the hw.fm.version property ?

If something like "fm_qsoc_patches 33620484 0 true" will disable digital audio and enable analog audio, that might be an improvement, if digital is unstable.

Re: hw.fm.wcm -> hw.fm.mode

So what is "WCM", now called mode ? I presume the M is for mode, so it's "W... C... Mode"...? fm_qsoc_patches can do some sort of calibration so perhaps c is for calibration ? Just wild guessing...

The non-modem (baseband or radio) side of Qualcomm source code tends to be pretty open on Code Aurora. So I'm not sure why I can't find fm_qsoc_patches.c with a Google search. The other FM source files I found referenced are:

fm_api_common.c

fm_api_task.c

fm_pal_bus.c

fm_pal_config.c

fm_qsoc_calibration.c

fm_qsoc_common.c

fm_qsoc_patches.c

fm_rx_api_buf.c

fm_rx_api.c

fm_rx_api_cmds.c

fm_rx_api_events.c

fm_rx_qsoc.c

fm_rx_qsoc_isr.c

fm_rx_qsoc_xfr.c

fm_tx_api_buf.c

fm_tx_api.c

fm_tx_api_cmds.c

fm_tx_api_events.c

fm_tx_qsoc.c

fm_tx_qsoc_isr.c

fm_wan_api.c
[Huawei Ideos X5 U8800] honking:
I have searched these files too, gut got nothing.

I upload fmconfig and fm_qsoc_patches to the forum, you can have a look on it.

The tools come from this rom (http://ics-aurora.googlecode.com/files/aurora_1.8.zip), they work fine one my phone(u8800).

below is the output when fmconfi is running

root@android:/ # fmconfig
fmconfig
fmconfig - FM V4L2 device configuration application
Usage:
<command> <opts..>
enable Open and initialize FM Radio device
disable Close FM Radio device
setfreq <freq > Set Frequency ex. setfreq 93500
getconfig Get Current Configuration
seek <up/down> Seek <dir> ex. seek up
scan <up/down> Scan for list of stations ex. scan up
searchlist Search a list of stations
quit Quit application

>enable
enable
Enabling FM ....
VIDIOC_QUERYCAP returns :0: version: 33620484
Driver Version(Same as ChipId): 2010204
qsoc_onpath = fm_qsoc_patches 33620484 0
emphasis :0
spacing :2
RDS system :1
Band :1
RdsOptions :17
Cmd Status .... 0

View attachment 914109
[Huawei Ideos X5 U8800] mikereidis:
Yeah, so, you could use these commands as an alternative to my app, or they could be called by an app someone built.

But there are no audio functions there, although my ssd could do it I guess. That should be a way to test and avoid crashes, although it it still crashed the device, that would indicate a kernel issue I'd think.

While closing some of my windows I noticed this: https://www.codeaurora.org/gitweb/q...fd9589255d63dfb40;hb=refs/heads/ics_chocolate

It has a few functions I don't recall from previously, including these:

android_hardware_fmradio_FmReceiverJNI_setNotchFilterNative

android_hardware_fmradio_FmReceiverJNI_setAnalogModeNative

The first does "Enable/Disable the WAN avoidance" which is the mystery wa/wcm 2nd parameter to fm_qsoc_patches. So my guess is that this "narrows the notch" of FM frequencies received, in order to avoid interference from WiFi, and perhaps BT or even cell radio.

The second seems to enable or disable analog audio. I continue to think analog will be better, except for recording.

There is nothing there for volume, so I think volume is definitely not a chip function, but an audio system function. Analog audio may give us easy control of volume. Perhaps the u9000 defaults to analog...

EDIT: I looked at fmconfig and it looks mostly like a generic V4L FM utility, but with a few references to Qualcomm system properties.

fq_qsoc_patches made reference to this variable, which we want "true" for analog:

ro.fm.analogpath.supported
[Huawei Ideos X5 U8800] Parrad11:
I guess that explains why the background noise is reduced when "fm_qsoc_patches 33620484 1" is run from the command line.

using "getprop hw.fm.version", "getprop hw.fm.mode" and "getprop hw.fm.isAnalog" seems to return nothing so these values are not set

(so running system/etc/init.qcom.fm.sh causes fm_qsoc_patches to print the help line)

in system/etc/init.qcom.fm.sh

there seems to be a third option for <0, 1, 2 for normal/wa_enable/wa_disable>

"config_dac")
/system/bin/fm_qsoc_patches $version 3 $isAnalog
;;
[Huawei Ideos X5 U8800] mikereidis:
Yes, that's the parameter I set as true in the line "fm_qsoc_patches 33620484 0 true" . Or perhaps that should be a 1, I don't know.

Regarding the noise, my first thought was that the extra high gain of an audio amp was being reduced to proper levels, as I've seen on some other devices with much too loud volume.

But the value 1 is I think wa_enable, which may reduce the size of the frequency "notch" which should reduce static. It would also reduce frequency response so that the highs were gone. Or analog/digital modes might have been swapped.

I'm starting to think that one of us should open a thread in the development section. But OTOH, some admins seem to think only ROM or kernel development belong there. And analyzing the stock FM stuff or discussing my closed source app might be deemed best in the Q&A or General sections, or even the Apps section.
[Huawei Ideos X5 U8800] Parrad11:
I was sort of pointing to the value '3' within that code, which I understood as 0: normal, 1: wa_enable, 2: wa_disable and 3: ? (I should have said four instead of three).

but it seems that maybe it uses 1,2 and 3 and not 0 for the second value?

root@android:/ # fm_qsoc_patches 33620484 0
255|root@android:/ # fm_qsoc_patches 33620484 1
root@android:/ # fm_qsoc_patches 33620484 2
root@android:/ # fm_qsoc_patches 33620484 3
root@android:/ # fm_qsoc_patches 33620484 4
255|root@android:/ #

results in

root@android:/ # dmesg
...
<4>[5180, fm_qsoc_patches] [13415.008976] do_exit: exit code=65280
<4>[5185, sh] [13418.246982] do_exit: exit code=256
<4>[5187, sh] [13421.405216] do_exit: exit code=256
<4>[5189, sh] [13424.534427] do_exit: exit code=256
<4>[5190, fm_qsoc_patches] [13427.430148] do_exit: exit code=65280

so using 0 or 4 outputs the same "exit code=65280", but 1,2 and 3 output nothing.
[Huawei Ideos X5 U8800] dream4:
Hi Mikeridis,

I tried tonight this with dzo's ics-aurora.Don't know if it helps but there's not any freeze/fc/reboot.This is a nice movement i guess,because i couldn't even start this at my old roms.

Bugs:

-No spaker voice

-There's not any volume control,volume is too loud besides a louder voice from right earphone.

I hope you fix them all in the near future for u8800,cause here there are at least hundreds are ready to pay for spirit.;)
[Huawei Ideos X5 U8800] mikereidis:
Looks right to me. 65280 is 255 * 256, which likely indicates the common error number of -1.

A helpful person on this thread sent me a copy of fm_qsoc_patches.c from 2009 it appears. It's for Tavarua but that version didn't support any command line parameters it seems.

Some small nuggets of info: Chip version reported as 02010204 means chip version 2 and firmware version 1.2.4.

It looks like the "patches" part of the name is true and it operates similar to Broadcom's approach: The firmware is in real, true READ-ONLY memory that can't be changed. But that code is copied to RAM, and this utility can patch up to 16 functions or so.

So, unlike TI that has external firmware files that can more easily be hacked, these devices have hard ROM that can't be reflashed or easily read. But Broadcom devices do have a security hole, due to instructions that can read any byte, LOL, so these may be similar. Just need a "SuperPeekPoke" function.
[Huawei Ideos X5 U8800] mikereidis:
:)

Can't be hundreds, not at the current price of my paid app. The best device I have is the Samsung Galaxy S, with 64 paid customers.
[Huawei Ideos X5 U8800] salomaoa:
I would pay for it! My brother too
[Huawei Ideos X5 U8800] VuDuCuRSe:
So do it...

why waiting? It's mostly working, so if there's a time to buy it is now... that or wait for the developer to get the time and will to continue developing, hoping that later some more folks may or may not buy the paid app...
[Huawei Ideos X5 U8800] mikereidis:
Or if you have more time than money you could try and find a magical email address at Huawei where I can ask for a loan of devices for testing.

HTC has promised to send me old phones, but I've yet to hear anything after a week. Samsung also has a lend program, and a remote test lab, but I haven't figured out either yet.

The Huawei app dev forum I signed up for is a joke. I found an email and sent one last week but have heard nothing.

The last "normal" job I had was with a Chinese company with local offices. That experience was ""very interesting"" and leads me to feel Huawei, like so many "extremely cost focused" asian companies, just doesn't care. But you never know when some helpful person at some local office might be able to throw an old phone into an envelope and mail it. Probably dozens in drawers and headed for the garbage soon.

Also, there are remote testing services such as "Device Anywhere" that might be useful and perhaps someone could open an account for a few bucks. Whether or not they have u8800 remains to be seen, and likely only with stock ROMs.

But if someone wants to do some research on this, this page has some interesting links: http://www.madewithmarmalade.com/keeping-those-negative-reviews-away

And for now I need to get back to the Samsungs and HTCs and Motorolas that seem to make the u8800 just a small blip on the radar...
[Huawei Ideos X5 U8800] dream4:
Hi mikereidis,

I downloaded your today's update from market and so weird!even if there is not an explanation for u8800 i can hear it equally from earphones:)but please just solve to decrease this volume a bit at least.
[Huawei Ideos X5 U8800] egul:
which rom you are using?
[Huawei Ideos X5 U8800] dream4:
Dzo's ics.aurora.
[Huawei Ideos X5 U8800] egul:
i get no sound with dzos ICS 1.9

sometimes crashing and restarting
[Huawei Ideos X5 U8800] mikereidis:
I'd love to know how to fix the volume issue.

"Silly" little things like this can seem so simple, but can easily take 40, or even 200 hours to reverse engineer and figure out. ESPECIALLY remotely when I don't have a phone. And solutions might not be easy or possible on some ROMs, and could be different on different ROMs.

So I strongly urge anyone with any dev skills whatsoever to try and figure out this "little" problem and help me and all of us.
[Huawei Ideos X5 U8800] JanviN:
I was wonder, what version you guys using? The offical in the market, or one of those in this thread?

@mikereidis, I really appreciate your work with your SPIRIT-app. If this app will work fairly smooth on my X5 I'll buy the paid version.. definitely. Keep on ;)
[Huawei Ideos X5 U8800] honking:
I build a fm app , it seems most function works well. Everyone can have a try

I post it to a forum in china, here is the link

http://bbs.anzhi.com/thread-4916263-1-1.html
[Huawei Ideos X5 U8800] Blefish:
Can you make a mirror? I don't understand a thing on the forum.
[Huawei Ideos X5 U8800] JanviN:
I tried to install it on Miui-111250 running .32 kernel.

This was the message I got:

There is a problem parsing the package.
[Huawei Ideos X5 U8800] mikereidis:
Can you upload it somewhere, or at least give us a URL ?

I tried to guess and clicked a few places with no success. Do you need an account there ?
[Huawei Ideos X5 U8800] JanviN:
Yeah. You need an account.

Here's the package: http://xdaforums.com/attachment.php?attachmentid=920479&stc=1&d=1330257515
[Huawei Ideos X5 U8800] honking:
I have uploaded the apk file and the source code to the forum.

The app works fine on ics 4.0.3.

Maybe I can do nothing to fix the bug, because I don't have much develop experience with java/c/c++.

I hope someone can fix the bug
[Huawei Ideos X5 U8800] egul:
omg it is working!!

is it miui fm app??
[Huawei Ideos X5 U8800] honking:
it comes from cm7, also is from miui.
[Huawei Ideos X5 U8800] MpApQ:
QUOTE=egul;22983766]omg it is working!!

is it miui fm app??[/QUOTE]

On my X5 with 4.0.3 works great! I thought it will uses the internet but it doesnt uses!

Thanks for the dev of this great app!!
[Huawei Ideos X5 U8800] egul:
thanks for sharing this Fm app

its working very well

volume is adjustable but still high volume :)
[Huawei Ideos X5 U8800] JanviN:
Does this app require .35 kernel?
[Huawei Ideos X5 U8800] snafu006:
worked for me
[Huawei Ideos X5 U8800] Blefish:
Problem parsing the package on the stock GB, but good job!
[Huawei Ideos X5 U8800] MpApQ:
I have 2.6.35.7 kernel... And it work great!
[Huawei Ideos X5 U8800] honking:
do you try my upload?

http://xdaforums.com/attachment.php?attachmentid=920480&d=1330257564

btw , I add this code 'android:sharedUserId="android.uid.system"' to AndroidManifest.xml in order to get permission to start/stop fm_dl service. So this app may not work on stock rom, because they have different signature
[Huawei Ideos X5 U8800] JanviN:
You who've gotten this to work, Which rooms do you run, and which kernels?

@honking, great work. Only one thing to say .. Congratulations
[Huawei Ideos X5 U8800] honking:
this app works depends on sereval conditions.

1. kernel support (it seems that all the kernel have enabled the radio module.

)

2. /system/bin dir should contains fm_qsoc_patches and the rom should define fm_dl service in init.huawei.rc. and a script localed at /etc/init.qcom.fm.sh to download the firmware for radio function

3. it does not work on stock rom ,because the app's signature is different from stock's package called 'android.uid.system'

in the doz's ics rom ,it works
[Huawei Ideos X5 U8800] pandamaluko:
Can't install in elite rom. It gives me an error.
[Huawei Ideos X5 U8800] dream4:
First i couldnt get any voice after 3-4 times trial it worked with volume control.

Im on dzo's ics btw.

MAY THE GOD BLESS YOU!
[Huawei Ideos X5 U8800] genti7:
so this works only on dzo ICS?
[Huawei Ideos X5 U8800] Micco85:
Thank you! This works very well!
[Huawei Ideos X5 U8800] Repeal:
One bug, when you stop, it won't work until you kill it.
[Huawei Ideos X5 U8800] JanviN:
Is it possible to make it work in the offical GB?
[Huawei Ideos X5 U8800] Davoss:
Open radio app, press back button, scroll down status bar, open radio notification and it starts play. No need to kill this app.
[Huawei Ideos X5 U8800] dancer_69:
It has a strange behaviour. When fm is powereoff and on again, it fails to change the volume, and haven' t sound at all. If press back and rerun the app the sound is fine again. If I've fm powered off and exit from app, again the sound is muted when rerun app, and needed to again power on the fm, exit the app and rerun it.
[Huawei Ideos X5 U8800] snake_boss:
Parsing error on Elite ... what's the reason for this behaviour?
[Huawei Ideos X5 U8800] kilroystyx:
@honking

Our device is now one step forward. Congratulations ;)

On my I have this behavior.

- Vol min is too loud.

- App shut down when i'm trying renaming station bar.

Do you confirm?

I'm with ICS from dzo.
[Huawei Ideos X5 U8800] dancer_69:
I can confirm these too on

Aurora ICS from dzo .
[Huawei Ideos X5 U8800] pandamaluko:
+1 :(
[Huawei Ideos X5 U8800] Awee313:
Very good job! It works on dzo's aurora ICS

Yes i can confirm that the low volume is loud (it is usable only on the lowest volume because everything above is very loud)

But otherwise it works perfectly
[Huawei Ideos X5 U8800] Alex2108:
why so many permissions needed? :eek: not that big problem because you can look at the source code but i still want to know why...
[Huawei Ideos X5 U8800] salomaoa:
Can't install on Cm7 7.2.0 (latest for gingerbread).

Allway get an error during install. Any ideas why?

Salomao
[Huawei Ideos X5 U8800] honking:
when the radio is enabled, it will start fm_dl service to download the radio firmware. Start a service from app needs system permission.
[Huawei Ideos X5 U8800] Alex2108:
bigger prolem is that it has the permission to call numbers. don't think it will use it but why is this needed? and thanks for the explanation why system permission is needed :)
[Huawei Ideos X5 U8800] JanviN:
I've just tested @honking's package in Miui 2.1.20 (.35 kernel). This was by no means successful. In fact, I was'nt able to install it because of "parsing problems".

Right now, I'm running dzo's ICS, and everythings working.

Any particular reason why this does'nt work in Miui? Someone who's gotten this working in other roms than ICS?

I miss miui already :(
[Huawei Ideos X5 U8800] salomaoa:
Same here with Cm7 (.35 kernel). It seems like it's only working on ICS...
[Huawei Ideos X5 U8800] Tcm9669:
Not working in oxygen either.. cant install it
[Huawei Ideos X5 U8800] honking:
I recompile the app with caf app code, it seems that can fix some bug .

when enable/disable the fm ,it will not lost sound.

It works on dzo's aurora 1.10.

I will find a way how to make it to work on other roms when I or somebody else fix most of the bug on ics

here is the apk and source
[Huawei Ideos X5 U8800] darktwinkle:
I still have problems parsing the package on elite rom :-( guess I'm gonna have to upgrade to ics
[Huawei Ideos X5 U8800] Parrad11:
Does logcat provide any hint as to why it is not working?