Skip to content
Snippets Groups Projects
  1. Mar 20, 2017
  2. Mar 03, 2017
    • Kamal Negi's avatar
      FM: Fix null pointer exception · 2cfb9a95
      Kamal Negi authored
      Check if variable is null before making a call to avoid the null pointer
      exception.
      
      Change-Id: I23f271d6c1f32416aa10a9113273dde477b8a0d8
      2cfb9a95
    • Kamal Negi's avatar
      FM Radio: Don't register A2DP service listener · c5a78e2d
      Kamal Negi authored
      If FM over A2Dp is disabled, we don't need to route FM audio to A2DP.
      Hence do not register A2DP service listener if FM over A2DP is disabled.
      
      Change-Id: Iba88994819fdf1b1489a654777111d7a0b769c7c
      c5a78e2d
    • Kamal Negi's avatar
      FM Radio: Don't register AUDIO_BECOMING_NOISY intent · c07f0080
      Kamal Negi authored
      FM registers two intent listener for headset removal. Because of the
      intents recieved from both listeners, race condition happens. Even antenna
      is connected to device, FM app shows antenna as disconnected.
      Hence register one listener for headset removal.
      
      Change-Id: Ic6811652a2356a80d3ba3517bf7ea11f73328ed3
      c07f0080
  3. Feb 17, 2017
  4. Feb 15, 2017
    • Mingbo Zhang's avatar
      Change rename_dialog background color to default · fbf8916b
      Mingbo Zhang authored
      currently background color is same as character color.
      so character can not be seen.
      
      Change-Id: Ieea88675bf2fbe46fe18539033f340a2f8bb4d2f
      CRs-Fixed: 1112971
      fbf8916b
    • Mingbo Zhang's avatar
      Don't resume after call ends until gain audio focus · e579ce10
      Mingbo Zhang authored
      this patch can fix below two issues.
      1) after call ends, telephony will still play call end tone.
      so we should not resume fm immediately after call ends.
      2) if fm has been paused and abandoned audiofocus because
      other video app starts to play and sends pause cmd to fm,
      then after call ends, we should not resume fm automatically.
      
      we should only resmue fm after fm gains audio focus.
      
      Change-Id: I729ac3e92512ff43368494ecde87d3d9f8dfe2c6
      CRs-Fixed: 1110621
      e579ce10
  5. Feb 14, 2017
    • Kamal Negi's avatar
      FM Radio: Wait for disable to complete · a1805d9a
      Kamal Negi authored
      Make disable fm to be synchronous. On factory reset, disable fm
      and enable fm called back to back. If enable fm command sent before
      disable fm completes, fm enable fails. Hence wait for disable fm
      to complete.
      
      Change-Id: Ic3630f7bdd39ca812d9ae81b45a9c496049aef84
      a1805d9a
  6. Feb 02, 2017
  7. Jan 23, 2017
    • Kamal Negi's avatar
      FM: Add check for soc type · 7d81ec8b
      Kamal Negi authored
      Fix compilation error for non cherokee devices. Added cherokee soc type
      flag to remove compilation error for non cherokee devices.
      
      Change-Id: I4b69ae76a33fcdeb497239aae9c35362272bcbfc
      7d81ec8b
  8. Jan 12, 2017
    • Kamal Negi's avatar
      Reset slimbus port on AUDIOFOCUS LOSS · ce09c303
      Kamal Negi authored
      On Audio focus loss, slave device, FM, keeps on sending packets to
      master device, audio manager, even master is disconnected to slave
      and slave's buffer overflowed after some time. Due to this, on Audio
      focus gain, slave don't send packets to master. Hence no audio for
      FM. Reset slimbus data port to overcome this situation.
      
      CRs-Fixed: 1082673
      Change-Id: I8317c6e82fe4844970e84e929e2c6328284c6ca9
      ce09c303
  9. Jan 05, 2017
  10. Dec 22, 2016
  11. Dec 19, 2016
    • Satish kumar sugasi's avatar
      FM audio config sequence during FM radio ON/OFF · 3b47fd19
      Satish kumar sugasi authored
      call audio config changes and allow some delay for slimbus
      close before turning off FM chip,adds delay after enable FM
      chip before calling audio config changes to start FM audio.
      
      Change-Id: I563bbad9edee92247b3514612fe7b94838d32525
      3b47fd19
  12. Nov 30, 2016
  13. Nov 24, 2016
  14. Nov 22, 2016
    • Kamal Negi's avatar
      Memset structure values to 0 before sending an IOCTL · 7bb0f627
      Kamal Negi authored
      Memset ext_ctl and v4l2_ctls structure values to 0 before processing it. If
      not set, unassigned values can have garbage values and that can lead to
      functional/feature failure.
      
      CRs-Fixed: 1091284
      Change-Id: Ice666cddd8e734d2d91053c30c42493315292841
      7bb0f627
    • Kamal Negi's avatar
      Check for TX event before waiting for an event · ca34f87e
      Kamal Negi authored
      Check for an event before waiting for an event. If event already signalled
      and we wait for an event without checking, it can lead to an infinite wait
      for signal. This results in functional failure.
      
      CRs-Fixed: 1091781
      Change-Id: I7bb1ef12f4622f9d94621a9c486a771226aba9f4
      ca34f87e
    • Kamal Negi's avatar
      Update FM UI after service bind complete · 833970d0
      Kamal Negi authored
      On activity start, bind service callback can be delayed and is received after
      activity life cycle i.e after onResume(). Because of the delay, UI
      update won't happen. Hence update FM user interface, i.e. RDS, frequency etc.,
      if service callback received or retry once after 100ms.
      
      CRs-Fixed: 1090643
      Change-Id: Icef5922c3e3972f5e44cd1d3f873f864785e26be
      833970d0
  15. Nov 15, 2016
  16. Nov 10, 2016
  17. Nov 03, 2016
  18. Oct 26, 2016
  19. Oct 25, 2016
    • Satish kumar sugasi's avatar
      Call FM power off api after SSR · 38c637e5
      Satish kumar sugasi authored
      This adds logic to do Power control operations after SSR
      event received.invokes fmhal service to do Power OFF chip
      
      Change-Id: Ia4e2e720943b02625d22d78757c2f3c748ddec53
      38c637e5
  20. Oct 24, 2016
    • Kamal Negi's avatar
      Check for antenna connected on activity restart · 637aa08f
      Kamal Negi authored
      On activity restart, check if antenna connected or not. On activity
      restart we request for audio focus and update the UI with Radio text
      etc. even if antenna not connected. This enables UI and disable it again
      even if FM is turned off.
      
      CRs-Fixed: 1081388
      Change-Id: I0c27f4025322451447423e1f5c07da1f8db790e6
      637aa08f
  21. Oct 20, 2016
  22. Oct 14, 2016
  23. Oct 06, 2016
    • Kamal Negi's avatar
      fm: Return frequency value in getFrequency · 31bed2c7
      Kamal Negi authored
      Return frequency value in getFrequency if call to function is successful
      instead of error value.
      
      Change-Id: I07d62aecbfc396ec94f4b1efb8fd096499a7e3bb
      31bed2c7
    • Satish kumar sugasi's avatar
      Add logic to check dynamic property to enable/disable LPF · 16f0f005
      Satish kumar sugasi authored
      This adds check for system property defined whether to enable or
      disable LPF in soc based on WIFI state or BT State during FM turn ON.
      Also checks system property flag while DATA state is CONNECTED or
      Disconnected  to decide whether to enable or disable LPF in SOC.
      
      Change-Id: I566fc6439c7bbee7326548d92706d0c74b3ff97f
      16f0f005
  24. Sep 30, 2016
    • Kamal Negi's avatar
      fm: synchronize dequeue_fm_tx_cmd function · a9e487b7
      Kamal Negi authored
      In dequeue_fm_tx_cmd function, there is race condition happened between
      command credits decrement and event received for command sent. After
      sending command to SoC, event received immediately and processed before
      it decrement the command credits, hence command credits become zero and
      it stuck in condition wait for command credits and FM failure happens.
      
      Change-Id: Ibb2cf98ade08bbc9b25946d2368b1b7e428397bc
      a9e487b7
  25. Sep 22, 2016
    • Mingbo Zhang's avatar
      Fix: Can't control Alarm/Ring volume after plugout headset and a2dp · 67f115c0
      Mingbo Zhang authored
      1) wired headset is plugin, a2dp is connected, fm is on =>
      2) plugout wired headset, then disconnect a2dp =>
      3) will not control alarm/ring volume via +/- button
      reason: after plugout wired headset, then disconnect a2dp at last,
      configureAudioDataPath(true) will be called and AudioSystem.DEVICE_OUT_FM
      will be set to DEVICE_STATE_AVAILABLE. Then we can only control
      media volume via +/- button.
      
      Change-Id: Ic9b0bad141a8d5d88e6b9b93350a5b02961b91db
      CRs-Fixed: 1047328
      67f115c0
  26. Sep 16, 2016
  27. Sep 15, 2016
  28. Sep 13, 2016
  29. Sep 12, 2016
    • Smriti Gupta's avatar
      FM: FMRadio will wait for the focus from telecom repeatedly · 9a2f2372
      Smriti Gupta authored
      Whenever call is getting ended, FM requests Audio Focus
      before Telecom abandons it, There is delay for about 50ms.
      Now, with this change FMRadio will wait for 300 ms to get the
      focus back from the telecom.
      
      Generally, both FM and Playing Tone for call end are dependent on
      call state changed, so the progress of receiving is in parallel.
      But due FM gets callback via remote calling, it is always slower
      than Telecom. Currently for N, the audio_focus_release had been
      moved into state machine (in work thread), so the issue becomes
      easy to see.
      
      We cannot serial the call_status_change and the audio_focus_release.
      Because Telecom also need to wait DISCONNECTED to paly tone, after
      completed to abandon it.
      So need FM needs to handle it by waiting for some more time.
      
      CRs-fixed: 1061550
      Change-Id: I7676b6816d5c89934bf2360811ea0b1bb2fb850b
      9a2f2372
  30. Sep 05, 2016
Loading