Lets get FM Radio on the Optimus S

updates?

Ok so i got bored and so i tried the droid 2 method because it's the only one i found not requiring the htc sense framework. http://forum.androidcentral.com/motorola-droid-2/37289-fm-radio-droid-2-a.html

This is as far as i got, but i believe thats because this is worked out for motorola. The original guy did this with files from an LG phone, but i couldnt find those files anywhere or instructions.
deviceg.jpg
 
So... a coworker of mine got a Windows-based HTC phone, and he says he can listen to FM radio through an app which uses his headphones (any headphones) to pick up the radio signal. Assume it does it by picking up what the radio signals that the wiring in the headphones can pick up - any chance we could do something similar here?
 
This may be a stupid question, but could it be a problem with the audio mixer? Like, is mixing even enabled? Because I know when the phone is booting, it's dealing with only the speakerphone or w/e so it can put out notifications. Could it be something with our ALSA lib? Try taking that out of the P500 and replacing ours with it.
 
So... a coworker of mine got a Windows-based HTC phone, and he says he can listen to FM radio through an app which uses his headphones (any headphones) to pick up the radio signal. Assume it does it by picking up what the radio signals that the wiring in the headphones can pick up - any chance we could do something similar here?

That's what this effort is trying to accomplish. Bluetooth modules have FM components, in order to receive, you need an antenna and the headphone jack is hooked to the antenna line on the Bluetooth chip.
 
came across something that might help

#!/system/bin/sh
# Copyright (c) 2009, Code Aurora Forum. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of Code Aurora nor
# the names of its contributors may be used to endorse or promote
# products derived from this software without specific prior written
# permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

setprop hw.fm.init 0

LOG_TAG="qcom-fm"
LOG_NAME="${0}:"

loge ()
{
/system/bin/log -t $LOG_TAG -p e "$LOG_NAME $@"
}

logi ()
{
/system/bin/log -t $LOG_TAG -p i "$LOG_NAME $@"
}

failed ()
{
loge "$1: exit code $2"
exit $2
}

/system/bin/fm_qsoc_patches
exit_code_fm_qsoc_patches=$?

case $exit_code_fm_qsoc_patches in
0) logi "FM QSoC calibration and firmware download succeeded";;
*) failed "FM QSoC firmware download and/or calibration failed" $exit_code_fm_qsoc_patches;;
esac

setprop hw.fm.init 1

exit 0
 
That file is exactly the same as the Optimus T one, I already looked into it. The FM radio requires kernel level edits as well as some ramdisk edits. Then the proper bin files and app need to be in the framework.
 
when u run it in terminal

export PATH=/data/local/bin:$PATH
$ $su
# sh /etc/init.qcom.fm.sh
/etc/init.qcom.fm.sh: /system/bin/fm_qsoc_patches: not found
#


Maybe we need that file to initiate the reciever
 
That file is exactly the same as the Optimus T one, I already looked into it. The FM radio requires kernel level edits as well as some ramdisk edits. Then the proper bin files and app need to be in the framework.

the kernel part is interesting coz i can get the framework/fmradio.apk to run without crashing it just keeps saying fm service disabled even when i hack it to be set to what i think is enabled.
 
you know theres apps you can get to stream local stations and stations from all over the country over the internet. Tune in radio works very well for me.
 
you know theres apps you can get to stream local stations and stations from all over the country over the internet. Tune in radio works very well for me.


your joking, right?

anyhoo - If you guys get this going, i'd be actually willing to click a donate button via paypal =)

I'm not familiar with too much coding, but it sounds like you guys are on the right track. GETTUM!
 
you know theres apps you can get to stream local stations and stations from all over the country over the internet. Tune in radio works very well for me.

Holy crap dude, read the thread for Christs sake.

This is about FM radio not Internet Radio. Why does every FM radio thread get plagued with "but I can stream it online with *insert app*"?

BTW I have the full version of Tunein, RadioTime. It is a nice app, but they don't have EVERY station due to licencing.

Also, even if it did, it wouldn't stop me from wanting to unlock features of my device.

This is in responce to someone on PAGE 1 and this is on the TOP of page 2.
 
gents ... play nice. The user was stating an opinion. While i agree their opinion might not be for everybody and someday i would love to have FM radio, for the time being i use tunein and it's a great stop gap until we have FM.

A suggestion for the future might be a response along the lines of:

"While i agree tunein offers a great variety of station, it streams over data which uses a considerable amount of battery when compared to FM. Also tunein doesn't have licensing for all stations so your favorite local station may not be available. Plus .... who doesn't want more choices?"

See that, it is possible to have differing opinions but acknowledge their opinion and politely state yours :)
 
Everyone:
It wasn't necessarily a silly question. My old Samsung phone had an FM receiver built in. Several of the Android phones have the hardware to do both FM receiving and transmitting, and there has been some work done on on various phones to make it functional. As far as I know, though, nobody has gotten FM transmitting working yet.
 
Transmitting would be cool, but I'd really just like FM receiving to function. I can't think of a better add-on than FM radio receiving for the Optimus.
 
Everyone:
It wasn't necessarily a silly question. My old Samsung phone had an FM receiver built in. Several of the Android phones have the hardware to do both FM receiving and transmitting, and there has been some work done on on various phones to make it functional. As far as I know, though, nobody has gotten FM transmitting working yet.

bcm4239 has receive and transmit
bcm4235 has receive only

we have bcm4235.
 
I just considered picking up an optimus today so I have been reading up on it. I saw this site and it seems full of information.

Now to get to my point.

I am totally new to this, but the Sprint one is the Optimus S correct?
The T-mobile one is the Optimus T and has FM radio.

I am unsure where to look up chipsets and software info but maybe this will help