Skip to content

Commit

Permalink
RDKTV-10679: Add auto mode for SPDIF connection [NTS:AUDIO-023-TC2]
Browse files Browse the repository at this point in the history
Reason for change: Adding AUTO mode for SPDIF.
Test Procedure: check ticket
Risks:low
Signed-off-by: Vinod Jacob <[email protected]>
  • Loading branch information
vinod-jacob committed Sep 3, 2021
1 parent 14feff9 commit be5af99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion PlayerInfo/DeviceSettings/PlatformImplementation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ class PlayerInfoImplementation : public Exchange::IPlayerProperties, public Exch
else if(soundmode == device::AudioStereoMode::kPassThru) mode = PASSTHRU;
else mode = UNKNOWN;

if(aPort.getType().getId() == device::AudioOutputPortType::kARC && aPort.getStereoAuto())
/* Auto mode applicable for HDMI Arc and SPDIF */
if((aPort.getType().getId() == device::AudioOutputPortType::kARC || aPort.getType().getId() == device::AudioOutputPortType::kSPDIF)
&& aPort.getStereoAuto())
{
mode = SOUNDMODE_AUTO;
}
Expand Down

0 comments on commit be5af99

Please sign in to comment.