Exemple #1
0
bool aml_present()
{
  static int has_aml = -1;
  if (has_aml == -1)
  {
    if (aml_get_sysfs_int("/sys/class/audiodsp/digital_raw") != -1)
      has_aml = 1;
    else
      has_aml = 0;
  }
  return has_aml;
}
Exemple #2
0
bool aml_hw3d_present()
{
  static int has_hw3d = -1;
  if (has_hw3d == -1)
  {
    if (aml_get_sysfs_int("/sys/class/ppmgr/ppmgr_3d_mode") != -1)
      has_hw3d = 1;
    else
      has_hw3d = 0;
  }
  return has_hw3d == 1;
}
Exemple #3
0
bool aml_present()
{
  static int has_aml = -1;
  if (has_aml == -1)
  {
    int rtn = aml_get_sysfs_int("/sys/class/audiodsp/digital_raw");
    if (rtn != -1)
      has_aml = 1;
    else
      has_aml = 0;
    if (has_aml)
      CLog::Log(LOGNOTICE, "aml_present, rtn(%d)", rtn);
  }
  return has_aml == 1;
}