[AML] Use M1 digital_raw val only on M1
authorTrent Nelson <trent.nelson@pivosgroup.com>
Tue, 15 Jul 2014 09:48:19 +0000 (17:48 +0800)
committerTrent Nelson <trent.nelson@pivosgroup.com>
Fri, 18 Jul 2014 04:16:53 +0000 (12:16 +0800)
xbmc/utils/AMLUtils.cpp

index 342cf97..2983186 100644 (file)
@@ -217,7 +217,7 @@ void aml_set_audio_passthrough(bool passthrough)
   if (aml_present())
   {
     // m1 uses 1, m3 and above uses 2
-    int raw = aml_get_cputype() < AML_DEVICE_TYPE_M3 ? 1:2;
+    int raw = aml_get_cputype() == AML_DEVICE_TYPE_M1 ? 1:2;
     aml_set_sysfs_int("/sys/class/audiodsp/digital_raw", passthrough ? raw:0);
   }
 }