History log of /frameworks/av/services/audioflinger/SpdifStreamOut.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
41ae1d663d896a9ec22299d95c01940313a9b276 04-Aug-2015 Phil Burk <philburk@google.com> AudioFlinger: tell HAL the PCM is non-audio

Add a bit to tell the HAL that the PCM data is really encoded audio
wrapped in a data burst.
Otherwise the device may try to play the encoded data directly
which will sound like modulated white noise.

Bug: 22576112
Change-Id: Ib140da96876e849023858fe2510612310501d1ee
Signed-off-by: Phil Burk <philburk@google.com>
/frameworks/av/services/audioflinger/SpdifStreamOut.cpp
ca5e6143740299c877d69e97f7968cd04476d32c 14-Jul-2015 Phil Burk <philburk@google.com> AudioFlinger: fix repeated underruns for compressed audio

The AudioFlinger kept pausing the audio when playing compressed AC3 or DTS.
This caused pause/resume loops that were hard to break out of.

The AudioFlinger was thinking that the compressed audio was PCM
because the HAL was in PCM mode playing SPDIF data bursts.
It also thought that EAC3 was at 192000 Hz instead of 48000
Hz because the data bursts are played at a higher rate.

This CL adds more calls to the shim that separates the AudioFlinger.
Now the AudioFlinger gets information about the HAL sample rate,
channel masks and format from the shim instead of calling the HAL directly.

The AudioFlinger now uses a different threshold for detecting
underruns when the audio is compressed.

Bug: 19938315
Bug: 20891646
Change-Id: Ib16f539346d1c7a273ea4feb3d3afcc3dc60237d
Signed-off-by: Phil Burk <philburk@google.com>
/frameworks/av/services/audioflinger/SpdifStreamOut.cpp
90eea7631b07117e46ae8b84889a2baa3eee7aea 07-Jul-2015 Phil Burk <philburk@google.com> AudioFlinger: reset frame position on standby

The HAL does not reset the frame position on standby().
But applications expect the frame position to be reset.
So we subtract the position at standby from the current position.

Bug: 21724210
Bug: 21930805
Change-Id: I0c4520ba1c6c06a580f45f6bafc8cf1d56969f07
Signed-off-by: Phil Burk <philburk@google.com>
/frameworks/av/services/audioflinger/SpdifStreamOut.cpp
48e6ea95dc23e1c84911f1f907403ac1729c6b78 19-Jun-2015 Phil Burk <philburk@google.com> AudioFlinger: reset SPDIF encoder on flush

This may prevent corrupt data from reaching the AVR.

Bug: 19604395
Change-Id: I3dbdd002326917b9f14dda46a3e5170e1ec799bb
Signed-off-by: Phil Burk <philburk@google.com>
/frameworks/av/services/audioflinger/SpdifStreamOut.cpp
23d8997f58bb9c59fa3a1b9a6b2edbf1b2b0f4c6 07-Apr-2015 Phil Burk <philburk@google.com> AudioFlinger: more DTS passthrough support

Pass format for AC3 or DTS to SPDIF encoder.

Bug: 18292317
Change-Id: I6d80eb548cb431bac3390ebb3235146171344291
Signed-off-by: Phil Burk <philburk@google.com>
/frameworks/av/services/audioflinger/SpdifStreamOut.cpp
062e67a26e0553dd142be622821f493df541f0c6 11-Feb-2015 Phil Burk <philburk@google.com> AudioFlinger: call SPDIF wrapper from AudioFlinger

Create an interface layer between the AudioFlinger and the HAL
that manages the wrapping and format conversion.

Removed unnecessary includes.
Handle rate conversion in getRenderPosition().
Try to open HAL with encoded format before wrapping with SPDIF.

Bug: 17566660
Change-Id: I00ad888ca15ff0f85b85efb8167c7f5ea761a244
Signed-off-by: Phil Burk <philburk@google.com>
/frameworks/av/services/audioflinger/SpdifStreamOut.cpp