Skip to content
Commit c52b5e53 authored by Dean Wheatley's avatar Dean Wheatley
Browse files

TvInputHardwareManager: always try patch recreate if null

TvInputHardwareImpl constructor registers for an audio port update
listener which can be triggered causing updateAudioConfigLocked() and for
mAudioSource and mAudioSink to be initialized but with mActiveConfig
null. On subsequent setSurface(), mActiveConfig is set and
updateAudioConfigLocked() called, however sink and source may not be
updated. Under such conditions, the audio patch may never be created.
Add a mAudioPatch null check for determining whether the audio patch
should be created.

Test: atest CtsTvTestCases:BundledTvInputServiceTest#testTune
      on yukawa TV build with 1) mock tv input hal, 2) mock hdmi tv
      input service and 3) mock primary HAL hdmi in support
Change-Id: Ic92d926759d4a87eda4851630bee946af66f6984
parent 3a786128
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment