Skip to content

Instantly share code, notes, and snippets.

@ItachiSan
Created April 8, 2014 07:21
Show Gist options
  • Save ItachiSan/10099211 to your computer and use it in GitHub Desktop.
Save ItachiSan/10099211 to your computer and use it in GitHub Desktop.
fm_radio_changelog
commit 1e11a32ffa182e6ed82822f8a3a6ab4abc2a05e1
Author: Giovanni Santini <[email protected]>
Date: Mon Apr 7 20:12:24 2014 +0200
Removed old QCOM FM stuff
Change-Id: Ia7be5296d895567ffa39ee28bd904a720fbb2bf4
commit 8d222da02b09c1373092e5bc653c4bb833129e48
Author: Giovanni Santini <[email protected]>
Date: Sun Apr 6 17:53:46 2014 +0200
Let framework load qcom fm library
If not, no FM2 app working
Change-Id: Ie2a4b856d03ff9592a0c65f80c8650b3e1b3abf6
commit 88d578fb77a36a1d002d1e32e48f96a87f6b8771
Author: Giovanni Santini <[email protected]>
Date: Sat Apr 5 17:17:25 2014 +0200
Fixing build part 2
Change-Id: If28725a4ebc6fc695e567241c8e911373498eea6
commit f6586ae2ec7a7d3ba72bdd458372f9d0c7c2c0b7
Author: Ravi Kumar Alamanda <[email protected]>
Date: Fri Nov 18 20:16:15 2011 -0800
Add FM Radio support to ICS (CM) framework.
Patch made by Giovanni Santini <[email protected]>.
In order to use this patch, add this flags:
BOARD_HAVE_QCOM_FM := true
COMMON_GLOBAL_CFLAGS += -DQCOM_FM_ENABLED
to your build config.
This is a combination of 41 commits.
1) frameworks/base: Add support for FM Radio feature and FM Tx Device
- Enhanced Android framework to support FM Radio playback.
- Added support for audio playback on FM Tx device
- This change is merge of below commits:
commit 3fb81cbd00ea97fbfb7ff5918320848d1e8437ce
Author: Sidipotu Ashok <[email protected]>
libstagefright: fix for FM playback Over A2DP.
commit 977f203c335301d698235a7bb0a1cec730ed597e
Author: Sidipotu Ashok <[email protected]>
libstagefright: Changes in SF to support FM over A2DP.
commit 4efe970acd5e8c1f376385e5a434127e57d9e2d4
Author: Sidipotu Ashok <[email protected]>
frameworks/base: Enabling FM transmisison of music streams.
commit 96739f564f07b37cdd4d9c62a9263171dfc8d893
Author: Yogesh Sadhu <[email protected]>
frameworks/base: Fix for Number of volume levels in FM
commit 006ba3569b5e13bd91d42f6b42504c1c80c52e7a
Author: Channagoud Kadabi <[email protected]>
frameworks/base: Add support for FM Volume Control
commit de9e99efa046c7425af40a16ebda53f94a49843d
Author: Srinivas Krovvidi <[email protected]>
Frameworks:media: AudioManager change to expose STREAM_FM to Apps.
commit 286bac9b124fa6e6ef5892d456fb6f57ecb8b4e4
Author: Channagoud Kadabi <[email protected]>
Framework: Add stream type for FM in Settings and fix AudioService crash
commit 164d2ab25003c76ffab969b0975a9b8e54c3d8fa
Author: Yogesh Sadhu <[email protected]>
frameworks/base: Add FM radio feature
Change-Id: If6fc0d225f81a09f9a8bead92cc123383b325048
Conflicts:
include/media/IAudioFlinger.h
media/java/android/media/AudioService.java
media/java/android/media/MediaRecorder.java
media/libmedia/AudioSystem.cpp
media/libmedia/IAudioFlinger.cpp
media/libmediaplayerservice/StagefrightRecorder.cpp
media/libstagefright/Android.mk
2)frameworks/base: Update AudioPolicyServiceOps for FM volume
- Updated the AudioPolicyServiceOps for FM volume support.
Change-Id: I0ef7e28ea5e23a15d66f2f94f8031005c0e6974b
3)fm-frameworks: Enable FM.
Add UID permissions for FM
Change-Id: I8c49464de7c7be6159f6302a36708c8b2ee10aea
Conflicts:
core/jni/Android.mk
core/jni/AndroidRuntime.cpp
4)fm-frameworks: Add FM files.
Add fm frameworks and JNI files.
Change-Id: I67af0693ce394ad57ed6e6bdde23d546504714f7
5)fm-jni: Use sanitized kernel headers file to access FM Radio resources
Change-Id: Ia68bd048eeca678c49d623af6e8056517cc23ea8
6)fm-jni: Release the local references handed over to the native code
Release the local references to the character pointers that were
handed over to the FM driver as part of PS and RT trasnmit.
Change-Id: Id80e7c21e8782f370cf90303f865233f8e4a9592
7)fm-frameworks: Pull FM changes for audio and WAN concurrency
Pull the FM changes related to audio path and WAN concurrency
Change-Id: I437c2731b3b4db7b9bdbd7108f86ff3d4aa4869c
8)fm-frameworks: Exit the FM Rx listener thread, only as part of FM turn off.
Change-Id: I4bfd07563d187e069c408142f612b4f7a02b555b
9)fm-frameworks: Select FM Search Algorithm based on the property variable
CRs-Fixed: 314648
Change-Id: I59430cf583af5178ae54b1dd27f7b809918b555f
10)fm-frameworks: Add APIs to configure detection thresold parameters
Provide APIs to set and get the values of the FM search
parameters intend to improve the FM Search performance.
CRs-Fixed: 320147
Change-Id: I16136bc207251473193d732fe1fa8fa662c1f4a6
11)fm-frameworks: Disable DC calibration.
Change the calibration data size to process calibation data size.
Change-Id: I910a0dab78aae913abc040868f98641c4f04abd3
CRs-Fixed: 322471
12)core/java: Add support for FM stream volume bar
- Added FM Stream to Volume Panel Stream Resouces list
- Used the Media Volume Icon for FM Stream Volume
Change-Id: Ic7bb59b928ee3e37c2b23a23a6e2a43960a9ea92
CRs-fixed: 323773
13)frameworks/base: Fix to apply volume changes when FM is in background
- When FM is back ground, if the volume is changed the Ringer volume
is getting changed instead of FM volume.
- This fix ensures that the FM volume gets changed when FM is in background
even when the Phone display is off.
Change-Id: I0d23eaf48110763ea8f4f69eac5a60bdc408ee17
CRs-fixed: 324654
Conflicts:
policy/src/com/android/internal/policy/impl/KeyguardViewBase.java
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
14)fm-frameworks: Add support for zero dwell period
Configure the Dwell period range as Zero to seven seconds
Change-Id: I5ad1d882221abd39dce8a9b8e69aafe2cc7d8495
CRs-Fixed: 322475
15)frameworks/base: Fix for FM over A2DP issue.
- When trying to play FM over A2DP, it fails to play.
- In FMA2DPWriter, while creating track for playing
PCM to BT stack, frameCount value passed is
compared with minFrameCount. If this validation fails,
track creation returns error and issue is seen.
Here, for BT stack minFrameCount value is higher
compared to frameCount passed and fails.
-Increase the frameCount value in writerthread
of FMA2DPWriter.
Change-Id: I53cbf491917e15f0f9559556eb0e6be3cefdf7a9
CRs-fixed: 323750
16)fm-frameworks: Enable process calibration.
Change-Id: I158b434ffeb2e91c1037e2cd3598631d105006e3
CRs-Fixed: 326567
17)fm-frameworks: Fix few possible coding errors
Add checks for possible attempts to dereference null pointers
Change-Id: If17a7b928a1be54587c6b7763a6404648655e3e3
18)fm-frameworks: Modify the computation of absolute frequency
Absolute frequency calculation from relative frequency and
lower band limit results in marginal variation in the value
of the exact frequency.
Change-Id: I2cfa7690e231a094cc674d09a422ff5b397f38fe
CRs-Fixed: 326007, 325078
19)fm-frameworks: Synchronize FM ON/OFF sequence
Prevent FM power on until previous FM power off completes
CRs-Fixed: 327151, 326855
(cherry picked from commit 3d00073605fa685bbef2665596711d3fe2ac9019)
Change-Id: I01f30cb99583863fc3f952a0c723068736e23ae0
20)fm-frameworks: Add support to get SINR
Add support to get the SINR value from the FM driver
CRs-Fixed: 322478
(cherry picked from commit 6231ac895216aa3622df0f69736f2246c3c82118)
Change-Id: I7ef182af6f49005a45f4e5048f825d81654a10ce
21)frameworks-fm: Add the delimiter for RT
Add the delimiter to the RT string and limit the RT length
to maximum allowed value
CRs-Fixed: 328036
(cherry picked from commit f61ec5af3ce2c848372260e18253c332e38c7f33)
Change-Id: I2f938b47eeb492eaaee4306a0bbaaf43abdf6e06
22)fm-frameworks: Implement detection threshold IOCTL's
Implement API's to get/set the signal detection parameters
CRs-Fixed: 322688
(cherry picked from commit da107ff47775560e02fa413f3984f7d9edd89401)
Change-Id: I35b9f5c949862461fd6af50fe43a18d74d764a19
23)fm-frameworks: Handle FM configure failure scenarios
Release the fd in case of FM configure failure
CRs-Fixed: 333035
(cherry picked from commit a28b7661abc0f903cbb43dbdea3f4d1789d17cd0)
Change-Id: Iec582661d48a68439c2ad117f2e11e77a787db57
24)fm-frameworks: Close the listener thread on reception of READY_EVENT
Close the FD and event listener once FM receives READY_EVENT
CRs-Fixed: 333867
(cherry picked from commit 393dd40957cd090ac0408a4bd91d6988158a17a3)
Change-Id: Id2b52ab7eb937e425bce852e477cfcd0a03867d9
25)frameworks-fm: Add support for FM Disable
Add support for FM Disable functionality during WCNSS Restart.
- EventListener should handle unexpected FM disable event and
let upper layer know about it.
- FmReceiver and FmTransmitter should provide a way to reset
their state.
(cherry picked from commit cb5c1d0863021b22fd853053070e69afcba33d79)
Change-Id: I1f8a11590f2ddcae6f885a35ea957eea6f0e6723
26)frameworks-fm: Handle FM Reset during FM Seek
Make sure that the FMState is not Off before transitioning to the next
state during FM Seek operation.
CRs-fixed: 336691
(cherry picked from commit 67d278374ecda0d8555e189e8579bc36154607cf)
Change-Id: Idc4ce29e194081e9bfeb8dbc0ab050f5e98074dc
27)fm-frameworks: Filter frequencies appearing outside of Regional band limits
Remove stations from the Auto-Preset list falling outside of
the current station's band limits.
CRs-Fixed: 332478
(cherry picked from commit f9be10c47cde1cfee4bbc4b327ed43a0938f6319)
Change-Id: If76561ba1e46e142be4b1edcbd8231cd76744459
28)frameworks/base: Fix to stop FM on Speaker when
Music is played on BT
-FM is currently start/stopped during device routing.
When Music is played over BT,device routing will not happening and
FM is not stopped.
-Moving the FM starts/top logic from doRouting to
setdeviceconnection state.
CRs-Fixed: 336122
(cherry picked from commit b6ee7d91ff5288e7b7147515ab3120bba027ce1a)
Change-Id: I6f65f35bf2ead1c26dbbfd673d37f847ffc45374
Conflicts:
include/media/AudioParameter.h
media/libmedia/AudioParameter.cpp
29)fm-frameworks: Fix memory leak due to incompatible variables.
Use compatible variables during function call.
Initialize the local variables.
CRs-Fixed: 338465
(cherry picked from commit c179038f40aa32827b254f5c6e61a99bceb220f7)
Change-Id: I46f2cbd9596af9782a2dbbac66634057e67a7a75
30)fm-frameworks: Return error status when set station fails
Set station to a frequency fails but "true" is returned
from framework
CRs-Fixed: 338132
(cherry picked from commit 37edcc885430aa8bdc0a3077d05412d39ffd7cfc)
Change-Id: I79fe22c805f4b22f367e4dadb95bde6478c19616
31)fm-frameworks: Correct the values of the search direction macros
There is a mismatch in the values assigned for the search up and
search down macros.
CRs-Fixed: 340401
(cherry picked from commit 712512f4af9ca2833bbfa0f30ca466ec67e06293)
Change-Id: I0e9d9328fdfa04b8ee9167e8a22373f8fa23ba8b
Signed-off-by: Srivalli Oguri <[email protected]>
32)fm-frameworks: Change implementation of adding the delimiter for RT
GetStringUTFChars will return const char*.Use an additional pointer
to keep track of the extra memory allocated for delimiter.
CRs-Fixed: 337365
(cherry picked from commit debef5a1b4c5913f84422d539ec0b348789c4c81)
Change-Id: I2e04477783183172a971e9f93fcf7406692b75bf
33)Revert "fm-frameworks: Correct the values of the search direction macros"
This reverts commit 712512f4af9ca2833bbfa0f30ca466ec67e06293
(cherry picked from commit 39d6724830910be6aab84e1d284d19153da0aed9)
34)fm-frameworks: Handle enable/disable event properly
Call proper callbacks and release the file
descriptor when disable event is received
CRs-Fixed: 339470
(cherry picked from commit 8bfb10a4163d464ef35d3ecc8ee60ea1a15fe41c)
Change-Id: Ic15ac8f376766034a077e61bfde6547914b1d36a
35)fm-frameworks: Increase buffer size and one time event buffer allocation
- Allocate 128 bytes for RDS Data buffer to be compatible with kernel
- Move event buffer's memory allocation out of while loop
CRs-Fixed: 344443
(cherry picked from commit 690e9fcdb50a9caaf3b6af4f0a4e35f40a49e643)
Change-Id: Iac8dbd65a8d695355ba55894f08e9fff8c8fd744
36)fm-frameworks: Implement Fm Tx state machine
Save and check proper state when FM TX enable, disable
and other commands are sent to upper layer
CRs-Fixed: 358229
(cherry picked from commit 87dc5ae636ee11a711e30d611d599f9c2edbed90)
Change-Id: Ic054491a1dbf0761856a21c8e34ab624cfcd747b
37)frameworks-fm: Perform error handling for get frequency command
Handle error case for get frequency command
CRs-fixed: 343543
(cherry picked from commit 42bb7b65a32a2e07eb3e4563db1bfbfa41d59b69)
Change-Id: I4d1d47dc8cb21a04801f1b792d693a573a91fdad
38)fm-frameworks: Add APIs to configure spur table
Provide interfaces to configure spur table with spur
frequencies specific to platforms.
CRs-Fixed: 352591
(cherry picked from commit ce0681f6ee4a2994188ca2e99f39ad653e885652)
Change-Id: I696e436118011a6560d75293f71a82262a821195
39)framework/base: Add @hide comment text for FM variables
- Add @hide comment text for the FM public variables
which were added during FM bring up.
CRs-fixed: 396782
(cherry picked from commit 9271bfdd3e7d3ba664f38cef00d95950acba92d5)
Conflicts:
core/java/android/content/Intent.java
media/java/android/media/MediaRecorder.java
Change-Id: I86330980bc7c6ee3153d3c86e6c696d427202253
40)frameworks/base: Change FM Intents namespace
- Use qualcomm.* for newly added intents for
FM instead of android.*
CRs-fixed: 396782
(cherry picked from commit d66b8628de9e0e34f1cb50589819f94a2baae9e0)
Change-Id: I95f8124c63d330de079f5110127a2488bff5ca19
41)frameworks/base: fix for FM/ANC CDD violations
- Add @hide for FM/ANC to avoid CDD violations
CRs-fixed: 396782
(cherry picked from commit 766099626399c3843b06ba2dbd75d9576f22f7a3)
Conflicts:
media/java/android/media/AudioManager.java
Change-Id: I3dc82ab66e288b6f5356a51e75b48e031999fa0d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment