1. 13 Jun, 2012 1 commit
    • Eric Laurent's avatar
      audio policy: fix volume upon A2DP connection · 4366b4a6
      Eric Laurent authored
      setForceUse() should not force new device selection on outputs
      if the selected device is 0. If a device 0 (no device) selection
      is forced on a duplicated output, this causes volumes to be reset to
      their default on outputs the duplicated output is connected to.
      
      Also force reapply volumes when a new output is created. It is safer and more
      explicit than relying on the fact that the selected volume is different
      from default volume and thus is actually sent to audioflinger.
      
      Bug 6658021.
      
      Change-Id: I0a14d5229847e001b0d44f60d41c241efdb9946a
      4366b4a6
  2. 07 Jun, 2012 3 commits
  3. 06 Jun, 2012 1 commit
  4. 05 Jun, 2012 1 commit
    • Jean-Michel Trivi's avatar
      Increase system stream volume on speaker · 12389787
      Jean-Michel Trivi authored
      Increase the volume of the system stream for speaker output, so
       sounds played on this stream can be louder on devices that
       need it.
      Additional changes in the rest of the framework will define properties
       to tune sound effect levels on a per-device basis.
      
      Bug 6448481
      
      Change-Id: Ia6c1ff314a321c6e271a682e3f4ff64c250b184e
      12389787
  5. 04 Jun, 2012 1 commit
    • Eric Laurent's avatar
      audio policy: improve support for direct outputs · 3cdfddf1
      Eric Laurent authored
      Add the capability to query supported parameters for
      direct outputs after a device is connected. This allows
      to dynamically update the output profile for devices like
      HDMI where the capabilities depend on the connected sink.
      
      Also added very verbose log mode for volume and mute.
      
      Change-Id: I1d4ba8e7dbc3e1af883582857ce93240441e551c
      3cdfddf1
  6. 31 May, 2012 1 commit
    • Marco Nelissen's avatar
      Ensure global effects are on the correct output · 46604553
      Marco Nelissen authored
      Global effects such as the visualizer would sometimes not be on the
      right output, for example when switching from a2dp to wired headset
      or back, when there are both regular and deep buffer outputs available.
      We now check which of the available outputs the global effect should
      be on when more than one is available.
      b/6528772
      
      Change-Id: Ie268e32ef41e7888da67c24730dc93750a2cf579
      46604553
  7. 22 May, 2012 1 commit
  8. 16 May, 2012 1 commit
    • Eric Laurent's avatar
      audio policy: fix in call volume problem. · 01e6272f
      Eric Laurent authored
      When switching audio path, it is sometimes required
      to temporarily mute certain streams to avoid glitches.
      The unmute command is sent with a delay but the volume applied
      when unmuting is computed according to the state at the time of mute.
      If the device selection changes after the delayed unmute is programmed
      the new volume will not correspond to the new device.
      
      setStreamMute() now accepts a device selection as input parameter which is
      used instead of current device for volume computation.
      
      Bug 6497819.
      
      Change-Id: I355ebf9e1afe814fa5c2723bda9c40e58f921b46
      01e6272f
  9. 12 May, 2012 1 commit
    • Jeff Brown's avatar
      Delete unused function. · 03f3747b
      Jeff Brown authored
      set_last_user_activity_timeout() is no longer used or useful.
      It opens a sysfs node that no longer exists that used to
      be published by a daemon that is no longer even compiled
      and that is about to be deleted.  It used to be called
      by the power manager with a huge value whose purpose was
      essentially to disable the timeout feature altogether.
      
      Long live dead code!
      
      Bug: 6435382
      Change-Id: If8f97a66f4e963a11e1c6b67ad97b41b2613043e
      03f3747b
  10. 10 May, 2012 1 commit
    • Eric Laurent's avatar
      Reduce system stream volume. · 7465678e
      Eric Laurent authored
      Reduce system stream volume by 6dB as
      UI sounds are now perceived as being too loud.
      
      Issue 6448481.
      
      Change-Id: I0237eb94245014724dfdf55253049340e2162af8
      7465678e
  11. 26 Apr, 2012 1 commit
    • Eric Laurent's avatar
      system and UI sounds volume policy · ddfe2690
      Eric Laurent authored
      Added specific volume curves for AUDIO_STREAM_SYSTEM,
      AUDIO_STREAM_ENFORCED_AUDIBLE and AUDIO_STREAM_DTMF.
      Volume for these streams tracks AUDIO_STREAM_RING on phones
      and AUDIO_STREAM_MUSIC on tablets but is contrained in the range
      -24dB to -6dB on speaker and -24dB to -12dB on headset.
      
      STRATEGY_ENFORCED_AUDIBLE routing policy is now the same as
      STRATEGY_MEDIA in countries where not enforced.
      
      Change-Id: If58d96559bfe2bbff4cd94c631d5933bd940778e
      ddfe2690
  12. 24 Apr, 2012 1 commit
  13. 23 Apr, 2012 2 commits
  14. 20 Apr, 2012 1 commit
    • Eric Laurent's avatar
      audio policy: add support for deep audio buffers · b2971bf2
      Eric Laurent authored
      Added definitions for parsing deep buffer flags in output profiles.
      
      Make sure that sound start is delayed enough to allow
      duck/mute effect to apply before starting a notification on an output
      with lower latency.
      
      Change-Id: I1578e245da19d1a0f9ec62a2ea6dddaf82ea282b
      b2971bf2
  15. 18 Apr, 2012 1 commit
  16. 17 Apr, 2012 1 commit
  17. 06 Apr, 2012 1 commit
  18. 05 Apr, 2012 1 commit
  19. 04 Apr, 2012 1 commit
    • Eric Laurent's avatar
      audio policy: load audio hw modules · 70c236c9
      Eric Laurent authored
      Audio hw modules are now loaded according to configuration
      data read from audio_policy.conf. They are not loaded anymore
      from a hardcoded list in AudiFlinger.
      
      Output and input streams are opened on the hw module by which
      they are exposed.
      
      Also removed obsolete "acoustics" flags for input streams.
      
      Change-Id: I8dc658cc83890d3ac7d5e36c372a03732aa5b0c4
      70c236c9
  20. 03 Apr, 2012 1 commit
    • Eric Laurent's avatar
      audio policy: use configuration file · 5ccdf14a
      Eric Laurent authored
      The audio policy manager implementation now reads a configuration file at
      boot time that contains descriptors for available audio hardware
      modules and for each module the profiles of available inputs and outputs streams.
      
      The configuration file path on the target is: /system/etc/audio_policy.conf.
      A default configuration file is given that defines a basic configuration
      with one primary audio hw module capable of playback and capture.
      Each platform or device should have its own audio_policy.conf file.
      
      Also removed default value of fromCache argument of getDeviceForStrategy()
      and getNewDevice() methods.
      
      Change-Id: I0c773d2331508bbc787f89b123dd6a7b8c10d459
      5ccdf14a
  21. 02 Apr, 2012 1 commit
    • Jean-Michel Trivi's avatar
      Only duplicate notifications when no media is playing · 12bd6e4a
      Jean-Michel Trivi authored
      Map the NOTIFICATION stream type to a new strategy,
       named STRATEGY_NOTIFICATION_RESPECTFUL, which differs
       from STRATEGY_NOTIFICATION in that, when media is
       playing, the notifications will use the same output
       as the MEDIA strategy. This will results in the
       notifications not being duplicated on the speaker
       when a headset is in use for media playback.
      
      Change-Id: I032be0e2d383c69b5b6c912d7174753f5572c4b4
      12bd6e4a
  22. 22 Mar, 2012 3 commits
  23. 20 Mar, 2012 1 commit
  24. 16 Mar, 2012 1 commit
  25. 15 Mar, 2012 2 commits
    • Kenny Root's avatar
      Add support for EINTR to wifi.c · cf449e14
      Kenny Root authored
      Some system calls can be interrupted. wifi.c in particular was getting
      into error conditions during bugreport because it doesn't handle EINTR
      at all.
      
      Change-Id: I7bec432a0b3dca7dcc5c03c5e9f5e9ed73fa3c4b
      cf449e14
    • Glenn Kasten's avatar
      Add libmedia_native · 24a710ae
      Glenn Kasten authored
      Change-Id: I1d66327828a5adb06911de1f72076bc0295255c1
      24a710ae
  26. 08 Mar, 2012 4 commits
    • Eric Laurent's avatar
      audio policy: use audio_devices_t when appropriate · f9a4e2ec
      Eric Laurent authored
      Change-Id: I0b4e2ff705fce96b40fdda28b1bc4b514438bec6
      f9a4e2ec
    • Eric Laurent's avatar
      audio policy: spaced comments in header file · f7db0356
      Eric Laurent authored
      Change-Id: Ie72dcb9e33afb217bb7e37081500a7fc53d7a047
      f7db0356
    • Eric Laurent's avatar
      audio policy: use common string for A2DP address · 08b014d9
      Eric Laurent authored
      Use definition from audio.h for A2DP sink address parameter.
      
      Change-Id: I2d7905b8e3dd71fab2efc68ae16682e09c3f872e
      08b014d9
    • Eric Laurent's avatar
      audio policy manager: more generic A2DP impl. · b4696fc2
      Eric Laurent authored
      This change makes support for A2DP related audio policy more generic:
      -removed WITH_A2DP compilation switch
      -use output profile descriptors listing the parameters
      (sampling rate, format...) devices and attributes (low power, tunneling...)
      for each available output.
      All the behavior specific to A2DP is derived from the A2DP output profile
      descriptor.
      - removed obsolete a2dpUsedForSonification() method.
      
      This is a first step towards a more generic support for different audio
      hardware modules (USB, HDMI) and output streams supporting different
      combinations of parameters (sampling rate, format...) and attributes
      (low power, tunneling...).
      Ultimately, the hw modules and output descriptors will loaded from a
      configuration file.
      
      Change-Id: Ife3e49e1afbcb72613bfc8ce38919bb087ca85ea
      b4696fc2
  27. 18 Feb, 2012 1 commit
  28. 16 Feb, 2012 1 commit
    • Eric Laurent's avatar
      Fix volume not restored when exiting silent mode · c5eb8b4a
      Eric Laurent authored
      The change for volume per device introduced a problem where if a headset
      is plugged in while in silent mode, the sound will not be restored
      at the first press on volume up key but only at the second press.
      
      This is because when exiting silent mode, AudioService reapplies the
      last known volume for all devices in any order and the last volume
      applied prevails, even if it is for a device other than currently selected
      by audio policy manager.
      
      The fix consists in applying a new volume only if the device indicated
      matches currently selected device on an output.
      
      Change-Id: I778b90a9ec5a8b4a15e0333bd045f2dd327f388c
      c5eb8b4a
  29. 14 Feb, 2012 1 commit
  30. 03 Feb, 2012 1 commit
  31. 01 Feb, 2012 1 commit