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
Loading
Please register or sign in to comment