summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* audiopolicy: port existing fixes to AudioPolicyManagerSatya Krishna Pindiproli2015-10-064-9/+42
| | | | | | | | | | | | | | | | | | This is a squashed commit of the following fixes in AudioPolicyManager. Only some parts of the fixes have been ported as the custom audio policy has the other required changes. audiopolicy: Fix MT call delay Change-Id: I790479eaad9d2d6fd4204cc4cb7698761c30f7cf audiopolicy: support extended feature in audiopolicymanager Change-Id: I1925339b591cd29f11a71c287a2e53c0627e9e62 audiopolicy: additional change for extended feature Change-Id: I9bad6a294ddd7aee72f6f6a314666b892b730c8e Change-Id: I7738d4b0ac11ee6d93bfd67e2553eae8518ff719
* Stagefright: Delay the force-shutdown of node after 10 secondsPraveen Chavan2015-10-061-2/+2
| | | | | | | | | | | | since the node can take more than (default) 3 seconds to transition to Exec --> Idle -> Loaded. In the event of freeing node before the component has transitioned to loaded, there may be race-conditions trying to invoke methods on a non-existant component and bad things can happen. Increase timeout to 10 seconds till the checks are in place. Change-Id: I97f698422dfe99b47b3bafb605b642a247b44110 CRs-Fixed: 884165
* audio: add support to enable Direct PCM outputvivek mehta2015-10-064-2/+15
| | | | | | allow effects in case outout is direct pcm Change-Id: I2ad7eacf11642a4ca9f892b61124293d0dc503a9
* rtsp: notify the client when receiving BYE message in RTCPLi Sun2015-10-064-0/+24
| | | | | | | RTSP stack would parse "BYE" message from RTCP packets and notify NuPlayer which will send the notification to the client. Change-Id: I461960f28610f998b71a6e1322fe79f9856c7a92
* httplive: Do not remove audio only playlistSanthosh Behara2015-10-061-1/+2
| | | | | | | | Do not remove audio only playlist. This will enable the player to switch to Audio only from Audio Video and vice versa. Change-Id: I56b9245f3d28ef9f8e31651cc59b494b763f3feb
* rtsp: do not drop early access units of seekable rtspLubin Yin2015-10-061-1/+1
| | | | | | | | | Access units of seekable RTSP will be mapped to normal playtime in RTSPSource, so the negative media time can be adjusted and played normally. Change-Id: I12793dbbf367650e66532195324adb5b5ad8fe85 CRs-Fixed: 866580
* frameworks/av: undefining MEDIA_QOE (needed by DASH)Manikanta Sivapala2015-10-061-2/+1
| | | | | | Removing MEDIA_QOE definition from mediaplayer Change-Id: I5f3902ab167b9108ca9b98cdaff73929264ed47f
* libstagefright: Increase raw decoder buffers to 8Yamit Mehta2015-10-061-1/+1
| | | | | | | | | | | | | | For WAV clips with wrong header values, the first attempt at PCM offloading is unsuccessful. This leads to the creation of a raw decoder and another attempt at offloading is tried with decoded PCM offload. This attempt succeeds, and the graph now has a GenericSource, NuPlayerDecoder and NuPlayerRenderer in it. Raw decoder has 4 output buffers, but this is not enough to fill the data at the rate NuPlayerRenderer needs for offloading. Fix this by increasing the buffer count for raw decoder. Change-Id: I29acc6b35fa9d5ab94e1df551f4cd89685527162
* nuplayer: Fix max buffer size for audio only streaming playbackAmit Shekhar2015-10-061-1/+3
| | | | | | | | | | Currently, audio only streaming playback with very low frame size faces underrun in compressed playback. This causes underruns while playing initial frames. By increasing the max buffer accumulation limit in Generic source, the underrun is avoided. Change-Id: I37949f65b9a08d0776f2346d665399be2ecd0265 CRs-Fixed: 875129
* Stagefright: video: Default thumbnail generation to hardware decoderPraveen Chavan2015-10-061-1/+1
| | | | | | | | | Prefer hardware decoder over software for better performance and more coverage of supported content. Eg: Software decoder may not handle interlaced content properly Change-Id: I045ab87cb6877f3318f38c50f06d32e19595d83b CRs-Fixed: 899714
* Stagefright: Update start-time once input-time reaches expected start-timePraveen Chavan2015-10-061-0/+6
| | | | | | | | | Not doing so will result in CameraSource always dropping frames since updated-timestamp (0-based) will never intersect start-timestamp (based on system-time). Change-Id: I696aef51398ed59be0bad7e0e6f9a85504c1f408 CRs-Fixed: 899460
* audio:mute duration at the beginning of the recordingDivya Narayanan Poojary2015-10-061-1/+1
| | | | | | | | | | | -Sometimes shutter sound is getting recorded because current kAutoRampStartUs is not sufficient to mute the shutter sound -Fix is to increase the kAutoRampStartUs to 500ms. Change-Id: Id37b48c4bb7b5c903ef502f933eaff7be0ea566c CRs-Fixed: 636491
* audiopolicy: do not update channelMask for voice input sourceKarthik Reddy Katta2015-10-061-14/+0
| | | | | | | | | | | It's not needed to update the channel mask based on source because the source is sent to audio HAL through set_parameters() and if source equal to VOICE_CALL does not mean that two channels need to capture. If recorder app selects AMR as encoding format but source as RX+TX means both RX and TX are captured in ONE channel. So use channels set by the app and use source for the type of capture (RX only, TX only, or RX+TX). Change-Id: Iedf23318356480ba939fc06df4ae4f12906322b3
* NuPlayer: Fix ANR while resetting RTSP playbacklubiny2015-10-061-0/+11
| | | | | | | | | | - When network is poor, the response of RTSP teardown won't be received in time, so ANR will happen. - With this patch, a teardown message will be sent when timeout expires, in order to avoid ANR. Change-Id: I3f9efd9fefa66104ad452559ced5ff5218d73a66 CRs-Fixed: 650866
* rtsp: Limit subframe processing to available buffer rangelubiny2015-10-061-0/+5
| | | | | | | | | | With some RTSP servers, the mpeg4 audio subframe count is inconsistent with the available data. When attempting to process subframes that would exceed that available buffer boundaries, this causes a memory access violation. Add buffer size checks to avoid this crash. Change-Id: I030c6f02c478e216c20d9b24fbd6b3a9c1530889 CRs-Fixed: 737819
* rtsp: Don't post AUTimeout check during pause when EOS is nearingLi Sun2015-10-062-0/+17
| | | | | | | | | | | | | | | | Fix crash issues while repeated pause/resume. The root cause is: While doing repeated pause-resume operation in RTSP streaming, some times, the accessunit timeout check is being posted when the streaming paused, and even after receving the EOS. Due to this check, after the EOS, the number of packets received will be zero and the session gets Teardown while the streaming is paused. Upon resume, it leads to check failure and crash. Cancel the timeout check if pause is not issued to MyHandler when nearing EOS. Change-Id: I897d8e18b0dbc29fc1099e7b3d1b5ccc16426a4d CRs-Fixed: 636312, 676054
* rtsp: Add a property "rtsp.transport.TCP"Surajit Podder2015-10-061-0/+9
| | | | | | | | | | | | | | - Add property "rtsp.transport.TCP" Value "true" - TCP Value "false" - UDP default value - false - This property can be used to test rtsp streaming over TCP directly for network compatibility testing Change-Id: Ic27b440067af49e7e3bcc45d86eb7a17ae9db54f CRs-Fixed: 435538
* AudioTrack: Fix for offload to BT/SSR fallback at EOSPreetam Singh Ranawat2015-10-061-0/+6
| | | | | | | | | | | -With big offload buffer size, connect BT or trigger SSR while waiting for stream to be completed, playback is moving to next clip. -avoid notifying EOS to client on any error while waiting for stream end event if it is offload playback. Change-Id: I748ed299df106385eaa030faecd0df6dc8e3c176
* audioflinger: increase client heap size to 2MBDhanalakshmi Siddani2015-10-061-2/+1
| | | | | | | | | | | | - Playback of 24 bit 192kHz clips fails during device switch between wired headset and BT when repeat track is enabled. - Memory allocation for AudioTrack fails because the heap gets fragmented and free chunks of the size requested are not available. - Increase the current heap size to 2MB to ensure that there is always a free chunk to accommodate the requested size. CRs-Fixed: 855910 Change-Id: I2eb18b15557fa264fb66ff282746cad4e6c718f7
* audio: add encoding support for linear PCM formatMingming Yin2015-10-063-1/+19
| | | | | | - add encoding support for linear PCM format. Change-Id: Iecf402064d67d35d5057b814c842d79af92756d0
* stagefright: Stop MediaSource if buffer setup failsApurupa Pattapu2015-10-061-0/+2
| | | | | | | | | extractVideoFrame can be called multiple times with the same MediaSource object. This fix will ensure that MediaSource state is cleared for all failure cases. CRs-Fixed: 894140 Change-Id: Iecfcae7c78d74a1aa7b5a218b9ba28b2ab1ed4a9
* libmedia: avoid processing stale callback events when track recycledYamit Mehta2015-10-061-0/+6
| | | | | | | | | | | | when track is reused from SoundPool and started again, the previous callback events could be processed immediately after track started, the new playback will be stopped then clear the stale cblk flags when recycled track is started again to avoid triggering unexpected callback events Change-Id: Ifc6fd973c655e9c7866391e7004016a7df9a9b9c CRs-Fixed: 819973
* AudioFlinger: Add PCM offload format for dumpsys loggingPreetam Singh Ranawat2015-10-061-0/+8
| | | | | | | -dumpsys logs show unknown format for PCM offload playback. -Add PCM offloading formats for logging. Change-Id: I4dbb8721c7e1d1f9d51bb1f964648046e7c09875
* video: Add support for MPEG4 DP video clipsSurajit Podder2015-10-062-1/+9
| | | | | | | | | Hardware decoder does not support MPEG4 DP clips Add changes to use software decoder MPEG4 DP streams: * Add mapping for MPEG4DP mime to compression type * Add MPEG4 DP mime to software MPEG4 decoder Change-Id: Ic763b7b5714ce6533c07e8bb65f0ecd09dc24e9e
* NuPlayer : send the correct streaming info while opening audio sinkPreetam Singh Ranawat2015-10-065-9/+17
| | | | | | | | | -For any offload playback NuPlayerRenderer always open the audio sink with isStreaming info as true. -Pass the streaming info to the NuPlayerRenderer while opening audio sink Change-Id: Ic9d5e7ae0b82a316ec4b4a72037519448f1a011c
* audio: use updated method for getting sample bitsSharad Sangle2015-10-063-5/+5
| | | | | | | method getPcmSampleBits is now getAudioSampleBits as it is extended for WMA, so use the updated method Change-Id: Ic0620fd009a8544db138f088cfd2e7e4a4ff390c
* NuPlayer: Clear stale track packets on seekXiaoming Yang2015-10-061-0/+1
| | | | | | | | | | | | | | EOS isn't notified to nuplayer immediately upon seek. Stale packets before seeking is still held by track, thus EOS won't be returned until all packets are consumed. To fix this issue and align nuplayer's behavior with awesome player, stale packets needs to be cleared on seek. Change-Id: I00d825cad7a9f3de1daf494078e7379dca8eba2e CRs-Fixed: 828785
* AudioOutput: Consider output bit width when reusing offload outputHaynes Mathew George2015-10-062-0/+19
| | | | | | | | Consider bit width of the incoming audio stream before deciding to recycle the previously used AudioTrack object. CRs-Fixed: 802834 Change-Id: I33058fb4af2fb3b10714b14d8591f5f6b81e57d1
* libmedia: fix for underrun and gapless issue.Preetam Singh Ranawat2015-10-062-0/+5
| | | | | | | | | | | -change offload shared buffer size to avoid failure to restart on an underrun. (Merged changeid I4dd9e5e5a7c8aebb34b13f2e6626b73adc2ba557) -fix for gap seen during gapless playback due to big buffer size. (Merged changeid If5234059aa4629e9eb02e236a43214de9ef2204b) Change-Id: I1ad25d3789aced6b804aa695485341bfa4e97eae
* NuPlayer: Add support for getFormatMeta for HLSPreetam Singh Ranawat2015-10-062-0/+16
| | | | | | | | | | | HTTPLiveSource does not support getFormatMeta API. Because of this, offloading is not possible as offloading requires access to format info. Fix this by implementing getFormatMeta API for HLS use cases. CRs-Fixed: 780001 Change-Id: Ia5121892efe4c7ee534f7220c6f33ff9100f0402
* AudioSink: Fix for gapless offload playbackPreetam Singh Ranawat2015-10-061-2/+2
| | | | | | | | | | | | | | | Gapless mode is not working for offload playback due to mismatch in flags of current track and next track to be played. AUDIO_OUTPUT_FLAG_DIRECT is added in AudioTrack flags for current track which does not match exactly with requested flags for next track. Because of this mismatch, reuse of the AudioTrack is not allowed. To fix this, update audio sink flags with requested flags and use track flags only to setPlaybackRate if AUDIO_OUTPUT_FLAG_DIRECT flag is not set Change-Id: I52761ccd854b66a7bc218e83c9b44598771c46f7
* NuPlayer: Fix for audio mute after call terminationPreetam Singh Ranawat2015-10-061-2/+4
| | | | | | | | | | | | | - Audio is muted while resuming music after call termination - Offload track is tear down by audio flinger/policy manager during call & TEAR_DOWN event is propgated to audio track. Audio track returned error on resume of playback since track is already closed - Add error handling in nuplayer during resume & force recreation of audio track from NuPlayerRenderer if resume fails CRs-fixed: 759500 Change-Id: Ic84e692511b085e75a96ae711e5b1585fce47758
* RTSP: add RTSP extensions for customization supportLi Sun2015-10-067-6/+67
| | | | | | | | Add extensions for customization support in rtsp stack. Provide default implementations in AVMediaServiceUtils. Change-Id: I67adeb54b35d1f01911625bb9bad27e94ad0caf0
* audio: Support for compress offload recoveryPreetam Singh Ranawat2015-10-061-7/+15
| | | | | | | | | | | | - Add support for time stamp calculation on time stamp query failure during SSR for playback session - Make sure the timestamp query is made does not acquire the same lock. I2ea8eacb1269895f3254da356ed0eab3bc1c2b9b,n,z CRs-Fixed: 683288 Change-Id: I08a5ea333732b76bb9df110d905daae074b7864b
* libstagefright: Update extractor for specific formatsApurupa Pattapu2015-10-063-4/+14
| | | | | | | | | - New API updateExtractor is used to either keep default extractor or use extended extractor based on media track's mime types. CRs-Fixed: 884793 Change-Id: I63dcc4b2d3901dbc3287eb43a1f4ce2767897258
* audio: add support for 5.1 channel recordingMingming Yin2015-10-063-2/+3
| | | | | | - Add support for 5.1 channel recording Change-Id: If060fffb2e198f516f40e85390489de2108be5d1
* audio: add support for wma-pro wma-lossless decodingSathishKumar Mani2015-10-063-3/+3
| | | | | | | added support for wma-pro and wma-lossless audio decoding Change-Id: I73ae2c2ccabafebc49d4b2e074da23cb4e51a3ce
* Audio: post error to client during SSRDhanalakshmi Siddani2015-10-062-5/+14
| | | | | | | - Add support to post error to client if SSR is triggered during NT mode encoding Change-Id: Idf10939f1eb0c719a692e4f53f6e3040633fab40
* libstagefright: Increase raw decoder buffer size to 192 kPreetam Singh Ranawat2015-10-061-2/+2
| | | | | | | | - Currently raw decoder's buffer size is 64K which causes assertion failure for media files having higher frame size Change-Id: I33258213726d9ed5f730c877ab464868cc951652 CRs-Fixed: 761465
* audiopolicy: fix to play 6.1 channel ALAC clipsSharad Sangle2015-10-061-0/+4
| | | | | | | | | | | For 6.1 channel ALAC clips, the compress offload profile is not found even though the channel mask is defined in the audio_policy.conf file. This is because the channel mask enum is not defined and hence the profile's channel masks are not getting enumerated properly. This change is needed for 6.1 channel ALAC clips playback. Change-Id: I6b820776c0dc6e68a402886f0931439edab24a8b
* video: Add key to indicate thumbnail modeSurajit Podder2015-10-061-0/+2
| | | | | | | Add key "thumbnail-mode" in metadata to signal thumbnail decoding. Change-Id: I9d78f026989c48f62c403cbb88dc24c5f74771a4
* audio: add parameters for device shutdown notificationDhanalakshmi Siddani2015-10-062-0/+2
| | | | | | - Add new define and variable to receive device shutdown notification Change-Id: I06d7a8a36a5bf5490818561ec3bb9c5d43c5bf37
* audio: add support for vorbis offloadingWeiyin Jiang2015-10-067-14/+29
| | | | | | add support for vorbis offload playback Change-Id: Ic51a9d3e0fad1114908f59bfbc6ce62c6fd9fdea
* frameworks/av: Changes related to DASHManikanta Sivapala2015-10-065-8/+20
| | | | | | | | | 1) Add MEDIA_QOE event type 2) Open certain methods for extension by declaring them as virtual 3) Add DASH_PLAYER as a new player type 4) Creating DASH Player factory Change-Id: I0376841530218703fabd9d4f45d2c9a32a1f52b2
* libeffects: validate channel mask in downmixer configureDhananjay Kumar2015-10-061-3/+6
| | | | | | | | | | Validate channel mask in downmixer configure, this returns early warning to calling module which can fallback to another downmixing module or return error instead of playing improper data. CRs-Fixed: 862105 Change-Id: Ic19c4913608468d5c5197f65bb5d6a640c9d2d74
* AVCustomizations: include audio header files explicitlyDeva Ramasubramanian2015-10-061-0/+2
| | | | | | | Fixes compilation errors due to audio_format_t and AudioTrack not being found. Change-Id: Ib30f94c2b4540a3dbfd2388f43f5d229be047ec7
* stagefright: Fix to play a specific Mp4 clip due to SYNCH_LOST_ERROR.Mingming Yin2015-10-061-5/+8
| | | | | | | | - Unable to play a Specific Mp4 clip. - Mp3 playback is stopped if the Decoder errors out with SYNCH_LOST_ERROR. - Ignore the frame with SYNCH_LOST_ERROR and play silence instead. Change-Id: I6b94a83cf89e8bc6792d8ee3804042d629aa505b
* Stagefright: Extensions for HTTP progressive streaming.Apurupa Pattapu2015-10-0612-21/+56
| | | | | | | | | - Extend NuPlayer setDataSource for streaming - Create ExtendedCachedSource only for MediaPlayer streaming usecases by passing a flag to DataSource to use extended cache - Add extension for MediaHTTP Change-Id: Ic87c3744bf905eb8742863951b809e38d0a60339
* audio: add support for APE decoding.Sharad Sangle2015-10-065-0/+16
| | | | | | add support for APE decoding Change-Id: I55e8f4b3b87f4bdf1c99774d702506eb7c2f05b5
* audio: add support for ALAC decoding.Sharad Sangle2015-10-063-0/+9
| | | | | | | add support for decoding/offloading ALAC audio formats Change-Id: Id66f0cb6c140113741962e119148bf434de3d064