OSDN Git Service

android-x86/frameworks-av.git
10 years agoam 8a454611: Merge "stagefright: added support, and SoftOMX decoder, for HEVC" into...
Lajos Molnar [Fri, 6 Jun 2014 23:03:30 +0000 (23:03 +0000)]
am 8a454611: Merge "stagefright: added support, and SoftOMX decoder, for HEVC" into lmp-preview-dev

* commit '8a45461198c69e9e15f133c2e11ded47fc4c708b':
  stagefright: added support, and SoftOMX decoder, for HEVC

10 years agoMerge "stagefright: added support, and SoftOMX decoder, for HEVC" into lmp-preview-dev
Lajos Molnar [Fri, 6 Jun 2014 22:59:08 +0000 (22:59 +0000)]
Merge "stagefright: added support, and SoftOMX decoder, for HEVC" into lmp-preview-dev

10 years agostagefright: added support, and SoftOMX decoder, for HEVC
Harish Mahendrakar [Tue, 20 May 2014 16:30:59 +0000 (09:30 -0700)]
stagefright: added support, and SoftOMX decoder, for HEVC

also fixed QuerySupportedProfileLevels in
SoftVideoDecoderOMXComponent.cpp

Bug: 14571712
Change-Id: Ifa3793f7c1b18ac5e8c0a096848c998cabd9e777

10 years agoMerge "Guard against malformed files"
Marco Nelissen [Fri, 6 Jun 2014 21:37:32 +0000 (21:37 +0000)]
Merge "Guard against malformed files"

10 years agoMerge "do not drop TS packet on discontinuity at payload start"
Chong Zhang [Fri, 6 Jun 2014 21:34:32 +0000 (21:34 +0000)]
Merge "do not drop TS packet on discontinuity at payload start"

10 years agodo not drop TS packet on discontinuity at payload start
Chong Zhang [Thu, 5 Jun 2014 21:44:03 +0000 (14:44 -0700)]
do not drop TS packet on discontinuity at payload start

Bug: 15470543

Change-Id: Ia96a295fbc7e9f1b1d5c0d9091ac62184d44dcfa

10 years agoMerge "check camera permission for video source other than SURFACE"
Chong Zhang [Fri, 6 Jun 2014 20:22:17 +0000 (20:22 +0000)]
Merge "check camera permission for video source other than SURFACE"

10 years agocheck camera permission for video source other than SURFACE
Chong Zhang [Thu, 5 Jun 2014 19:03:56 +0000 (12:03 -0700)]
check camera permission for video source other than SURFACE

Bug: 15448704
Change-Id: I5f5417037b877a6da3a46700ebb5a80ea59aac36

10 years agoGuard against malformed files
Marco Nelissen [Thu, 5 Jun 2014 17:37:26 +0000 (10:37 -0700)]
Guard against malformed files

b/15433074

Change-Id: I35363def42d38eba49dd5aece566fd345743937e

10 years agoMerge "Audio policy: new media volume curve for speaker with DRC"
Jean-Michel Trivi [Fri, 6 Jun 2014 17:57:44 +0000 (17:57 +0000)]
Merge "Audio policy: new media volume curve for speaker with DRC"

10 years agoMerge "Make AAC decoder behavior after flush consistent with non-flush"
Marco Nelissen [Fri, 6 Jun 2014 16:51:00 +0000 (16:51 +0000)]
Merge "Make AAC decoder behavior after flush consistent with non-flush"

10 years agoMake AAC decoder behavior after flush consistent with non-flush
Marco Nelissen [Thu, 5 Jun 2014 23:58:57 +0000 (16:58 -0700)]
Make AAC decoder behavior after flush consistent with non-flush

Timestamps don't start at zero, but at least they're consistent.

Change-Id: I2ce9cd60655a4ece787802902b679fda01cb6182

10 years agoam 270facca: We still need the raw codec
Marco Nelissen [Thu, 5 Jun 2014 23:41:06 +0000 (23:41 +0000)]
am 270facca: We still need the raw codec

* commit '270facca297275a4889d1cc49ec4d2768ed38bb7':
  We still need the raw codec

10 years agoam 45df31f5: Merge "AudioFlinger: fix PatchPanel debug log." into lmp-preview-dev
Eric Laurent [Thu, 5 Jun 2014 23:41:06 +0000 (23:41 +0000)]
am 45df31f5: Merge "AudioFlinger: fix PatchPanel debug log." into lmp-preview-dev

* commit '45df31f511ba9ae9b45c769fc546eca4bcf4bbdb':
  AudioFlinger: fix PatchPanel debug log.

10 years agoWe still need the raw codec
Marco Nelissen [Thu, 5 Jun 2014 22:52:54 +0000 (15:52 -0700)]
We still need the raw codec

It's used for FLAC and PCM Wav, which output PCM data.
b/15320804

Change-Id: I67921a45dd4a3a175fce412e055728859e2309ba

10 years agoAudio policy: new media volume curve for speaker with DRC
Jean-Michel Trivi [Thu, 5 Jun 2014 22:33:20 +0000 (15:33 -0700)]
Audio policy: new media volume curve for speaker with DRC

For devices with DRC on speaker (using the flag "speaker_drc_enabled"
 in audio_policy.conf), set the speaker media volume to use a
 new curve with more aggressive attenuation in the upper range.

Bug 15318604

Change-Id: Ia5fb9fdd608fddad22fadfb1065d35574030bb52

10 years agoMerge "Added paused state to NuPlayerDecoder"
Wei Jia [Thu, 5 Jun 2014 20:00:28 +0000 (20:00 +0000)]
Merge "Added paused state to NuPlayerDecoder"

10 years agoresolved conflicts for merge of 1a392aa1 to master
Glenn Kasten [Thu, 5 Jun 2014 17:41:38 +0000 (10:41 -0700)]
resolved conflicts for merge of 1a392aa1 to master

Change-Id: I7658a265a12f2a19a32ed187502a50aadafdba82

10 years agoMerge "AudioFlinger: fix PatchPanel debug log." into lmp-preview-dev
Eric Laurent [Thu, 5 Jun 2014 17:26:30 +0000 (17:26 +0000)]
Merge "AudioFlinger: fix PatchPanel debug log." into lmp-preview-dev

10 years agoAdded paused state to NuPlayerDecoder
Wei Jia [Wed, 4 Jun 2014 23:21:56 +0000 (16:21 -0700)]
Added paused state to NuPlayerDecoder

This prevents decoder from requesting new buffer until the decoder
is resumed, and prevents processing a potential DISCONTINUITY while
the player is still flushing.

Bug: 13133027

Change-Id: I2f9fa9f00c8583aa6908809cb7c31ddde07cfaf0

10 years agoMerge "add sound trigger native service"
Eric Laurent [Thu, 5 Jun 2014 15:32:53 +0000 (15:32 +0000)]
Merge "add sound trigger native service"

10 years agoam 9042b116: Merge "MediaCodecList: remove force-added codecs for videoeditor" into...
Lajos Molnar [Thu, 5 Jun 2014 14:47:00 +0000 (14:47 +0000)]
am 9042b116: Merge "MediaCodecList: remove force-added codecs for videoeditor" into lmp-preview-dev

* commit '9042b116b62a287bb86a18af6b428c7a2b7720aa':
  MediaCodecList: remove force-added codecs for videoeditor

10 years agoMerge "Squashed commit of the following:" into lmp-preview-dev
Glenn Kasten [Thu, 5 Jun 2014 14:44:32 +0000 (14:44 +0000)]
Merge "Squashed commit of the following:" into lmp-preview-dev

10 years agoam cb3d3a36: (-s ours) am 17a6dd60: DO NOT MERGE: MediaCodecList: remove force-added...
Lajos Molnar [Thu, 5 Jun 2014 14:43:01 +0000 (14:43 +0000)]
am cb3d3a36: (-s ours) am 17a6dd60: DO NOT MERGE: MediaCodecList: remove force-added codecs for videoeditor

* commit 'cb3d3a365c91ed996c47dea6ff1490f2f13c1b52':
  DO NOT MERGE: MediaCodecList: remove force-added codecs for videoeditor

10 years agoam 17a6dd60: DO NOT MERGE: MediaCodecList: remove force-added codecs for videoeditor
Lajos Molnar [Thu, 5 Jun 2014 14:39:59 +0000 (14:39 +0000)]
am 17a6dd60: DO NOT MERGE: MediaCodecList: remove force-added codecs for videoeditor

* commit '17a6dd60f5f8a28af1db451bcbf44805648c844a':
  DO NOT MERGE: MediaCodecList: remove force-added codecs for videoeditor

10 years agoam cc839bd4: Merge "DNG: Fix OpcodeList2 length field." into lmp-preview-dev
Ruben Brunk [Thu, 5 Jun 2014 14:39:24 +0000 (14:39 +0000)]
am cc839bd4: Merge "DNG: Fix OpcodeList2 length field." into lmp-preview-dev

* commit 'cc839bd4727be02d9352f46d043a7e9cc9c7d642':
  DNG: Fix OpcodeList2 length field.

10 years agoMerge "MediaCodecList: remove force-added codecs for videoeditor" into lmp-preview-dev
Lajos Molnar [Thu, 5 Jun 2014 14:36:18 +0000 (14:36 +0000)]
Merge "MediaCodecList: remove force-added codecs for videoeditor" into lmp-preview-dev

10 years agoSquashed commit of the following:
Glenn Kasten [Thu, 5 Jun 2014 03:31:46 +0000 (20:31 -0700)]
Squashed commit of the following:

commit 9128d6ffec43731d723f9b394f243d940f4c7e41
Author: Glenn Kasten <gkasten@google.com>
Date:   Tue May 13 10:38:42 2014 -0700

    Use of fast capture by normal capture

    Will only configure fast capture path if the input buffer size is less than
    10 ms and the input sample rate is same as the primary output sample rate.

    Change-Id: I4a7cdc6069d750845412c626d27e83f72a1ab397

commit 2e5e0806a5abe7499848358ef5fde5c26405000d
Author: Glenn Kasten <gkasten@google.com>
Date:   Mon Jun 2 08:29:22 2014 -0700

    Add mPrimaryOutputSampleRate

    Change-Id: I46b527fc3f2b5a5720a74b4f0b9a8f2e0d570b09

commit baf1d73467923996d1b1f2a9237260cc5697e050
Author: Andy Hung <hunga@google.com>
Date:   Fri May 30 10:42:03 2014 -0700

    Change parameter type for volume to float in AudioMixer

    Change-Id: I4da1505ce852505f86f8e5b87f60e8edceeb30e0

commit 40fe20fa9760cd03c69778c2021cf7a490d75ece
Author: Andy Hung <hunga@google.com>
Date:   Fri May 30 10:35:47 2014 -0700

    Rename UNITY_GAIN to UNITY_GAIN_INT in AudioMixer

    Change-Id: Ic040311305026f0b4c4280a5b3bef7a447ac1da3

commit 37c9a2b49f876abc5ff537a9ec036d7f0a423775
Author: Andy Hung <hunga@google.com>
Date:   Thu May 29 21:33:13 2014 -0700

    Refactor setVolumeRampVariables in AudioMixer

    Change-Id: I8fcf3101bcea292de7c65433fa578f1c9cdd0974

commit 397070eca31f121d5d3993de1bfea99aaea5d4f3
Author: Andy Hung <hunga@google.com>
Date:   Thu May 29 18:52:38 2014 -0700

    Fix floating point output from mixer

    A buffer pointer was being erroneously reset to buffer start,
    potentially causing an audio glitch. The floating point
    output mode is not enabled at this time, but will be in
    the future.

    Change-Id: If8b6414d232f064f3a2e2c5a6da889a91b27fb24

commit 2e61aa5b33b2247bbc5d4eaa0b519df9accd4bbc
Author: Andy Hung <hunga@google.com>
Date:   Fri May 23 21:22:17 2014 -0700

    Add multiple format capability to FastMixer

    Floating point data from MixerThread into FastMixer.
    Multiple output format capability from FastMixer to Sink.

    Change-Id: I0da17810ee71381a39a006c46faec71108d22c26

commit b9ea653c702a785bbd23a66c5e588d40b4192c4e
Author: Andy Hung <hunga@google.com>
Date:   Thu May 29 15:53:09 2014 -0700

    Avoid resetting BufferProviders in mixer unnecessarily

    Change-Id: Iad85c4dfd21be1dbf89dc11906106b34219376f8

commit 7f1a6d6da21c616f80cf9ba21bea11b419ec561b
Author: Andy Hung <hunga@google.com>
Date:   Tue May 27 12:32:17 2014 -0700

    Update dynamic resampler buffer fetching

    Make the criteria tight for fetching to avoid storing
    excessive frame data internal to the resampler.
    This should reduce jitter in frame delivery computation.

    Bug: 14962343
    Change-Id: I7adaf714d11c272696ccdbf218bda994c7217477

commit b5e4aac07b9a02f0c803c090058602b03ac09ebb
Author: Glenn Kasten <gkasten@google.com>
Date:   Tue May 27 12:30:54 2014 -0700

    Allow kFastTrackMultiplier to be specified per device

    Change-Id: I4eaaaf038df720cec4f5d9221d1b632970f9e3dd

commit b93cd97a52af31122df2da2cc0415cda888c8c73
Author: Andy Hung <hunga@google.com>
Date:   Fri May 23 21:13:31 2014 -0700

    Rename mixBuffer to mMixerBuffer in FastMixer

    Likewise mixBufferState becomes mMixerBufferState.
    This harmonizes with the naming in AF::MixerThread.

    Change-Id: I1255d7c07cc2c6ee925d7430925236d2bd163122

commit 8340758622b9711365a8801806cbdf934803c63f
Author: Andy Hung <hunga@google.com>
Date:   Mon May 12 16:51:41 2014 -0700

    Add multiple format capability to AudioMixer

    Change-Id: I04ac1cafd90b6ed652f8d51888ad07576678f0bc
Signed-off-by: Andy Hung <hunga@google.com>
commit 6b695b9d094820c232a897a3fabbe83d2b7193fe
Author: Glenn Kasten <gkasten@google.com>
Date:   Thu Mar 13 14:59:31 2014 -0700

    Start adding FastCapture based on FastThread WIP

    This version supports at most one fast capture client.

    Change-Id: Idf609bfc80ae22433433d66a5232c043c65506df

commit e951ad05a2c388471d7e2806d91e7d51325a150a
Author: Glenn Kasten <gkasten@google.com>
Date:   Mon May 12 11:06:26 2014 -0700

    Move validation of frameCount from set to openRecord_l

    This move is needed because frameCount is validated on server side for
    fast tracks (as should be done for normal tracks too).

    Change-Id: I6d99e80869fd90fab373cf60ef348c01f075fbca

commit 73e76992dbba794894837c38e5472312ea829cf3
Author: Glenn Kasten <gkasten@google.com>
Date:   Tue May 13 10:41:52 2014 -0700

    Allow track buffer "allocation" to be from pipe

    Change-Id: Ib9ac170f8e8b7746b3588157a56cbee3b753a1cb

commit 60de1d7ded05c6304037d4858b401094b1d2b4d3
Author: Andy Hung <hunga@google.com>
Date:   Fri May 9 15:02:21 2014 -0700

    Add format parameter to getTrackName() and track_t

    Change-Id: Ia152a839014e235fbfb656104c15d7c1b456d02e
Signed-off-by: Andy Hung <hunga@google.com>
Change-Id: Ied0ade8b25d23e89bb03319a7e3135c238f735b9

10 years agoAudioFlinger: fix PatchPanel debug log.
Eric Laurent [Thu, 5 Jun 2014 03:02:57 +0000 (20:02 -0700)]
AudioFlinger: fix PatchPanel debug log.

Bug: 14815883.
Change-Id: I71cf2ef74a96d3cdb27f2beb1b76b8979c738335

10 years agoMerge "Update resampler to fetch exactly the frames needed"
Andy Hung [Thu, 5 Jun 2014 02:17:39 +0000 (02:17 +0000)]
Merge "Update resampler to fetch exactly the frames needed"

10 years agoam 26594add: Merge "audio policy: new setAudioPortConfig implementation" into lmp...
Eric Laurent [Wed, 4 Jun 2014 23:42:59 +0000 (23:42 +0000)]
am 26594add: Merge "audio policy: new setAudioPortConfig implementation" into lmp-preview-dev

* commit '26594add1ec0b6255c96b39e43ccdc95b2c480aa':
  audio policy: new setAudioPortConfig implementation

10 years agoMerge "DNG: Fix OpcodeList2 length field." into lmp-preview-dev
Ruben Brunk [Wed, 4 Jun 2014 23:33:00 +0000 (23:33 +0000)]
Merge "DNG: Fix OpcodeList2 length field." into lmp-preview-dev

10 years agoDNG: Fix OpcodeList2 length field.
Ruben Brunk [Wed, 4 Jun 2014 22:35:21 +0000 (15:35 -0700)]
DNG: Fix OpcodeList2 length field.

Bug: 15432434
Change-Id: I2a0e017f72c31cdbd30df1fdb32cdd5ff4af3649

10 years agoadd sound trigger native service
Eric Laurent [Sat, 19 Apr 2014 00:40:41 +0000 (17:40 -0700)]
add sound trigger native service

Change-Id: I0cd954c1c7d28a334e786d0004431d4f6a1227ec

10 years agoam 4bd9d452: Merge "audio policy: removed raw pointers." into lmp-preview-dev
Eric Laurent [Wed, 4 Jun 2014 21:31:53 +0000 (21:31 +0000)]
am 4bd9d452: Merge "audio policy: removed raw pointers." into lmp-preview-dev

* commit '4bd9d45230cd69c0409591874db3e6f2e3a226b3':
  audio policy: removed raw pointers.

10 years agoam 83438ce6: Merge "audio policy: add permission for routing APIs." into lmp-preview-dev
Eric Laurent [Wed, 4 Jun 2014 21:31:52 +0000 (21:31 +0000)]
am 83438ce6: Merge "audio policy: add permission for routing APIs." into lmp-preview-dev

* commit '83438ce6cbbff49ca26d4bd694ffdad4842ded5a':
  audio policy: add permission for routing APIs.

10 years agoam 0d843fdc: (-s ours) Merge "Fix typos, remove callback functions - do not merge...
Marco Nelissen [Wed, 4 Jun 2014 21:31:52 +0000 (21:31 +0000)]
am 0d843fdc: (-s ours) Merge "Fix typos, remove callback functions - do not merge" into lmp-preview-dev

* commit '0d843fdc91c98d447c3c3e357020d07b783c7bc0':
  Fix typos, remove callback functions - do not merge

10 years agoam 61378ccb: Merge "DNG: Add additional TIFF/EP tag definitions." into lmp-preview-dev
Ruben Brunk [Wed, 4 Jun 2014 21:31:52 +0000 (21:31 +0000)]
am 61378ccb: Merge "DNG: Add additional TIFF/EP tag definitions." into lmp-preview-dev

* commit '61378ccba48bb826988cdc585b264fdd999e1e6a':
  DNG: Add additional TIFF/EP tag definitions.

10 years agoDNG: Add additional TIFF/EP tag definitions.
Ruben Brunk [Tue, 3 Jun 2014 05:57:26 +0000 (22:57 -0700)]
DNG: Add additional TIFF/EP tag definitions.

Bug: 15112503
Change-Id: Ib06d9a5e70e6e3d5063a95a7109538ef64f03334

10 years agoMerge "audio policy: new setAudioPortConfig implementation" into lmp-preview-dev
Eric Laurent [Wed, 4 Jun 2014 19:22:29 +0000 (19:22 +0000)]
Merge "audio policy: new setAudioPortConfig implementation" into lmp-preview-dev

10 years agoMerge "audio policy: removed raw pointers." into lmp-preview-dev
Eric Laurent [Wed, 4 Jun 2014 18:11:30 +0000 (18:11 +0000)]
Merge "audio policy: removed raw pointers." into lmp-preview-dev

10 years agoMerge "audio policy: add permission for routing APIs." into lmp-preview-dev
Eric Laurent [Wed, 4 Jun 2014 18:11:10 +0000 (18:11 +0000)]
Merge "audio policy: add permission for routing APIs." into lmp-preview-dev

10 years agoaudio policy: new setAudioPortConfig implementation
Eric Laurent [Tue, 3 Jun 2014 20:32:54 +0000 (13:32 -0700)]
audio policy: new setAudioPortConfig implementation

Rewrite setAudioPortConfig() to take advantage of the new
AudioPortConfig class.

The configuration is now checked against AudioPort capabilities
and stored in the AudioPortConfig.

Fix a bug where the config mask was not set properly when calling
setAudioPortConfig at the PatchPanel interface.

Remove debug log in IAudioPolicyService.

Bug: 14815883.
Change-Id: I7eb7683a96e049581c13f2a212486507883d008d

10 years agoaudio policy: removed raw pointers.
Eric Laurent [Mon, 2 Jun 2014 19:01:23 +0000 (12:01 -0700)]
audio policy: removed raw pointers.

Use only RefBase objects for the following classes:
- AudioOutputDescriptor
- AudioInputDescriptor
- HwModule
- EffectDescriptor

Create a common base class AudioPortConfig for:
AudioOutputDescriptor, AudioInputDescriptor and DeviceDescriptor

Bug: 14815883.

Change-Id: I1bd193ef1020780d8b94c13142029903615aba97

10 years agoMerge "Fix typos, remove callback functions - do not merge" into lmp-preview-dev
Marco Nelissen [Wed, 4 Jun 2014 00:27:02 +0000 (00:27 +0000)]
Merge "Fix typos, remove callback functions - do not merge" into lmp-preview-dev

10 years agoFix typos, remove callback functions - do not merge
Marco Nelissen [Mon, 2 Jun 2014 22:40:15 +0000 (15:40 -0700)]
Fix typos, remove callback functions - do not merge

b/15414091
Change-Id: I2f7b7ea6a7943a808de2c6a54fe810eefdee133e

10 years agoMerge "DNG: Add additional TIFF/EP tag definitions." into lmp-preview-dev
Ruben Brunk [Tue, 3 Jun 2014 23:39:06 +0000 (23:39 +0000)]
Merge "DNG: Add additional TIFF/EP tag definitions." into lmp-preview-dev

10 years agoUpdate resampler to fetch exactly the frames needed
Andy Hung [Tue, 3 Jun 2014 01:54:08 +0000 (18:54 -0700)]
Update resampler to fetch exactly the frames needed

This avoids unnecessary overfetching/releasing, which
could cause problems with the upstream AudioBufferProvider.
A one input sample delay is placed on the stream compared
with the previous implementation.

This change only affects the Dynamic resampler.

Change-Id: Ic7fcff130e0081b4724cfb5a00dc8e8b4a8b1af3

10 years agoam b6af7c63: am 05eaf105: Merge "Mp3decoder: Remove unused arm assembly files"
Narayan Kamath [Tue, 3 Jun 2014 11:11:38 +0000 (11:11 +0000)]
am b6af7c63: am 05eaf105: Merge "Mp3decoder: Remove unused arm assembly files"

* commit 'b6af7c635113d288d16a4f549679beffd86822d8':
  Mp3decoder: Remove unused arm assembly files

10 years agoam 05eaf105: Merge "Mp3decoder: Remove unused arm assembly files"
Narayan Kamath [Tue, 3 Jun 2014 08:56:40 +0000 (08:56 +0000)]
am 05eaf105: Merge "Mp3decoder: Remove unused arm assembly files"

* commit '05eaf105a2a1445c2c13801ee4533ded47f1df1b':
  Mp3decoder: Remove unused arm assembly files

10 years agoMerge "Mp3decoder: Remove unused arm assembly files"
Narayan Kamath [Tue, 3 Jun 2014 08:35:10 +0000 (08:35 +0000)]
Merge "Mp3decoder: Remove unused arm assembly files"

10 years agoDNG: Add additional TIFF/EP tag definitions.
Ruben Brunk [Tue, 3 Jun 2014 05:57:26 +0000 (22:57 -0700)]
DNG: Add additional TIFF/EP tag definitions.

Bug: 15112503
Change-Id: Ib06d9a5e70e6e3d5063a95a7109538ef64f03334

10 years agoMerge "Change parameter type for volume to float in AudioMixer"
Andy Hung [Mon, 2 Jun 2014 23:56:45 +0000 (23:56 +0000)]
Merge "Change parameter type for volume to float in AudioMixer"

10 years agoMerge "Rename UNITY_GAIN to UNITY_GAIN_INT in AudioMixer"
Andy Hung [Mon, 2 Jun 2014 23:32:27 +0000 (23:32 +0000)]
Merge "Rename UNITY_GAIN to UNITY_GAIN_INT in AudioMixer"

10 years agoMerge "Use of fast capture by normal capture"
Glenn Kasten [Mon, 2 Jun 2014 22:53:59 +0000 (22:53 +0000)]
Merge "Use of fast capture by normal capture"

10 years agoMerge "Refactor setVolumeRampVariables in AudioMixer"
Andy Hung [Mon, 2 Jun 2014 22:36:47 +0000 (22:36 +0000)]
Merge "Refactor setVolumeRampVariables in AudioMixer"

10 years agoUse of fast capture by normal capture
Glenn Kasten [Tue, 13 May 2014 17:38:42 +0000 (10:38 -0700)]
Use of fast capture by normal capture

Will only configure fast capture path if the input buffer size is less than
10 ms and the input sample rate is same as the primary output sample rate.

Change-Id: I4a7cdc6069d750845412c626d27e83f72a1ab397

10 years agoAdd mPrimaryOutputSampleRate
Glenn Kasten [Mon, 2 Jun 2014 15:29:22 +0000 (08:29 -0700)]
Add mPrimaryOutputSampleRate

Change-Id: I46b527fc3f2b5a5720a74b4f0b9a8f2e0d570b09

10 years agoaudio policy: add permission for routing APIs.
Eric Laurent [Thu, 29 May 2014 21:37:38 +0000 (14:37 -0700)]
audio policy: add permission for routing APIs.

Add check for signature or system permission
"android.permission.MODIFY_AUDIO_ROUTING" for routing
APIs.

Bug: 14815883.
Change-Id: Iefa0b9d90127a53e03a2e6d50dc93d8f4ae63e2f

10 years agoam 62aaabb3: audio policy: fix unitialized hw module in audio port
Eric Laurent [Mon, 2 Jun 2014 17:57:13 +0000 (17:57 +0000)]
am 62aaabb3: audio policy: fix unitialized hw module in audio port

* commit '62aaabb3905c61bb7acd6037414c206240a31c32':
  audio policy: fix unitialized hw module in audio port

10 years agoaudio policy: fix unitialized hw module in audio port
Eric Laurent [Mon, 2 Jun 2014 17:40:54 +0000 (10:40 -0700)]
audio policy: fix unitialized hw module in audio port

The hw module handle was not initialized when creating
and audio port configuration from an input stream descriptor.

Bug 15376641.

Change-Id: I6c784cded68a5c665fd22c3643765c63f70eb241

10 years agoMerge "MPEG4Extractor: guard against missing stbl."
Robert Shih [Mon, 2 Jun 2014 17:38:00 +0000 (17:38 +0000)]
Merge "MPEG4Extractor: guard against missing stbl."

10 years agoMerge "Fix floating point output from mixer"
Andy Hung [Mon, 2 Jun 2014 17:27:26 +0000 (17:27 +0000)]
Merge "Fix floating point output from mixer"

10 years agoMerge "Disable verbose logging"
Marco Nelissen [Mon, 2 Jun 2014 16:38:52 +0000 (16:38 +0000)]
Merge "Disable verbose logging"

10 years agoMerge "Start adding FastCapture based on FastThread WIP"
Glenn Kasten [Sun, 1 Jun 2014 19:39:54 +0000 (19:39 +0000)]
Merge "Start adding FastCapture based on FastThread WIP"

10 years agoam e1715a46: audio policy: add audio port gain control
Eric Laurent [Sat, 31 May 2014 01:55:53 +0000 (01:55 +0000)]
am e1715a46: audio policy: add audio port gain control

* commit 'e1715a465a29db625da9d0ea365edf371e39e201':
  audio policy: add audio port gain control

10 years agoam 1afeecb8: audio policy: parse device descriptors in config file
Eric Laurent [Sat, 31 May 2014 01:55:47 +0000 (01:55 +0000)]
am 1afeecb8: audio policy: parse device descriptors in config file

* commit '1afeecb88bea660b2c10b2096be0fd02433303ce':
  audio policy: parse device descriptors in config file

10 years agoresolved conflicts for merge of b52c152d to master
Eric Laurent [Sat, 31 May 2014 01:51:48 +0000 (18:51 -0700)]
resolved conflicts for merge of b52c152d to master

Change-Id: I34869bda071d511c9595ea0a5ff6571eb34da059

10 years agoaudio policy: add audio port gain control
Eric Laurent [Tue, 20 May 2014 18:30:42 +0000 (11:30 -0700)]
audio policy: add audio port gain control

Implement setAudioPortConfig() API to configure an
audio port.
Currently limited to gain control.

Bug: 14815883.

Change-Id: Ic1b268e5ba5c277e9f5b8fa63c81dd7c0b250024

10 years agoChange parameter type for volume to float in AudioMixer
Andy Hung [Fri, 30 May 2014 17:42:03 +0000 (10:42 -0700)]
Change parameter type for volume to float in AudioMixer

Change-Id: I4da1505ce852505f86f8e5b87f60e8edceeb30e0

10 years agoRename UNITY_GAIN to UNITY_GAIN_INT in AudioMixer
Andy Hung [Fri, 30 May 2014 17:35:47 +0000 (10:35 -0700)]
Rename UNITY_GAIN to UNITY_GAIN_INT in AudioMixer

Change-Id: Ic040311305026f0b4c4280a5b3bef7a447ac1da3

10 years agoRefactor setVolumeRampVariables in AudioMixer
Andy Hung [Fri, 30 May 2014 04:33:13 +0000 (21:33 -0700)]
Refactor setVolumeRampVariables in AudioMixer

Change-Id: I8fcf3101bcea292de7c65433fa578f1c9cdd0974

10 years agoam 0289d545: am 6ed77c13: am 2d0e8d8f: Merge "libcpustats: Turn on -Werror"
Mark Salyzyn [Fri, 30 May 2014 21:54:32 +0000 (21:54 +0000)]
am 0289d545: am 6ed77c13: am 2d0e8d8f: Merge "libcpustats: Turn on -Werror"

* commit '0289d54520ba66b0d7f0913a89a524c89a01b87e':
  libcpustats: Turn on -Werror

10 years agoam 6ed77c13: am 2d0e8d8f: Merge "libcpustats: Turn on -Werror"
Mark Salyzyn [Fri, 30 May 2014 21:51:00 +0000 (21:51 +0000)]
am 6ed77c13: am 2d0e8d8f: Merge "libcpustats: Turn on -Werror"

* commit '6ed77c130d80fe607ec91ada4cf5718d512b4ad5':
  libcpustats: Turn on -Werror

10 years agoFix floating point output from mixer
Andy Hung [Fri, 30 May 2014 01:52:38 +0000 (18:52 -0700)]
Fix floating point output from mixer

A buffer pointer was being erroneously reset to buffer start,
potentially causing an audio glitch. The floating point
output mode is not enabled at this time, but will be in
the future.

Change-Id: If8b6414d232f064f3a2e2c5a6da889a91b27fb24

10 years agoam 2d0e8d8f: Merge "libcpustats: Turn on -Werror"
Mark Salyzyn [Fri, 30 May 2014 21:47:19 +0000 (21:47 +0000)]
am 2d0e8d8f: Merge "libcpustats: Turn on -Werror"

* commit '2d0e8d8f75369b491362f2ea3a6efd5159df404c':
  libcpustats: Turn on -Werror

10 years agoMerge "libcpustats: Turn on -Werror"
Mark Salyzyn [Fri, 30 May 2014 21:42:54 +0000 (21:42 +0000)]
Merge "libcpustats: Turn on -Werror"

10 years agoam 6a94d69d: audio policy: implement routing control
Eric Laurent [Fri, 30 May 2014 21:32:33 +0000 (21:32 +0000)]
am 6a94d69d: audio policy: implement routing control

* commit '6a94d69dc4f32abb53c466a96f905bb199be6417':
  audio policy: implement routing control

10 years agolibcpustats: Turn on -Werror
Mark Salyzyn [Fri, 30 May 2014 20:30:18 +0000 (13:30 -0700)]
libcpustats: Turn on -Werror

- Switch to static_assert from deprecated utils/Debug.h
- Turn on C++11 standard
- Turn on -Werror

Change-Id: I4f1c08bbcaf1ad3a97502cde756a2f42bcece789

10 years agoMerge "Add multiple format capability to FastMixer"
Andy Hung [Fri, 30 May 2014 17:30:06 +0000 (17:30 +0000)]
Merge "Add multiple format capability to FastMixer"

10 years agoDisable verbose logging
Marco Nelissen [Fri, 30 May 2014 17:13:25 +0000 (10:13 -0700)]
Disable verbose logging

Change-Id: If9c87615707ed67f209258f9207d56f671cd0f08

10 years agoMerge "handle in and out audio device connection separately"
Eric Laurent [Fri, 30 May 2014 17:09:04 +0000 (17:09 +0000)]
Merge "handle in and out audio device connection separately"

10 years agoAdd multiple format capability to FastMixer
Andy Hung [Sat, 24 May 2014 04:22:17 +0000 (21:22 -0700)]
Add multiple format capability to FastMixer

Floating point data from MixerThread into FastMixer.
Multiple output format capability from FastMixer to Sink.

Change-Id: I0da17810ee71381a39a006c46faec71108d22c26

10 years agoaudio policy: parse device descriptors in config file
Eric Laurent [Wed, 14 May 2014 15:52:28 +0000 (08:52 -0700)]
audio policy: parse device descriptors in config file

Implement parsing of audio_policy.conf for device and gain
controller definitions.
Copy audio_policy_conf.h from hardware_legacy.
New syntax for devices and gain controllers description will not
be parsed by legacy audio policy manager.

Bug: 14815883.

Change-Id: I7f1035d514dcf55fb3e45ed1f633a2f63ee398f5

10 years agoaudio policy: add routing update client interface
Eric Laurent [Tue, 20 May 2014 18:27:36 +0000 (11:27 -0700)]
audio policy: add routing update client interface

Added IAudioPolicyServiceClient client binder interface
for client process to receive notifications from AudioPolicyService
when audio ports are added/removed or audio patches created/released.

The audio patches owned by a given client are automatically released when
this client binder dies.

Bug: 14815883.

Change-Id: I6013f6aec03b50565cffb1ad2cd1f0f8852032c5

10 years agoaudio policy: implement routing control
Eric Laurent [Tue, 20 May 2014 18:18:06 +0000 (11:18 -0700)]
audio policy: implement routing control

Add implementation of audio routing control via AudioSystem APIs.

The following APIs are implemented:
- listAudioPorts(): return a list of devices and output/input mixers ports
that can be used as sources or sinks for audio patches.
- createAudioPatch()/releaseAudioPatch(): create/release a connection patch between
two audio ports (e.g. to connect input from an HDMI device to a speaker output device).
Only one client application can own a patch from a given source.
When an audio port (device or mix) is part of an application created patch, its routing cannot
not be changed by a policy decision.
- listAudioPatches(): return a list of existing patches.

Each audio port addition/removal and each audio patch creation/release increments a generation count.
This generation count is used to ensure consistency betwen calls to
listAudioPorts() and listAudioPatches().

Bug: 14815883.

Change-Id: I022b638c2f5f0bb41543c7cfca7488fb45cfdd80

10 years agoMerge "Avoid resetting BufferProviders in mixer unnecessarily"
Andy Hung [Thu, 29 May 2014 23:22:40 +0000 (23:22 +0000)]
Merge "Avoid resetting BufferProviders in mixer unnecessarily"

10 years agohandle in and out audio device connection separately
Eric Laurent [Thu, 29 May 2014 23:08:11 +0000 (16:08 -0700)]
handle in and out audio device connection separately

AudioService now indicates in and out device connection
separately in case of combined devices like wired headset
or BT SCO headset.

Change-Id: I97adf8343d0ce32c279ffc3cce5c84ca7a349e16

10 years agoAvoid resetting BufferProviders in mixer unnecessarily
Andy Hung [Thu, 29 May 2014 22:53:09 +0000 (15:53 -0700)]
Avoid resetting BufferProviders in mixer unnecessarily

Change-Id: Iad85c4dfd21be1dbf89dc11906106b34219376f8

10 years agoMerge "AAC decoder: compensate limiter delay"
Jean-Michel Trivi [Thu, 29 May 2014 21:42:08 +0000 (21:42 +0000)]
Merge "AAC decoder: compensate limiter delay"

10 years agoAAC decoder: compensate limiter delay
Jean-Michel Trivi [Wed, 21 May 2014 01:32:17 +0000 (18:32 -0700)]
AAC decoder: compensate limiter delay

Add decoder limiter delay compensation to decoder wrapper
Includes a wrapper function for SoftAAC2.cpp which selects
 DRC-related decoder parameters according to information in the bitstream
 and desired DRC characteristics for different playback modes.

Bug 9428126

Change-Id: I5041b68760e95cf54073c3addf2b6026b9cfe8c5

10 years agoMerge "getSampletime -> getSampleTime"
Marco Nelissen [Thu, 29 May 2014 15:35:07 +0000 (15:35 +0000)]
Merge "getSampletime -> getSampleTime"

10 years agogetSampletime -> getSampleTime
Marco Nelissen [Thu, 29 May 2014 15:04:34 +0000 (08:04 -0700)]
getSampletime -> getSampleTime

Change-Id: I87aaa87be068d414903a0e1e22bfe4183cf45ab0

10 years agoMediaCodecList: remove force-added codecs for videoeditor
Lajos Molnar [Thu, 29 May 2014 14:34:59 +0000 (07:34 -0700)]
MediaCodecList: remove force-added codecs for videoeditor

Bug: 15320804
Change-Id: I1c2f0f75aeaabc20cb94e79e47b70f7faefe0a9e

10 years agoDO NOT MERGE: MediaCodecList: remove force-added codecs for videoeditor
Lajos Molnar [Thu, 29 May 2014 14:34:59 +0000 (07:34 -0700)]
DO NOT MERGE: MediaCodecList: remove force-added codecs for videoeditor

Bug: 15320804
Change-Id: I1c2f0f75aeaabc20cb94e79e47b70f7faefe0a9e

10 years agoam 32f93b7b: (-s ours) DO NOT MERGE: libstagefright: Add Opus support to ACodec:...
Vignesh Venkatasubramanian [Thu, 29 May 2014 09:43:18 +0000 (09:43 +0000)]
am 32f93b7b: (-s ours) DO NOT MERGE: libstagefright: Add Opus support to ACodec::getPortFormat

* commit '32f93b7bedc44b425ba99d69dec998334e759532':
  DO NOT MERGE: libstagefright: Add Opus support to ACodec::getPortFormat

10 years agoDO NOT MERGE: libstagefright: Add Opus support to ACodec::getPortFormat
Vignesh Venkatasubramanian [Wed, 28 May 2014 14:59:35 +0000 (07:59 -0700)]
DO NOT MERGE: libstagefright: Add Opus support to ACodec::getPortFormat

Bug: 15114855
Change-Id: Idb184ae15986450423fc8cf116cf077600b3ea67
(cherry picked from commit 8c6693b73cb4aed9d1dcb8d5d0828a77b7471a55)

10 years agoMerge "libstagefright: Add Opus support to ACodec::getPortFormat"
Lajos Molnar [Thu, 29 May 2014 02:07:16 +0000 (02:07 +0000)]
Merge "libstagefright: Add Opus support to ACodec::getPortFormat"

10 years agolibstagefright: Add Opus support to ACodec::getPortFormat
Vignesh Venkatasubramanian [Wed, 28 May 2014 14:59:35 +0000 (07:59 -0700)]
libstagefright: Add Opus support to ACodec::getPortFormat

Bug: 15114855
Change-Id: Idb184ae15986450423fc8cf116cf077600b3ea67

10 years agoam f948c894: (-s ours) Merge "DO NOT MERGE - IAudioPolicyService interface extension...
Eric Laurent [Thu, 29 May 2014 00:42:27 +0000 (00:42 +0000)]
am f948c894: (-s ours) Merge "DO NOT MERGE - IAudioPolicyService interface extension for patch panel" into lmp-preview-dev

* commit 'f948c894d47797f5846b823b32fac3856709064b':
  DO NOT MERGE - IAudioPolicyService interface extension for patch panel