Compare commits
3 commits
1863cb0ea5
...
22008c51e8
Author | SHA1 | Date | |
---|---|---|---|
|
22008c51e8 | ||
|
c5c8a4a993 | ||
|
b780158cc9 |
3 changed files with 7 additions and 2 deletions
|
@ -2720,7 +2720,7 @@ PipelineWatcher::Clock::duration CCodecBufferChannel::elapsed() {
|
||||||
size_t outputDelay = mOutput.lock()->outputDelay;
|
size_t outputDelay = mOutput.lock()->outputDelay;
|
||||||
{
|
{
|
||||||
Mutexed<Input>::Locked input(mInput);
|
Mutexed<Input>::Locked input(mInput);
|
||||||
n = input->inputDelay + input->pipelineDelay + outputDelay;
|
n = input->inputDelay + input->pipelineDelay + outputDelay + kSmoothnessFactor;
|
||||||
}
|
}
|
||||||
return mPipelineWatcher.lock()->elapsed(PipelineWatcher::Clock::now(), n);
|
return mPipelineWatcher.lock()->elapsed(PipelineWatcher::Clock::now(), n);
|
||||||
}
|
}
|
||||||
|
|
|
@ -481,6 +481,11 @@ DeviceVector Engine::getDevicesForStrategyInt(legacy_strategy strategy,
|
||||||
AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET);
|
AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((devices2.isEmpty()) && (strategy != STRATEGY_SONIFICATION)) {
|
||||||
|
// no sonification on WFD sink
|
||||||
|
devices2 = availableOutputDevices.getDevicesFromType(AUDIO_DEVICE_OUT_PROXY);
|
||||||
|
}
|
||||||
|
|
||||||
if (devices2.isEmpty()) {
|
if (devices2.isEmpty()) {
|
||||||
devices2 = availableOutputDevices.getFirstDevicesFromTypes({
|
devices2 = availableOutputDevices.getFirstDevicesFromTypes({
|
||||||
AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET, AUDIO_DEVICE_OUT_SPEAKER});
|
AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET, AUDIO_DEVICE_OUT_SPEAKER});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
service vendor.media.omx /vendor/bin/hw/android.hardware.media.omx@1.0-service
|
service vendor.media.omx /vendor/bin/hw/android.hardware.media.omx@1.0-service
|
||||||
class main
|
class main
|
||||||
user mediacodec
|
user mediacodec
|
||||||
group camera drmrpc mediadrm
|
group camera drmrpc mediadrm audio
|
||||||
ioprio rt 4
|
ioprio rt 4
|
||||||
task_profiles ProcessCapacityHigh
|
task_profiles ProcessCapacityHigh
|
||||||
|
|
Loading…
Reference in a new issue