yashsingh1/xdaforums huggingface dataset:
[Spirit FM] dustofdeath:
Any idea how to handle the volume problem. Its at Max volume and u8800 volume control doesn't work. The debug volume limit does nothing and nether does any of the volume control modes under settings. It would be fine if it just limited to 75% or so at least. Using cm9 Tom on huawey ideos x5.
[Spirit FM] PhilCapron:
March 4th working OK on Galaxy S-TH CM9 Build 16,Semaphore ICS 0.91 (XXJVU modem)

And for the first time the speaker is working.This seemed to be connected to installing an alternative DSP manager-CM9 ICS Zip-from this thread.-http://xdaforums.com/showthread.php?t=1425973&page=2.

I'm not sure but up to this point my DSP manager may have not worked at all.

HTH.
[Spirit FM] mikereidis:
No.

My last advice was to try setting Audio->Volume Ctrl Stream to 7 then restart the app. And if that doesn't work try 10 and restart.

I tried several things and nothing worked. I don't have one of these devices, or anything similar, and I have no prospects of getting one anytime soon.

And in the FM thread in the u8800 section, someone has built the Code Aurora FM app and has it working, with RDS and possibly transmit. It's only built for ICS now, but someone can build it for GB I'm sure.

So with all the above, I'm giving up on these Qualcomm Tavarua FM devices unless and until they become much more popular, and I can get a physical unit.

I put well over 200 hours of development time into these devices, largely to get support for the V4L API integrated at least initially. But going forward, my time will be much better spent on the much more popular devices on my test-bench: HTC, Samsung, Motorola and even LG occasionally.

I will modify the topic subject to remove the reference to "V4L/Qualcomm Tavarua". :(
[Spirit FM] mikereidis:
Great ! Thanks for your report...

Interesting about the speaker; I'll have to try the DSP manager.

One of these days I'll have to see if FM record will become possible with the latest softwares. Can't let the SE X10s, Notes and Ideos guys have all the FM recording, DSP effects and VU meter fun. :)
[Spirit FM] alphaori:
I'm in Spain and tunning Spanish stations.

I noticed that bcprp was killed with killall command first time the app is turned off.

I checked it again and I attach the processes created and remaining after playing with your app. I hope it can help.
[Spirit FM] idkidk:
Hi,

Thanks for answer, some info:

I'have a Samsung galaxy tab, in this topic:

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

there is some information about SGT, (Broadcom BCM4329 chipset?) so i follow your instruction to try if SGT have some FM capability.

Now i've installed hcitool (hciconfig,hcitool,hidd) into /system/xbin, but the result of "hciconfig dev" is:

/system/xbin # hciconfig dev

hciconfig dev

Can't get device info: No such device

/system/xbin #

and:

/system/xbin # hcitool cmd 4 1

hcitool cmd 4 1

< HCI Command: ogf 0x04, ocf 0x0001, plen 0

Send failed: File descriptor in bad state

/system/xbin #

so: wrong hcitool? or SGT use a different manner to handle the bt stack?

Thanks!

Idk
[Spirit FM] idkidk:
Due to some "googling" i think (i'm sure) that SGT use a propietary bt stack so standard approach don't work.

There is someone that know how Samsung handle bt stack :rolleyes:?

Thanks

Idk
[Spirit FM] sirskull:
Yeps that's right. It is an original Winmo device. In Winmo I was able to use the radio with RDS and even TMC ability for my iGO software.

By using Y.Gen I made a sort of dual boot which allows me to start Android.

I have choosen to take the FRX06 ClockWorkMod version combined with the stable FroyoxGinger update. And updated my kernel to version 1313. :rolleyes:

Which version of Spirit FM Radio should I use? the market version or version 2011? :confused:
[Spirit FM] mikereidis:
I'll assume you tried the hcitool and hciconfig commands when BT was on.

Those results are unfortunately normal with the proprietary BT stacks. The HCI binaries seem pretty generic, but like my app, don't work with these bad stacks. This is why I created the HCI UART mode in v2.0.11 and 2.0.12.

These bad prop stacks come from Texas Instruments or Broadcom, not the phone manufacturers. I guess the manu's used them because they provided better capabilities a few years ago, and I think now they are stuck with them due to things like their FM apps being written to the proprietary APIs.

So, if you feel proficient enough, you might want to try my v2.0.12 app in the HCI UART mode with the bcprp and bcfm files. The bcfm file needs to be edited as in the instructions.
[Spirit FM] mikereidis:
:) I've read that thread several times in the last few months. There IS some misinformation there about the MIUI or CM app needing a /dev/radio device, and about the app supporting transmission. But perhaps some useful info also.

I'm not sure if the Galaxy Tab is like the Galaxy S. The GS has a Silicon Labs FM chip. but also has a Broadcom FM/BT/WiFi combo chip, but the FM part isn't used. So it strangely has 2 FM radios, but likely only one is usable, with connections for audio and antenna.

The Galaxy Tab might be the same or it could have just the Broadcom chip. But since FM is not a supported feature, I doubt the chip would be installed even if the PCB supported it. The Broadcom chip may or may not have antenna and audio connections.

Some teardown pics here: http://www.isuppli.com/Teardowns/News/Pages/Samsung-Galaxy-Tab-Carries-$205-Bill-of-Materials-iSuppli-Teardown-Reveals.aspx It's possible that someone with sharp enough eyes might be able to figure out if there is an antenna connection to the BCM 4329 chip.

I would bet that my app in HCI UART mode (or in regular mode on a ROM that supports hcitool) is able to control and monitor that BCM chip. If there is an antenna connection, or if the signal is strong, you may be able to see signal strength, seek and even see RDS.

But then you might not have audio, due to lack of physical connections, or because special commands need to be sent to the audio chips. The utilities I develop may work around the last case.

I'm also wondering if the HCI UART mode might be able to receive audio digitally via SCO over HCI. It may also be possible to send audio directly to BT headset, all internal to the combo chip.

If there is a Silicon Labs FM chip in the Galaxy Tab, and the Broadcom chip can't be made to work, I may still be able to handle that when I add support for the Sil Labs chips, maybe later next month. But those don't work over HCI; they require a device driver. The existing driver for the stock Galaxy S might work for that.
[Spirit FM] idkidk:
Hi,

I've the same result with bt off, i don't have the :

"service hciattach /system/bin/brcm_patchram_plus -d --baudrate 3000000 --patchram /system/bin/BCM4325D1_004.002.004.0218.0248.hcd --enable_hci /dev/ttyHS0"

in any .rc file in root.

With not working hcitool i'm not able to find the correct parameter for bcfm file.

This is the logcat when v2012 fm app start:

-----------------------------------------------------

D/fm_srvc (12723): setDeviceConnectionState ret: 0

D/fm_srvc (12723): SDCard / ExternalStorage available and writeable

D/fm_srvc (12723): API <=7 ext dir: /mnt/sdcard

D/fm_srvc (12723): Cache dir: /data/data/com.mikersmicros.fm/cache

D/fm_srvc (12723): fm_device: /mnt/sdcard/fm1

D/fm_srvc (12723): onStartCommand flags: 0 start_id: 1

D/fm_srvc (12723): binds: 0 rebinds: 0 unbinds: 0

D/fm_srvc (12723): onBind

D/fm_srvc (12723): binds: 1 rebinds: 0 unbinds: 0

D/fm_srvc (12723): lowpwr_set: false

D/fm_srvc (12723): onCallStateChanged: 0 incomingNumber:

D/fm_srvc (12723): onCallStateChanged: Idle

D/fm_apln (12723): on_srvc_cnctn onServiceConnected

D/fm_apln (12723): pwr_on

D/fm_apln (12723): vcs_get volume control stream: default

D/fm_srvc (12723): hrdw_set: 1

D/fm_hrdw (12723): hrdw_open dev_name: /mnt/sdcard/fm1

D/fm_hrdw (12723): api_mode_get

E/fm_hrdw (12723): system_hci_cmd no results

E/fm_hrdw (12723): hci_cmd error res_len: -202 hci_err: 254

D/fm_hrdw (12723): 00 10 00 00 1f 00 00 fe 00 00 00 00 00 00 00 00

D/fm_hrdw (12723): hci_cmd failed command ogf: 0x4 ocf: 0x1 cmd_len: 8 res_max: 252

D/fm_hrdw (12723): 00 00 00 00 00 00 00 00

E/fm_hrdw (12723): hci_ver_get hci_cmd error res_len: 0

D/fm_hrdw (12723): bcprp status: 256

D/fm_hrdw (12723): bcfm_start starting /system/bin/bcfm. Please wait 10 seconds...

D/su (12737): 10155 /system/bin/sh executing 0 /system/bin/bcfm & using shell /system/bin/sh : sh

D/bcprp (12740): bcprp direct bt mode and replacement for brcm_patchram_plus for FM HCI access daemon v2.0.12

D/bcprp (12740): Copyright (c) 2011 Michael A. Reid. All rights reserved.

D/bcprp (12740): bt_cmd btsock: 28

E/bcprp (12740): bt_cmd bind errno: No such device(19)

E/bcprp (12740): tmo_write write errno: File descriptor in bad state (77)

E/bcprp (12740): bt_cmd tmo_write error cmd_len: 4 written: 0

D/bcprp (12740): main uart mode rret: -1

D/bcprp (12740): default_bdaddr_set

E/bcprp (12740): default_bdaddr_set open: /data/misc/bluetoothd/bt_addr errno: No such file or directory (2)

D/bcprp (12740): cmdline_parse option: baudrate arg: 3000000

D/bcprp (12740): baudrate_parse: 3000000

D/bcprp (12740): cmdline_parse option: patchram arg: /system/bin/BCM4325D1_004.002.004.0218.0248.hcd

D/bcprp (12740): parse_patchram: /system/bin/BCM4325D1_004.002.004.0218.0248.hcd

E/bcprp (12740): file /system/bin/BCM4325D1_004.002.004.0218.0248.hcd could not be opened, error 2

-----------------------------------------------------

thanks

Idk
[Spirit FM] idkidk:
ok, i read your post after my reply, sorry.

I'll wait for some good news and... you have done a very goood job with this project!

thanks

Idk
[Spirit FM] idkidk:
More images here:

http://www.ifixit.com/Teardown/Samsung-Galaxy-Tab-Teardown/4103/1

Bye

Idk
[Spirit FM] riahc3:
As far as I see, this isnt working on a HTC Desire Z running CM7
[Spirit FM] alphaori:
Version 2.0.12 works fine for the first time. Like 2.0.11, all the features seem to perform nicely (rds, seeking, sound is great...). But it doesn't power off. When the power button is pressed, the buttons but power one are masked and stops playing anything. I can switch to other apps but I cannot power on the radio again: the power button shows that is pressed (it turns yellow in my case) and the app freezes.

I attached a log file.

Regards.
[Spirit FM] mikereidis:
There seems to be something very different about BT on your phone.

The path "/data/misc/bluetoothd/bt_addr" is provided by the system and appears to be invalid on your phone. I don't think it matters though as the UART mode doesn't support real BT.

The "--patchram" option needs to be followed by a valid Broadcom HCD file. I would use this command to try to find this file:

adb shell "find /|grep -i hcd"

If you can't find this file, one could be taken from another phone/ROM. I could send you mine if you need.

The errors in the log previous to the bdaddr error are normal and expected.

Now why is your BT so different ? Can you remind me what phone and ROM you have ? EDIT: Galaxy Tab with Overcome ROM ? Oh, ok, that's likely part of the reason you are having so much trouble. Nobody has ever gotten FM working on that device, and nobody is sure if it's possible.

With normal BT enabled, run "adb shell ps" so I can see what processes are running. Also a full "adb logcat" and "adb dmesg" right after boot would be good, but I'll look back on your previous posts to see what you've already posted. Also, a copy of all the "init.*" files in the root.

Thanks...
[Spirit FM] mikereidis:
At least one person, Victorino86, has reported success on a "UK Desire Z, with CM7 Nightly 68 or 69".

I presume the CM FM app is on this ROM and it works for you ? Generally, if the CM FM app works, mine should also.

If you are able to capture and post or send the "adb logcat" and "dmesg" logs, perhaps I can determine the issue.
[Spirit FM] mikereidis:
OK, thanks for your report and especially the log file. Did you capture the log until after the app freeze occurs ?

In any case, there are still issues being reported when trying to get the app to work a second time, so I will improve the code in that area.
[Spirit FM] idkidk:
Hi,

this is the result of grep command:

/ #

/ # find . | grep -i hcd

find . | grep -i hcd

./system/bin/BCM4329B1_002.002.023.0534.0590.hcd

/ #

so i replace the data into bcfm, start apk, FC, Done.

THANKS!

Idk
[Spirit FM] alphaori:
I didn't mention it, but I can't get the app to work a second time. I tried killing the app process, but no way. There are some "flush-XX:X" processes that I can't kill with "kill -9". And yes: I stopped the log capture after the app freezed.
[Spirit FM] rollon76:
For normal work of the application, in CM7 (on Wildfire they are absent) you'll need to install hcitool (hciconfig,hcitool,hidd) into /system/xbin
[Spirit FM] alphaori:
I had hcitool and I renamed it to hcit following mikereidis instructions, in order to get the app running in Direct HCI access mode. That mode worked fine for me in version 2.0.11.

HCI UART mode is the one that does not switch off cleanly. Even bluetooth doesn't start after powering on and off the app in that mode.

I tried installing hcitool again (keeping its filename), and hciconfig, hidd. I added the execution permissions. I don't find any change in the app behaviour.
[Spirit FM] mikereidis:
Your init.rc line contains:

service btld /system/bin/logwrapper /system/bin/btld -hb 3000000 -hp /dev/s3c2410_serial0 -lpm 1

It looks like Samsung doesn't use brcm_patchram_plus like most other devices with Broadcom proprietary stack. And their service is named "btld" instead of "hciattach" so they likely have a custom libbluedroid.so library, but that's not our concern here.

So for your bcfm file I'd recommend:

#!/system/bin/sh

/system/bin/bcprp -d --baudrate 3000000 --patchram /system/bin/BCM4329B1_002.002.023.0534.0590.hcd /dev/s3c2410_serial0

I'm assuming you have the standard /system/bin/sh shell binary. To confirm from a PC run:

adb shell

/system/bin/sh

exit

exit

You should get no errors and be back to the PC shell after the 2nd "exit". And "adb shell which sh" should show /system/bin/sh also. If yours is different, change the first line in bcfm.

The next issue is that I see no evidence in the logs that bcprp is even starting. After the log line like:

D/fm_hrdw (24498): bcfm_start starting /system/bin/bcfm. Please wait 10 seconds...

You should see something like:

I/ActivityManager( 1422): Start proc com.noshufou.android.su for broadcast com.noshufou.android.su/.SuNotificationReceiver: pid=2630 uid=10039 gids={1015, 3003}

D/su ( 2629): 10034 /system/bin/sh executing 0 /system/bin/bcfm & using shell /system/bin/sh : sh

The "D/su" line is essential. You need something like SuperUser.apk that will ask for permission to use root priiveleges, and you need to answer Yes.

Then you should get something like:

D/bcprp ( 2634): bcprp direct bt mode and replacement for brcm_patchram_plus for FM HCI access daemon v2.0.12

D/bcprp ( 2634): Copyright (c) 2011 Michael A. Reid. All rights reserved.

...followed hopefully by:

D/bcprp ( 2634): srv_len: 16 fam: 2 addr: 0x7f000001 port: 2112

D/fm_hrdw ( 2616): bcfm_start ok

Note that you need an SD card at this time. bcprp will create a file named /sdcard/bcfmok when it is ready to use by the app.

So also ensure you have the two files in these exact directories:

/system/bin/bcprp

/system/bin/bcfm: the edited file

AND ensure they are both executable. The following should work:

adb push bcprp /system/bin/bcprp

adb shell chmod 777 /system/bin/bcprp

adb shell "echo \#\!/system/bin/sh > /system/bin/bcfm"

adb shell "echo /system/bin/BCM4329B1_002.002.023.0534.0590.hcd /dev/s3c2410_serial0 >> /system/bin/bcfm"

adb shell chmod 777 /system/bin/bcfm
[Spirit FM] Kess78:
Hi Mike,

About record I noticed that now the files are recorded in .3gp, and the audio quality is much lower than in 3ga. Do you think you can add a way to record in 3ga again ?

Thanks
[Spirit FM] mikereidis:
Yes. It's still experimental of course... :)
[Spirit FM] thegrobi:
The same for my Acer Liquid MT.

Spirit FM Radio seems to get better signal than the original Acer Radio App, but the sound is to loud. I can´t change the volume with Hardware-buttons and also not with editing the app-settings.

I tried Versions 02.2012 and now the latest.

I hope really, that you will find some day a solution, cause FM Radio is an important feature for me.

Thanks and bye,

thegrobi
[Spirit FM] qzem:
@mike

About the Galaxy W I8150 with CM9 (ICS), the log cat that I have provided with method qdsp5v2, is everything that is happens before phone goes to soft reboot, as I mentioned. I'm sorry I didn't help you enough to get this thing working. If you'll have any other ideas what elss can I test, you just say. Thanks again!

Greets
[Spirit FM] mikereidis:
Tavarua has a switch for internal or external antenna. Perhaps it defaults to internal or that app switches it to an inferior internal antenna.

I contacted some manufacturers to see if they would be able to send me old phones. So far only HTC responded positively, and that was 2 weeks ago and I've neither seen nor heard anything since then.

If someone could get me a phone, permanently, I'd put more effort into this. But I have doubts anyone will even try to help by looking for a contact at Acer or Huawei or Casio or Qualcomm/Code Aurora, and I don't have the time to do so any further. I tried to reach someone at Huawei and was not successful.
[Spirit FM] mikereidis:
March 5: http://www.mediafire.com/file/ma62topce4wxqfv/Spirit_FM_Radio_v120305.apk

For devices with /dev/msm_audio_dev_ctrl using qdsp5v2* :

For Galaxy W:

New audio method qdsp5v2 Alt (Alternate):

- Uses headset_fmradio_rx instead of fmradio_headset_rx and same for speaker.

For Desire HD on ICS and similar :

New audio method qdsp5v2+ (plus):

- Adds some new magic.

- Tested only briefly. Effect on phone calls or other sounds/music NOT tested yet. Please report.

- Speaker seems to work at the beginning, but later only headset works.

For other devices:

New audio method Custom:

- Uses shell scripts or binaries /sdcard/sprt_mute, /sdcard/sprt_hdst and /sdcard/sprt_spkr. Will become configurable commands later.
[Spirit FM] mikereidis:
March 5 in the post above. :)
[Spirit FM] onesolo:
Wow, many thkx!!! With the latest version I can get sound on my DHD with ICS!!!
[Spirit FM] Quinny899:
Thanks for the working update mike. I think I need to update my theme. I'll make it holo dark ;)

Can you update the full version and pm me it? You can check your logs to show I bought it

quinny898@gmail.com
[Spirit FM] max-555:
The radio working on ICS but this is not stabil. I have stopped radio and don't have loudnis anymore. That's mean if I get email or sms I don't hear the notification sound.

After reboot I got it back. Now uninstall FM radio.

Won't lost my micro function. Nevetheless many thanks
[Spirit FM] Z0R:
have had the same problem. It doesn't work proper on DHD and corrupted sound setting.

Uninstall also.
[Spirit FM] Darkeyce:
Doesn't work for me.

Seems to be well on its way. I'm running IceColdSandwich on Inspire 4g. Sound works for 3 seconds or so either through speaker or wired headphones but then cuts out and wont come back unless i powercycle the app.

let me know if you want some additional information.
[Spirit FM] mikereidis:
I don't think we can PM files.

I uploaded it to mediafire, password protected it and PM'd and emailed you the link and password.

Let me know if it doesn't work. I've never tried the above before.
[Spirit FM] Quinny899:
Thanks, I'm currently booted into android but I'll boot back to windows and sort it out.

Would you mind giving me a crash course in the parts in UI elements?

I had it all working, but I've lost the files :/
[Spirit FM] mikereidis:
Thanks for all the reports. I guess there's a big demand for DHD FM on ICS.

I didn't experience the 3 second cutoff, but that might indicate a lot going on audio-wise on the phone.

I figured out the "magic" required to enable the FM audio, but didn't implement what's needed to re-disable it again, beyond what qdsp5v2 has always done. We'll get there, hopefully tonight or soon.
[Spirit FM] Quinny899:
Is there a UI thing that changes the colour of the text on the buttons?
[Spirit FM] mikereidis:
My 3 best posts on the UI Elements customisations:

http://xdaforums.com/showpost.php?p=21407305&postcount=2062

http://xdaforums.com/showpost.php?p=21611236&postcount=2086

http://xdaforums.com/showpost.php?p=21631594&postcount=2096

Don't forget to enable UI->Custom Elements. After any change, use the Back key from the app, then return to the app to see the changes.

If you do much work you should save it. You can use Menu->Test->Preferences->Export ti SDCard spirit.xml, but this will over-write any previously exported file.

If you reduce the file to just lines with "ui_el" in them, you can import the file later, or on another device without touching other config settings, presets etc.

So, for example, here is the result from setting Color A to cyan, and setting that as the forced background for all elements:

adb shell cat /sdcard/spirit.xml | grep ui_el

<string name="ui_el_all_force">ca</string>

<string name="ui_el_ca">cyan</string>

You could save a file locally on your PC with:

adb shell cat /sdcard/spirit.xml | grep ui_el > spirit.xml

You could then edit it, which may be easier than on the phone, if you understand the syntax. Then you could do:

adb push spirit.xml /sdcard/spirit.xml

And Menu->Test->Preferences->Import
[Spirit FM] mikereidis:
Yes, as in the 3rd link above "cyan 10 1 blue 20" will set text color to blue. You can enter this for one of the elements that applies to all you want, such as "T All Force" or "T All Default".

If you want all the other things to use defaults, you can use "d d d blue".
[Spirit FM] Quinny899:
Thanks mike, got it done now

How's this?

The icon is fully stock except it has a ics blue bar rather than red
[Spirit FM] Quinny899:
Ice Cream Sandwich theme:

Uninstall your current copy of Spirit FM free

Download and install this one:

http://ubuntuone.com/62TcBO4l7VSlXIAamhJWNJ

Download this spirit.xml and copy it to /sdcard

http://ubuntuone.com/7RU9HPDaqYQEEXzwve6HPI

Open spirit FM, accepting all the pop ups

Press Settings > User Interface > tick "custom elements"

Press menu > test > Preferences > Import from SD Card

Restart the Spirit FM app

Note: On gingerbread + below, you will not get the ICS style settings

This xml will also work on pro, but you won't have some of the UI. I have PMed Mike the pro apk with the mod, but you will need to contact him for that