Skip to content
  1. Mar 14, 2019
  2. Mar 04, 2019
  3. Feb 13, 2019
  4. Feb 05, 2019
    • Vasyl Gello's avatar
      audio_hw: Prevent referencing input devices from empty list · d758a173
      Vasyl Gello authored
      
      
      Fixes audioserver crash in in_get_capture_position() if PCM input
      device was not properly opened.
      
      Signed-off-by: default avatarVasyl Gello <vasek.gello@gmail.com>
      Change-Id: I2f2d9bc8151cf61af112a9544268513effacacb5
      d758a173
    • stenkinevgeniy's avatar
      Audio: fix voip calls over bluetooth for Wolfson Microelectronics codecs. · 884938a2
      stenkinevgeniy authored
      
      
      Some devices, that using wm* codecs like i9500, t805, p601 and others
      need open CP pcm's when using BT SCO in IN_COMMUNICATION mode.
      
      Change-Id: I64935aabf1c52e66409e727f02752cd325f8ef58
      Signed-off-by: default avatarstenkinevgeniy <stenkinevgeniy@gmail.com>
      884938a2
    • stenkinevgeniy's avatar
      Audio: fix voip calls over bluetooth headset. · 53929f79
      stenkinevgeniy authored
      
      
      Current HAL start/stop bt_sco session only for incall mode -
      rewrite logic to start/stop bt session when system switch to
      one of the bluetooth devices.
      Move bt_sco_active and pcm_sco_rx/tx to main audio_device structure.
      Remove bt_sco_capture profile.
      
      Change-Id: I7bbe4273f759e255bb857f8292f2921df31d4b0b
      Signed-off-by: default avatarstenkinevgeniy <stenkinevgeniy@gmail.com>
      53929f79
    • stenkinevgeniy's avatar
      Audio: fix call recording. · 282d5924
      stenkinevgeniy authored
      Change-Id: I312d2a36009ec1415dd5ccba4fbb68ae4a10e2ab
      282d5924
    • Basil Gello's avatar
      audio: Re-worked sound pre- and post-processing · efdfdba3
      Basil Gello authored
      In order to activate proprietary sound pre- and post-processing,
      the following parts of audio HAL were revised:
      
      * Activated ENABLE_PREPROCESSING directive in Android.mk
      * Removed unused variables and functions
      * Re-written set_preprocessor_echo_delay() function
      
      Change-Id: I868087f422764895df7d2bc6bbf4bbd76672b8e7
      efdfdba3
    • stenkinevgeniy's avatar
      Revert "audio: Fix incall device switch handling" · 5ca267a1
      stenkinevgeniy authored
      This commit cause bug - no sound after end voice call when
      using speaker. Sound come back after audioflinger send
      standby and hal reenable speaker for new stream (usecase).
      
      Reason - hal need reenable speaker (or other devices) for
      other streams (usecases).
      
      This reverts commit f33a728b205f7656ca6211a07e3dd69c623b75ca.
      
      Change-Id: Icde4e83ab824008e931b681cdbb6e11d6a2a7aa5
      5ca267a1
    • stenkinevgeniy's avatar
      Audio: get_input_snd_device - use all bt sco devices for voice calls. · 097e2941
      stenkinevgeniy authored
      Use  AUDIO_DEVICE_OUT_BLUETOOTH_SCO
           AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET and
           AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT
      and not only AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET for voice calls.
      
      Remove default voice_mic for sco devices - why we need default mic
      for sco output devices if now we handle all sco output devices.
      
      Change-Id: Ibf4eb42eebcf7dc229649d8afe6e8b3ea9354165
      097e2941
    • stenkinevgeniy's avatar
      Audio: remove separated bt_sco playback profile · 3de97675
      stenkinevgeniy authored
      Myabe this related to htc flounder hw but this
      not needed for samsung and this cause bug when
      hal trying open bt pcm device for system sounds
      while voice call active on sco and bt pcm device
      opened with start_voice_session_bt_sco.
      
      Change-Id: I75482dad42feccae5e8ca9df2623ef4693a7bdb0
      3de97675
    • stenkinevgeniy's avatar
      Audio: check and route usecases · b81e05fb
      stenkinevgeniy authored
      Add check_and_route_usecases -
      
      this function is to make sure that all the usecases that are active on
      the hardware codec backend are always routed to any one device that is
      handled by the hardware codec.
      
      Example:
      When voice call starting - we need earpice -
      hal enable earpice, but befor - we put call button -
      and hal enable speaker and play sound - "click"
      And now we have speaker and earpice enabled.
      Later when audioflinger send standby (default after 3 sec) to stream
      which use speaker - hal disable speaker while voice call active - and
      we have no sound in earpice.
      check_and_route_usecases will not allow such situations.
      
      Change-Id: Ibc534bb14c25e4a4ffb4f3487d1424e9e1ed6a67
      b81e05fb
    • stenkinevgeniy's avatar
      Audio: HAL should handle other streams (when call active) · 8b573208
      stenkinevgeniy authored
      Change-Id: I70fbd41ac386d7ea9a7fa0abb540151727461ac1
      8b573208
    • stenkinevgeniy's avatar
      Audio: remove out stream resampler. · d0a02c09
      stenkinevgeniy authored
      This never use - because -
      out->sample_rate and out->config configured in adev_open_output_stream
      out->config = can have deep or no pcm config with only 48000 sample rate.
      
      Change-Id: Ie1c4025585ab6e1b7a900486181c1bceeff88139
      d0a02c09
    • Christopher N. Hesse's avatar
      audio: Directly link voice data <-> session · 6a960023
      Christopher N. Hesse authored
      This is part of a cleanup series.
      In the future, we should reconsider the struct usage and (maybe?) move
      the members into one common place.
      
      Change-Id: I3218d75acb0c4965332ba0de30b40ca7821596a7
      6a960023
    • Usaamah Patel's avatar
      audio: run ril_set_call_clock_sync() in stop_voice_session() · b8250d0f
      Usaamah Patel authored
      
      
      Some devices like the Samsung Galaxy S6, require this
      to be run at the end of the voice session. However some
      devices also need this to be run at the start of the
      voice session whereas the S6 does not (see previous commit).
      
      Change-Id: I833b57e262795fcbd8be6f44afb17b0f1ca6fee3
      Signed-off-by: default avatarUsaamah Patel <ussyp2015@gmail.com>
      b8250d0f
    • Martin Hoffmann's avatar
      audio: Fix WBS sample rate usage · f1a3539e
      Martin Hoffmann authored
      Fixes: BUGBASH-302
      
      Correctly use 16khz for the WBS-SCO pcm_config.
      No more garbled or mute in-call sound on bt.
      
      Apply together with a device specific port of:
      https://review.lineageos.org/#/c/177996/
      and REMOVE any definitions of
      SCO_WBS_SAMPLE_RATE
      https://review.lineageos.org/#/c/178371/
      
      This requires testing for all devices using:
      android_hardware_samsung
      (universal audio HAL part)
      
      Change-Id: I84fb1b234bf2880bf98bf99f1e4ff6c05500b0e3
      f1a3539e
  5. Feb 03, 2019
  6. Jan 31, 2019
  7. Jan 28, 2019
  8. Jan 24, 2019
  9. Jan 22, 2019
  10. Jan 21, 2019
  11. Jan 14, 2019
  12. Jan 12, 2019
  13. Nov 29, 2018
  14. Nov 27, 2018
  15. Nov 08, 2018
    • Anton Hansson's avatar
      AdvancedDisplay: Set LOCAL_PRIVATE_PLATFORM_APIS · 988a6bed
      Anton Hansson authored
      This change sets LOCAL_SDK_VERSION for all packages where
      this is possible without breaking the build, and
      LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.
      
      Setting one of these two will be made required soon, and this
      is a change in preparation for that. Not setting LOCAL_SDK_VERSION
      makes the app implicitly depend on the bootclasspath, which is
      often not required. This change effectively makes depending on
      private apis opt-in rather than opt-out.
      
      Test: make relevant packages
      Bug: 73535841
      Change-Id: Id4757bcca09eda716e0a1098d9290928fa87f22d
      988a6bed
    • Stricted's avatar
      power: Add Lineage power hints · bbf6af0b
      Stricted authored
      Change-Id: I3365592d4c54444dcff3b6daa1c383273f2aa3c9
      bbf6af0b
    • Gohulan Balachandran's avatar
      libril: Replace strncpy with strlcpy. · d2448d20
      Gohulan Balachandran authored
      Use strlcpy instead of strncpy when copying strings to make sure
      the copy is always null-terminated.
      
      Change-Id: I12d4883c22a180e2136dc8c85bc0394ddcdcb706
      d2448d20
    • terrycrhuang's avatar
      libril: Change rild initial sequence to · afd8ccdc
      terrycrhuang authored
       guarantee non-null function pointer before rild register its hidl service
      
      Test: Build and local test
      Bug: 78886552
      Change-Id: I1137cc0f4f09f0304662a2227b84c2b5b228d45d
      afd8ccdc
    • Steven Moreland's avatar
      libril: Add DISABLE_RILD_OEM_HOOK. · 8fbe61e7
      Steven Moreland authored
      OEM hook is deprecated, so adding a way to disable it to
      this radio implementation.
      
      Bug: 75322118
      Test: boot device w/ DISABLE_RILD_OEM_HOOK works, lshal
      Change-Id: Ie7ade48476d2c330df608e9cc8dab805f84dd81d
      8fbe61e7
    • Amit Mahajan's avatar
      libril: Store the system time when NITZ is · c0eb22bb
      Amit Mahajan authored
       received.
      
      If cached value for NITZ is used, the time at which it was
      received needs to be cached too.
      
      Test: Basic telephony sanity
      Bug: 72283604
      Change-Id: I8f443171c4583e3eab9be7973d7714ae6c7ab6af
      c0eb22bb
Loading