[GUIDE] CM10.1 and FM Radio..Finally AUDIO WORK!

Search This thread

zicoxx

Senior Member
Dec 26, 2010
285
234
In Cm rom 10.1 for lg optimus 4x there is a problem : fm radio do not run..
infact i try to use Spirit FM but no audio also if tuning runs very well..

so i try some things to set audio but no luck..
but today i try a trick that NOW its' runs very well and i hear audio..
Finally we have also FM Radio Working (Audio and Tune)
And i'm very happy..

The trick :

1) install a custom rom (PAC,AOKP,CM or other..it's no important
2) install alsa mixer from market (https://play.google.com/store/apps/details?id=com.skvalex.alsamixer&feature=search_result)
3) runs alsa mixer and install bin files
4) install Spirit FM Lite (from thread of XDA by Mikereidis) or Buy Spirit FM unlocked from market (it's a great app)
5) open Spirit FM from appdrawer,Yes for root permission and set it for your country (Band in khz)..Also In Settings page of Spirit FM choose Debug and Check ALSA PCM OPEN..Leave all settings in auto mode..
6) For Audio in Speaker - Open ALSA Mixer and check these Settings : Left SPK Mixer INB2 and set it ON
7) For Audio in Speaker - Open ALSA Mixer and check these Settings : Right SPK Mixer INB2 and set it ON
8) For Audio in Headset - Open ALSA Mixer and check these Settings : Left HP Mixer INB2 and set it ON thanks jonnya70
9) For Audio in Headset - Open ALSA Mixer and check these Settings : Right HP Mixer INB2 and set it ON thanks jonnya70
10) Now relaunch SpiritFM and you can hear audio and tuning your favourite fm stations..

EDIT
As reported by some users (Thanks Lamerduck) and me Spirit FM has some problem as loud volume and no audio when screen off..So use these settings to solve them..
Setting for normal volume (no very hight loud)
Settings-->Audio-->Volume Scale from 100 to 10
(you can increase this setting in 15 for a volume little loud)
Setting to Enable FM Radio Audio when Screen OFF
Settings-->Debug->Silent Loop (check it)

* Probably audio works also you unchecked ALSA PCM OPEN in Settings-->Debug..Yesterday i test without this setting and Audio Works so well..So you can test and report it..

Naturally you can create a script with Script Manager that runs on everyboot to set these parameters for ALSA..Infact on every reboot alsa mixer lost these settings so every time you can use fm radio you can set these settings on alsa..

PS i find this trick in LG Optimus 2x Thread for Spirit FM..
This is the Original link:
http://forum.xda-developers.com/showpost.php?p=38831550&postcount=8
i have only change settings for our ALSA (INB2)..So Credit for sudden36

These trick it's no difficult to use..

EDIT I edit a simple script from lg2x discussion changed the settings for OUR ALSA Configuration..
So you can use it for run on every reboot using Script Manager or you can use in init.d..In zip you find also my p880.conf that provide settings for FM Radio Audio and a little loud volume for speaker..

Also i attach xbin files for alsa mixer so developer can use it for roms and Alsa Mixer 1.0.9 (16 jan 2013)..

Mikereidis (developer of Spirit FM) has release a first experimental version of Spirit FM Light with LG P880 Support
This is the link where you can download it and report some problems too
Version 12062013 (NEW)

http://d-h.st/i5I
 

Attachments

  • FMRADIO-LGO4X.TXT
    287 bytes · Views: 2,144
  • alsamixer.rar
    107.2 KB · Views: 1,830
  • com.skvalex.alsamixer-1.apk
    859.9 KB · Views: 2,109
Last edited:

zicoxx

Senior Member
Dec 26, 2010
285
234
I also found a way to make the audio come from headphones as opposed to the speaker.

Set Left HP Mixer INB2 and set it on
Set Right HP Mixer INB2 and set it on

then the audio will come out from the headphones

yes..i want to write a new guide for use also headset using HP Mixer INB2..
So now we have FM Radio working ,audio and tuning, in headset or speaker..
Tne Only thing that remains to make is to switch audio only in headset when you plug jack and viceversa..infact now with these tricks audio works in headset and in speaker at the same time..But i think that with other test we can to have also the correct switching audio from headset to speaker..
 
L

L2Deliver

Guest
thanks OP for the tip. alot of users here would probably benefit from it.

But as a rule of thumb when it comes to posting such guide, and since you wrote that you found this on op 2x's thread,
it will be good if you place a link to that thread.
One you are acknowledging this guide to the proper dev
And two you are proving that your guide works without you spending any effort ;)

If you simply can't find or link the thread, or if you think what you wrote came from you,
posting a proof-of-concept would be good, since of course people would think twice before doing anything.

Hope you understand.:eek:
Tip: Adding a [GUIDE] tag to your title will help in letting people know what kind of thread this is.
 
Last edited:

zicoxx

Senior Member
Dec 26, 2010
285
234
thanks OP for the tip. alot of users here would probably benefit from it.

But as a rule of thumb when it comes to posting such guide, and since you wrote that you found this on op 2x's thread,
it will be good if you place a link to that thread.
One you are acknowledging this guide to the proper dev
And two you are proving that your guide works without you spending any effort ;)

If you simply can't find or link the thread, or if you think what you wrote came from you,
posting a proof-of-concept would be good, since of course people would think twice before doing anything.

Hope you understand.:eek:
Tip: Adding a [GUIDE] tag to your title will help in letting people know what kind of thread this is.

Yes i undestand,so i edit my discussion..thanks..:)
and i finally find original thread so i can write original credit..
I write also in discussion of spiritfm to report it so maybe mikereidis could be add these tricks to next version of spiritfm..
However the tip rocks,the only problem is that it's no possible by now to switch audio from speaker to headset when you plug headset jack..infact audio remains on in speaker and in headset at the same time..but imho it's no a great problem,almost audio now works and this is the important thing..
@juanacevedo
you must install ALSA MIXER from Market,and open it,install bin files and set these settings..then go spiritfm and listen music..Remember that on every reboot settings lost so you can create a script for ScriptManager or you can set it every time you can listen fm radio..
 
Last edited:

juanacevedo

Senior Member
Jan 15, 2011
366
41
@zicoxx Yeah, I already have everything installed but how do I actually set the settings? There are no options to set them to on just a prompt where I can type something in.

Sent from my LG-P880 using xda app-developers app
 

zicoxx

Senior Member
Dec 26, 2010
285
234
@laufersteppenwolf
Yes,these are the xbin files for alsa mixer..
And then i upload also alsa mixer my conf where there are the correct settings (mine are also for loud speaker volume)..
So now you can use for roms..
OT However THANKS for your kernel and your roms..generally Thanks for you job for LGO4X..:)

@juanacevedo
uhmm..it's strange..
Do you have a custom rom ? Do oyu have root permissions?
When you launch alsa mixer what appair on screen?nothing?black screen?
You can try to copy alsa mixer xbin files in xbin folder (system/xbin) and set as permission 755..The you relaunch alsa mixer from drawer and see if something appairs..
IF again nothing something do not work well,maybe you must tell us what kind of rom you use,kernel,etc..so we can help you..
 

Attachments

  • alsamixer.rar
    107.2 KB · Views: 231
Last edited:

juanacevedo

Senior Member
Jan 15, 2011
366
41
@zicoxx I just get to this part and I don't know what to type in. (screenshot below)
I'm on CM10.1 with the standard CM kernel.

Sent from my LG-P880 using xda app-developers app
 

Attachments

  • uploadfromtaptalk1369584291302.jpg
    uploadfromtaptalk1369584291302.jpg
    55.2 KB · Views: 1,738

zicoxx

Senior Member
Dec 26, 2010
285
234
That's the very first thing I typed In after I imstalled the app. I get no sound at all and yes I'm on the right settings

Sent from my LG-P880 using xda app-developers app

it's so strange..
the four parameters that you write in alsa mixer should be ok for spiritfm audio..2 for speaker (SPK) and 2 for headset (HP)..
Do you have install on your rom some audio app (sony walkman,beataudio or similar)?
You use DSP Manager?Any Music Effect in Settings Audio of CM10.1?
What kind of Cm10.1 version you have?Nightly or RC?
I use now CM10.1 20130519 by arararagi..And i use also Volume+ as Music FX and no problem..But i don't use DSP Manager..And i use the last SpiritFM lite build..
What version of SpiritFM you use?
Try with the last if possibile..
And you can set also in --Settings-->Debug ALSA PCM OPEN and in Settings--> Audio set on Samsung Broadcom (audio 'll be very very low but stable..)
And the last thing,you can hear FM audio in headset?..
 

soelvar

Member
Jan 31, 2013
6
0
Thanks for the tips....I have one problem though. When I switch off my screen, the as o uh and disappears..... Anyone else experience this?
 

r3dd0g

Member
Jul 20, 2012
9
1
grazieeeeeeee

Thank you very much! I can finally listen the radio with CM, LG goodbye!
 

hippow

Member
May 2, 2013
25
1
thanks! i searched for it a long time ago and now i finally found it^^ works really great!
 

zicoxx

Senior Member
Dec 26, 2010
285
234
hey guys,i'm happy that this trick works!..
Next step:
i think that now it's the time to make something so everyone can enable audio for fm radio in simple mode,maybe flashing zip on CWM or TWRP..Or i'm thinking to create a simple apk that make this trick..
So if Someone,developer or everyone wants to help us for developer these things,i'm appreciate much..
in every case i'm try to simple these tricks..
So stay tuned..
 

Top Liked Posts

  • There are no posts matching your filters.
  • 23
    In Cm rom 10.1 for lg optimus 4x there is a problem : fm radio do not run..
    infact i try to use Spirit FM but no audio also if tuning runs very well..

    so i try some things to set audio but no luck..
    but today i try a trick that NOW its' runs very well and i hear audio..
    Finally we have also FM Radio Working (Audio and Tune)
    And i'm very happy..

    The trick :

    1) install a custom rom (PAC,AOKP,CM or other..it's no important
    2) install alsa mixer from market (https://play.google.com/store/apps/details?id=com.skvalex.alsamixer&feature=search_result)
    3) runs alsa mixer and install bin files
    4) install Spirit FM Lite (from thread of XDA by Mikereidis) or Buy Spirit FM unlocked from market (it's a great app)
    5) open Spirit FM from appdrawer,Yes for root permission and set it for your country (Band in khz)..Also In Settings page of Spirit FM choose Debug and Check ALSA PCM OPEN..Leave all settings in auto mode..
    6) For Audio in Speaker - Open ALSA Mixer and check these Settings : Left SPK Mixer INB2 and set it ON
    7) For Audio in Speaker - Open ALSA Mixer and check these Settings : Right SPK Mixer INB2 and set it ON
    8) For Audio in Headset - Open ALSA Mixer and check these Settings : Left HP Mixer INB2 and set it ON thanks jonnya70
    9) For Audio in Headset - Open ALSA Mixer and check these Settings : Right HP Mixer INB2 and set it ON thanks jonnya70
    10) Now relaunch SpiritFM and you can hear audio and tuning your favourite fm stations..

    EDIT
    As reported by some users (Thanks Lamerduck) and me Spirit FM has some problem as loud volume and no audio when screen off..So use these settings to solve them..
    Setting for normal volume (no very hight loud)
    Settings-->Audio-->Volume Scale from 100 to 10
    (you can increase this setting in 15 for a volume little loud)
    Setting to Enable FM Radio Audio when Screen OFF
    Settings-->Debug->Silent Loop (check it)

    * Probably audio works also you unchecked ALSA PCM OPEN in Settings-->Debug..Yesterday i test without this setting and Audio Works so well..So you can test and report it..

    Naturally you can create a script with Script Manager that runs on everyboot to set these parameters for ALSA..Infact on every reboot alsa mixer lost these settings so every time you can use fm radio you can set these settings on alsa..

    PS i find this trick in LG Optimus 2x Thread for Spirit FM..
    This is the Original link:
    http://forum.xda-developers.com/showpost.php?p=38831550&postcount=8
    i have only change settings for our ALSA (INB2)..So Credit for sudden36

    These trick it's no difficult to use..

    EDIT I edit a simple script from lg2x discussion changed the settings for OUR ALSA Configuration..
    So you can use it for run on every reboot using Script Manager or you can use in init.d..In zip you find also my p880.conf that provide settings for FM Radio Audio and a little loud volume for speaker..

    Also i attach xbin files for alsa mixer so developer can use it for roms and Alsa Mixer 1.0.9 (16 jan 2013)..

    Mikereidis (developer of Spirit FM) has release a first experimental version of Spirit FM Light with LG P880 Support
    This is the link where you can download it and report some problems too
    Version 12062013 (NEW)

    http://d-h.st/i5I
    4
    I also found a way to make the audio come from headphones as opposed to the speaker.

    Set Left HP Mixer INB2 and set it on
    Set Right HP Mixer INB2 and set it on

    then the audio will come out from the headphones
    4
    EDIT :
    It wooorks..
    Switching headset/speaker without problems..
    So thanks Mike..

    I thought I understood you couldn't switch to speaker, so I removed the ALSA commands to mute in a new June 12 test release. Maybe it's better, maybe worse ?

    Copied from my thread:

    (Note that this is the Free version, which has fewer features than Light, though I've enabled Stereo at least. My free release of Light was an exception that I may or may not repeat.)

    Spirit Free June 12: http://d-h.st/CsN

    Also on Play.

    - Stereo enabled on Free version. (May or may not be disabled in future; no promises.)

    - Hopefully better support for LG Optimus 4X HD P880:

    Doesn't mute INB2 Switch'es. Maybe speaker will work ?

    Automatically enables Debug Silent Loop to keep audio working & with volume control in background.

    No automatic setting of Audio-> Volume Scale to 10 or similar. I think it might be better to reduce one or more of these ALSA controls:

    INB Volume
    Headphone Volume
    Speaker Volume
    3
    But what about Alsamixer, can you make it work, it is good to useful for modifying audio settings.

    Here you are: https://github.com/P880-dev/android_device_lge_p880/commit/826be21359a9d8f43b275b9bee9d39fb2091cefd
    Modify the /system/etc/asound.conf file based on the commit and you're good to go.
    @laufersteppenwolf: Time for a merge. ;)
    2
    Thank you very much ! Radio FM works well with the experimental version of Spirit FM Light, I just have one problem :
    The left side of my headset sounds very, VERY louder than the right one. I've tried with both my a-Jays Four and stock LG headset, I've also tried to set mono instead of stereo, the problem remains...
    Anyone else experiencing this ?

    For the best help write in the official Spirit FM here

    Remember to write your device and the ROM it's running.