Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed: consider "spdif" ALSA devices as S/PDIF

"spdif" ALSA device is an alias for "iec958", though reportedly it may
be exposed via ALSA hints on some systems.

Consider it as S/PDIF as suggested by elupus.
  • Loading branch information...
commit 7d928acc04c207761147c23dc91f7c2e417be894 1 parent 139b521
@anssih anssih authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp
View
2  xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp
@@ -832,7 +832,7 @@ AEDeviceType CAESinkALSA::AEDeviceTypeFromName(const std::string &name)
{
if (name.substr(0, 4) == "hdmi")
return AE_DEVTYPE_HDMI;
- else if (name.substr(0, 6) == "iec958")
+ else if (name.substr(0, 6) == "iec958" || name.substr(0, 5) == "spdif")
return AE_DEVTYPE_IEC958;
return AE_DEVTYPE_PCM;
Please sign in to comment.
Something went wrong with that request. Please try again.