Skip to content
Snippets Groups Projects
  1. Apr 21, 2017
  2. Mar 27, 2017
    • Kamal Negi's avatar
      fm: wait for enable event to complete · 6c3e689d
      Kamal Negi authored
      After sending enable request, wait for enable event callback to
      complete.
      If we configure audio path before enable receiver done, audio path
      won't configure properly, hence no audio will be heard.
      
      Change-Id: Ia5030308c35f41297ff19079f38e735e962770b2
      6c3e689d
    • Kamal Negi's avatar
      fm: Fix for NULL pointer exception · 743a3e78
      Kamal Negi authored
      NULL check for callback environment. An event received before jni threads
      are attached, will lead to NULL pointer exception.
      
      Change-Id: Ia3fe9c6fb67d5c94bdd8d3a147ea8776bdc5fa3a
      743a3e78
  3. Mar 25, 2017
    • Kamal Negi's avatar
      FM: Reset slimbus port on AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK · 18d96304
      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.
      
      Change-Id: I4751988149863be0af60fc5cfd268b91afbb685f
      18d96304
  4. Mar 23, 2017
  5. Mar 20, 2017
  6. Mar 17, 2017
    • Kamal Negi's avatar
      fm: Set lib_running variable only on cleanup · 6b6ba00b
      Kamal Negi authored
      On SSR, we receive HW_ERR_EVENT,we set lib_running variable to 0.
      Because of this, hci tx and monitor thread exits before cleanup or exit
      happens, causing RX thread to be blocked on cond_wait and failure
      happens.
      Hence not setting variable during event read.
      
      Change-Id: I82891e12c83fe5d06dbfec060d1ace1231fc25fd
      6b6ba00b
  7. 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
  8. Feb 17, 2017
  9. 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
  10. 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
  11. Feb 02, 2017
  12. 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
  13. 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
  14. Jan 05, 2017
  15. Dec 22, 2016
  16. 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
  17. Nov 30, 2016
  18. Nov 24, 2016
  19. 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
  20. Nov 15, 2016
  21. Nov 10, 2016
  22. Nov 03, 2016
  23. Oct 26, 2016
  24. 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
  25. 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
  26. Oct 20, 2016
  27. Oct 14, 2016
Loading