32 #include <sys/types.h>
42 #include "dsclientlogger.h"
45 #include "safec_lib.h"
49 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
51 printf(
"<<<<< AOP is initialized in Multi-App Mode >>>>>>>>\r\n");
54 (
char *)IARM_BUS_DSMGR_API_dsAudioPortInit,
58 if (IARM_RESULT_SUCCESS == rpcRet)
69 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
80 (
char *)IARM_BUS_DSMGR_API_dsGetAudioPort,
85 if (IARM_RESULT_SUCCESS == rpcRet)
87 *handle = param.handle;
100 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
103 param.handle = handle;
107 (
char *)IARM_BUS_DSMGR_API_dsGetEncoding,
111 if (IARM_RESULT_SUCCESS == rpcRet)
113 *encoding = param.encoding;
127 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
129 param.handle = handle;
130 param.audioFormat = dsAUDIO_FORMAT_NONE;
133 (
char *)IARM_BUS_DSMGR_API_dsGetAudioFormat,
137 if (IARM_RESULT_SUCCESS == rpcRet)
139 *audioFormat = param.audioFormat;
153 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
155 param.handle = handle;
157 param.toPersist = isPersist;
160 (
char *)IARM_BUS_DSMGR_API_dsGetStereoMode,
164 if (IARM_RESULT_SUCCESS == rpcRet)
166 *stereoMode = param.mode;
178 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
180 param.handle = handle;
184 (
char *)IARM_BUS_DSMGR_API_dsGetStereoAuto,
188 if (IARM_RESULT_SUCCESS == rpcRet)
190 *autoMode = param.autoMode;
203 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
205 param.handle = handle;
209 (
char *)IARM_BUS_DSMGR_API_dsGetAudioGain,
213 if (IARM_RESULT_SUCCESS == rpcRet)
235 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
237 param.handle = handle;
241 (
char *)IARM_BUS_DSMGR_API_dsGetAudioLevel,
245 if (IARM_RESULT_SUCCESS == rpcRet)
247 *level = param.level;
287 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
289 param.handle = handle;
292 (
char *)IARM_BUS_DSMGR_API_dsIsAudioMute,
295 if (IARM_RESULT_SUCCESS == rpcRet)
306 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
308 param.handle = handle;
309 param.enabled =
false;
312 (
char *)IARM_BUS_DSMGR_API_dsIsAudioPortEnabled,
316 if (IARM_RESULT_SUCCESS == rpcRet)
318 *enabled = param.enabled;
330 param.handle = handle;
331 param.enabled = enabled;
332 memset(param.portName,
'\0',
sizeof(param.portName));
334 rc = strcpy_s (param.portName,
sizeof(param.portName), portName);
339 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
342 (
char *)IARM_BUS_DSMGR_API_dsEnableAudioPort,
346 if (IARM_RESULT_SUCCESS == rpcRet)
354 dsError_t dsGetEnablePersist(intptr_t handle,
const char* portName,
bool *enabled)
357 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
359 param.handle = handle;
361 param.enabled =
true;
362 memset(param.portName,
'\0',
sizeof(param.portName));
364 rc = strcpy_s (param.portName,
sizeof(param.portName), portName);
370 (
char *)IARM_BUS_DSMGR_API_dsGetEnablePersist,
373 if (IARM_RESULT_SUCCESS == rpcRet)
375 *enabled = param.enabled;
378 printf (
"dsGetEnablePersist cli portName:%s rpcRet:%d param.enabled:%d enabled:%d\n",
379 portName, rpcRet, param.enabled, *enabled);
384 dsError_t dsSetEnablePersist(intptr_t handle,
const char* portName,
bool enabled)
389 param.handle = handle;
390 param.enabled = enabled;
391 memset(param.portName,
'\0',
sizeof(param.portName));
393 rc = strcpy_s (param.portName,
sizeof(param.portName), portName);
398 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
401 (
char *)IARM_BUS_DSMGR_API_dsSetEnablePersist,
405 if (IARM_RESULT_SUCCESS == rpcRet)
429 param.handle = handle;
432 param.toPersist = isPersist;
435 (
char *)IARM_BUS_DSMGR_API_dsSetStereoMode,
453 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
455 param.handle = handle;
456 param.autoMode = autoMode;
457 param.toPersist = isPersist;
461 (
char *)IARM_BUS_DSMGR_API_dsSetStereoAuto,
466 if (IARM_RESULT_SUCCESS == rpcRet)
480 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
482 param.handle = handle;
486 (
char *)IARM_BUS_DSMGR_API_dsSetAudioGain,
490 if (IARM_RESULT_SUCCESS == rpcRet)
513 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
515 param.handle = handle;
519 (
char *)IARM_BUS_DSMGR_API_dsSetAudioLevel,
523 if (IARM_RESULT_SUCCESS == rpcRet)
537 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
539 param.handle = handle;
540 param.action = action;
546 (
char *)IARM_BUS_DSMGR_API_dsSetAudioDucking,
550 if (IARM_RESULT_SUCCESS == rpcRet)
571 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
573 param.handle = handle;
579 (
char *)IARM_BUS_DSMGR_API_dsSetAudioMute,
583 if (IARM_RESULT_SUCCESS == rpcRet)
594 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
597 (
char *)IARM_BUS_DSMGR_API_dsAudioPortTerm,
601 if (IARM_RESULT_SUCCESS == rpcRet)
611 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
613 param.handle = handle;
614 param.ms11Enabled =
false;
617 (
char *)IARM_BUS_DSMGR_API_dsIsAudioMSDecode,
621 if (IARM_RESULT_SUCCESS == rpcRet)
623 *HasMS11Decode = param.ms11Enabled;
633 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
634 param.handle = handle;
635 param.ms12Enabled =
false;
638 (
char *)IARM_BUS_DSMGR_API_dsIsAudioMS12Decode,
642 if (IARM_RESULT_SUCCESS == rpcRet)
644 *HasMS12Decode = param.ms12Enabled;
656 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
658 param.handle = handle;
659 param.feature = feature;
660 param.enable = enable;
664 (
char *)IARM_BUS_DSMGR_API_dsEnableMS12Config,
668 if (IARM_RESULT_SUCCESS != rpcRet)
678 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
680 param.handle = handle;
681 param.audioDelayMs = audioDelayMs;
684 (
char *)IARM_BUS_DSMGR_API_dsSetAudioDelay,
688 if (IARM_RESULT_SUCCESS != rpcRet)
699 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
701 param.handle = handle;
702 param.audioDelayOffsetMs = audioDelayOffsetMs;
705 (
char *)IARM_BUS_DSMGR_API_dsSetAudioDelayOffset,
709 if (IARM_RESULT_SUCCESS != rpcRet)
721 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
723 param.handle = handle;
724 param.enhancerLevel = level;
727 (
char *)IARM_BUS_DSMGR_API_dsSetDialogEnhancement,
730 if (IARM_RESULT_SUCCESS != rpcRet)
739 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
741 param.handle = handle;
742 param.compression = compression;
745 (
char *)IARM_BUS_DSMGR_API_dsSetAudioCompression,
748 if (IARM_RESULT_SUCCESS != rpcRet)
757 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
759 param.handle = handle;
763 (
char *)IARM_BUS_DSMGR_API_dsSetDolbyVolumeMode,
766 if (IARM_RESULT_SUCCESS != rpcRet)
775 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
777 param.handle = handle;
781 (
char *)IARM_BUS_DSMGR_API_dsSetIntelligentEqualizerMode,
785 if (IARM_RESULT_SUCCESS != rpcRet)
794 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
797 param.handle = handle;
798 param.compression = 0;
801 (
char *)IARM_BUS_DSMGR_API_dsGetAudioCompression,
805 if (IARM_RESULT_SUCCESS != rpcRet)
807 printf(
"%s: AudioCompression (GET) GENERAL ERROR\n", __FUNCTION__);
811 *compression = param.compression;
817 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
820 param.handle = handle;
821 param.enhancerLevel = 0;
824 (
char *)IARM_BUS_DSMGR_API_dsGetDialogEnhancement,
828 if (IARM_RESULT_SUCCESS != rpcRet)
830 printf(
"%s: DialogEnhancement (GET) GENERAL ERROR\n", __FUNCTION__);
834 *level = param.enhancerLevel;
840 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
843 param.handle = handle;
844 param.enable =
false;
847 (
char *)IARM_BUS_DSMGR_API_dsGetDolbyVolumeMode,
851 if (IARM_RESULT_SUCCESS != rpcRet)
853 printf(
"%s: IntelligentEqualizerMode (GET) GENERAL ERROR\n", __FUNCTION__);
857 *mode = param.enable;
863 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
866 param.handle = handle;
870 (
char *)IARM_BUS_DSMGR_API_dsGetIntelligentEqualizerMode,
874 if (IARM_RESULT_SUCCESS != rpcRet)
876 printf(
"%s: IntelligentEqualizerMode (GET) GENERAL ERROR\n", __FUNCTION__);
886 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
889 param.handle = handle;
890 param.volLeveller.mode = 0;
891 param.volLeveller.level = 0;
894 (
char *)IARM_BUS_DSMGR_API_dsGetVolumeLeveller,
898 if (IARM_RESULT_SUCCESS != rpcRet)
900 printf(
"%s: (GET) GENERAL ERROR\n", __FUNCTION__);
904 volLeveller->mode = param.volLeveller.mode;
905 volLeveller->level = param.volLeveller.level;
911 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
913 param.handle = handle;
914 param.volLeveller.mode = volLeveller.mode;
915 param.volLeveller.level = volLeveller.level;
918 (
char *)IARM_BUS_DSMGR_API_dsSetVolumeLeveller,
921 if (IARM_RESULT_SUCCESS != rpcRet)
930 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
933 param.handle = handle;
937 (
char *)IARM_BUS_DSMGR_API_dsGetBassEnhancer,
941 if (IARM_RESULT_SUCCESS != rpcRet)
943 printf(
"%s: (GET) GENERAL ERROR\n", __FUNCTION__);
947 *boost = param.boost;
953 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
955 param.handle = handle;
959 (
char *)IARM_BUS_DSMGR_API_dsSetBassEnhancer,
962 if (IARM_RESULT_SUCCESS != rpcRet)
971 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
974 param.handle = handle;
975 param.enable =
false;
978 (
char *)IARM_BUS_DSMGR_API_dsIsSurroundDecoderEnabled,
982 if (IARM_RESULT_SUCCESS != rpcRet)
984 printf(
"%s: (GET) GENERAL ERROR\n", __FUNCTION__);
988 *enabled = param.enable;
994 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
996 param.handle = handle;
997 param.enable = enabled;
1000 (
char *)IARM_BUS_DSMGR_API_dsEnableSurroundDecoder,
1003 if (IARM_RESULT_SUCCESS != rpcRet)
1012 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1015 param.handle = handle;
1019 (
char *)IARM_BUS_DSMGR_API_dsGetDRCMode,
1023 if (IARM_RESULT_SUCCESS != rpcRet)
1025 printf(
"%s: (GET) GENERAL ERROR\n", __FUNCTION__);
1035 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1037 param.handle = handle;
1041 (
char *)IARM_BUS_DSMGR_API_dsSetDRCMode,
1044 if (IARM_RESULT_SUCCESS != rpcRet)
1053 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1056 param.handle = handle;
1057 param.virtualizer.mode = 0;
1058 param.virtualizer.boost = 0;
1061 (
char *)IARM_BUS_DSMGR_API_dsGetSurroundVirtualizer,
1065 if (IARM_RESULT_SUCCESS != rpcRet)
1067 printf(
"%s: (GET) GENERAL ERROR\n", __FUNCTION__);
1071 virtualizer->mode = param.virtualizer.mode;
1072 virtualizer->boost = param.virtualizer.boost;
1078 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1080 param.handle = handle;
1081 param.virtualizer.mode = virtualizer.mode;
1082 param.virtualizer.boost = virtualizer.boost;
1085 (
char *)IARM_BUS_DSMGR_API_dsSetSurroundVirtualizer,
1088 if (IARM_RESULT_SUCCESS != rpcRet)
1097 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1100 param.handle = handle;
1101 param.enable =
false;
1104 (
char *)IARM_BUS_DSMGR_API_dsGetMISteering,
1108 if (IARM_RESULT_SUCCESS != rpcRet)
1110 printf(
"%s: (GET) GENERAL ERROR\n", __FUNCTION__);
1114 *enabled = param.enable;
1120 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1122 param.handle = handle;
1123 param.enable = enabled;
1126 (
char *)IARM_BUS_DSMGR_API_dsSetMISteering,
1129 if (IARM_RESULT_SUCCESS != rpcRet)
1138 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1141 param.handle = handle;
1145 (
char *)IARM_BUS_DSMGR_API_dsGetGraphicEqualizerMode,
1149 if (IARM_RESULT_SUCCESS != rpcRet)
1151 printf(
"%s: GraphicEqualizerMode (GET) GENERAL ERROR\n", __FUNCTION__);
1161 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1163 param.handle = handle;
1167 (
char *)IARM_BUS_DSMGR_API_dsSetGraphicEqualizerMode,
1171 if (IARM_RESULT_SUCCESS != rpcRet)
1180 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1183 param.handle = handle;
1186 (
char *)IARM_BUS_DSMGR_API_dsGetMS12AudioProfileList,
1190 if (IARM_RESULT_SUCCESS != rpcRet)
1192 printf(
"%s: (GET) GENERAL ERROR\n", __FUNCTION__);
1196 profiles->audioProfileCount = param.profileList.audioProfileCount;
1203 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1206 param.handle = handle;
1209 (
char *)IARM_BUS_DSMGR_API_dsGetMS12AudioProfile,
1213 if (IARM_RESULT_SUCCESS != rpcRet)
1215 printf(
"%s: (GET) GENERAL ERROR\n", __FUNCTION__);
1220 strncpy(profile, param.profile, MAX_PROFILE_STRING_LEN);
1226 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1228 param.handle = handle;
1230 memset( param.profile, 0,
sizeof(param.profile) );
1232 rc = strcpy_s (param.profile,
sizeof(param.profile), profile );
1238 (
char *)IARM_BUS_DSMGR_API_dsSetMS12AudioProfile,
1241 if (IARM_RESULT_SUCCESS != rpcRet)
1250 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1252 param.handle = handle;
1253 param.mixing = mixing;
1256 (
char *)IARM_BUS_DSMGR_API_dsSetAssociatedAudioMixing,
1259 if (IARM_RESULT_SUCCESS != rpcRet)
1269 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1272 param.handle = handle;
1273 param.mixing =
false;
1275 if(mixing == NULL) {
1276 printf(
"%s: (GET) Invalid Param error\n", __FUNCTION__);
1280 (
char *)IARM_BUS_DSMGR_API_dsGetAssociatedAudioMixing,
1284 if (IARM_RESULT_SUCCESS != rpcRet)
1286 printf(
"%s: (GET) GENERAL ERROR\n", __FUNCTION__);
1290 *mixing = param.mixing;
1296 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1298 param.handle = handle;
1299 param.mixerbalance = mixerbalance;
1302 (
char *)IARM_BUS_DSMGR_API_dsSetFaderControl,
1306 if (IARM_RESULT_SUCCESS != rpcRet)
1316 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1319 param.handle = handle;
1320 param.mixerbalance = 0;
1322 if(mixerbalance == NULL) {
1323 printf(
"%s: (GET) Invalid Param error\n", __FUNCTION__);
1328 (
char *)IARM_BUS_DSMGR_API_dsGetFaderControl,
1332 if (IARM_RESULT_SUCCESS != rpcRet)
1334 printf(
"%s: mixerbalance (GET) GENERAL ERROR\n", __FUNCTION__);
1338 *mixerbalance = param.mixerbalance;
1344 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1346 param.handle = handle;
1349 printf(
"%s: (SET) Invalid Param error\n", __FUNCTION__);
1353 memset(param.primaryLanguage,
'\0',
sizeof(param.primaryLanguage));
1355 rc = strcpy_s (param.primaryLanguage,
sizeof(param.primaryLanguage), pLang);
1361 (
char *)IARM_BUS_DSMGR_API_dsSetPrimaryLanguage,
1364 if (IARM_RESULT_SUCCESS != rpcRet)
1373 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1376 param.handle = handle;
1379 printf(
"%s: (GET) Invalid Param error\n", __FUNCTION__);
1384 (
char *)IARM_BUS_DSMGR_API_dsGetPrimaryLanguage,
1388 if (IARM_RESULT_SUCCESS != rpcRet)
1390 printf(
"%s: (GET) GENERAL ERROR\n", __FUNCTION__);
1395 strcpy_s(pLang,
sizeof(param.primaryLanguage), param.primaryLanguage);
1401 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1403 param.handle = handle;
1406 printf(
"%s: (SET) Invalid Param error\n", __FUNCTION__);
1410 memset(param.secondaryLanguage,
'\0',
sizeof(param.secondaryLanguage));
1412 rc = strcpy_s (param.secondaryLanguage,
sizeof(param.secondaryLanguage), sLang);
1418 (
char *)IARM_BUS_DSMGR_API_dsSetSecondaryLanguage,
1421 if (IARM_RESULT_SUCCESS != rpcRet)
1430 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1433 param.handle = handle;
1436 printf(
"%s: (GET) Invalid Param error\n", __FUNCTION__);
1441 (
char *)IARM_BUS_DSMGR_API_dsGetSecondaryLanguage,
1445 if (IARM_RESULT_SUCCESS != rpcRet)
1447 printf(
"%s: (GET) GENERAL ERROR\n", __FUNCTION__);
1452 strcpy_s(sLang,
sizeof(param.secondaryLanguage), param.secondaryLanguage);
1457 const char* profileSettingsName,
const char* profileSettingValue)
1459 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1461 param.handle = handle;
1463 memset( param.profileState, 0,
sizeof(param.profileState) );
1465 rc = strcpy_s (param.profileState,
sizeof(param.profileState), profileState );
1471 memset( param.profileName, 0,
sizeof(param.profileName) );
1472 rc = strcpy_s (param.profileName,
sizeof(param.profileName), profileName );
1478 memset( param.profileSettingsName, 0,
sizeof(param.profileSettingsName) );
1479 rc = strcpy_s (param.profileSettingsName,
sizeof(param.profileSettingsName), profileSettingsName );
1485 memset( param.profileSettingValue, 0,
sizeof(param.profileSettingValue) );
1486 rc = strcpy_s (param.profileSettingValue,
sizeof(param.profileSettingValue),profileSettingValue);
1493 (
char *)IARM_BUS_DSMGR_API_dsSetMS12SetttingsOverride,
1496 if (IARM_RESULT_SUCCESS != rpcRet)
1506 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1509 param.handle = handle;
1510 param.types = dsAUDIOARCSUPPORT_NONE;
1513 (
char *)IARM_BUS_DSMGR_API_dsGetSupportedARCTypes,
1517 if (IARM_RESULT_SUCCESS != rpcRet)
1519 printf(
"%s: (GET) GENERAL ERROR\n", __FUNCTION__);
1523 *types = param.types;
1529 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1531 param.handle = handle;
1532 param.list.count = sad_list.count;
1534 for(
int i=0;i<sad_list.count;i++) {
1535 param.list.sad[i] = sad_list.sad[i];
1539 (
char *)IARM_BUS_DSMGR_API_dsAudioSetSAD,
1543 if (IARM_RESULT_SUCCESS != rpcRet)
1545 printf(
"%s: (SET) GENERAL ERROR\n", __FUNCTION__);
1554 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1556 param.handle = handle;
1557 param.arcStatus.type = arcStatus.type;
1558 param.arcStatus.status = arcStatus.status;
1561 (
char *)IARM_BUS_DSMGR_API_dsAudioEnableARC,
1564 if (IARM_RESULT_SUCCESS != rpcRet)
1566 printf(
"%s: (SET) GENERAL ERROR\n", __FUNCTION__);
1574 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1577 param.handle = handle;
1578 param.audioDelayMs = 0;
1581 (
char *)IARM_BUS_DSMGR_API_dsGetAudioDelay,
1585 if (IARM_RESULT_SUCCESS != rpcRet)
1587 INT_ERROR(
"%s: AUDIODELAY CLIENT (GET) GENERAL ERROR\n", __FUNCTION__);
1591 *audioDelayMs = param.audioDelayMs;
1597 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1600 param.handle = handle;
1601 param.audioDelayOffsetMs = 0;
1604 (
char *)IARM_BUS_DSMGR_API_dsGetAudioDelayOffset,
1608 if (IARM_RESULT_SUCCESS != rpcRet)
1610 printf(
"%s: AUDIODELAY CLIENT (GET) GENERAL ERROR\n", __FUNCTION__);
1614 *audioDelayOffsetMs = param.audioDelayOffsetMs;
1621 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1624 param.handle = handle;
1625 param.enable = enable;
1628 (
char *)IARM_BUS_DSMGR_API_dsSetAudioAtmosOutputMode,
1632 if (IARM_RESULT_SUCCESS != rpcRet)
1634 printf(
"%s: AUDIODELAY CLIENT (GET) GENERAL ERROR\n", __FUNCTION__);
1642 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1645 param.handle = handle;
1649 (
char *)IARM_BUS_DSMGR_API_dsGetSinkDeviceAtmosCapability,
1653 if (IARM_RESULT_SUCCESS != rpcRet)
1655 printf(
"%s: AUDIODELAY CLIENT (GET) GENERAL ERROR\n", __FUNCTION__);
1659 *capability = param.capability;
1666 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1668 param.handle = handle;
1669 param.enable = enable;
1673 (
char *)IARM_BUS_DSMGR_API_dsEnableLEConfig,
1677 if (IARM_RESULT_SUCCESS != rpcRet)
1688 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1690 param.handle = handle;
1691 param.enable =
false;
1695 (
char *)IARM_BUS_DSMGR_API_dsGetLEConfig,
1699 if (IARM_RESULT_SUCCESS != rpcRet)
1704 *enable = param.enable;
1713 param.handle = handle;
1716 (
char *) IARM_BUS_DSMGR_API_dsGetAudioCapabilities,
1720 if (IARM_RESULT_SUCCESS == rpcRet)
1722 *capabilities = param.capabilities;
1723 return param.result;
1734 param.handle = handle;
1737 (
char *) IARM_BUS_DSMGR_API_dsGetMS12Capabilities,
1741 if (IARM_RESULT_SUCCESS == rpcRet)
1743 *capabilities = param.capabilities;
1744 return param.result;
1750 dsError_t dsAudioOutIsConnected(intptr_t handle,
bool* pisCon)
1753 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1755 param.handle = handle;
1758 (
char *) IARM_BUS_DSMGR_API_dsAudioOutIsConnected,
1761 if (IARM_RESULT_SUCCESS == rpcRet)
1763 *pisCon = param.isCon;
1771 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1773 (
char *) IARM_BUS_DSMGR_API_dsResetDialogEnhancement,
1776 if (IARM_RESULT_SUCCESS == rpcRet)
1787 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1789 (
char *) IARM_BUS_DSMGR_API_dsResetBassEnhancer,
1792 if (IARM_RESULT_SUCCESS == rpcRet)
1802 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1804 (
char *) IARM_BUS_DSMGR_API_dsResetSurroundVirtualizer,
1807 if (IARM_RESULT_SUCCESS == rpcRet)
1817 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1819 (
char *) IARM_BUS_DSMGR_API_dsResetVolumeLeveller,
1822 if (IARM_RESULT_SUCCESS == rpcRet)
1833 IARM_Result_t rpcRet = IARM_RESULT_SUCCESS;
1837 (
char *)IARM_BUS_DSMGR_API_dsGetHDMIARCPortId,
1840 if (IARM_RESULT_SUCCESS == rpcRet)
1842 *portId = param.portId;