-
Notifications
You must be signed in to change notification settings - Fork 5
RDKEVD-6226: Cello - no-spdif output #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,6 +103,7 @@ List<AudioOutputPortType> AudioOutputPortConfig::getSupportedTypes() | |
| { | ||
| List<AudioOutputPortType> supportedTypes; | ||
| for (std::vector<AudioOutputPortType>::const_iterator it = _aPortTypes.begin(); it != _aPortTypes.end(); it++) { | ||
| printf("\nYESH: supportedTypes _aPortTypes *it %s enabled %d", it->toString().c_str(), it->isEnabled()); | ||
| if (it->isEnabled()) { | ||
| supportedTypes.push_back(*it); | ||
| } | ||
|
|
@@ -114,57 +115,57 @@ List<AudioOutputPortType> AudioOutputPortConfig::getSupportedTypes() | |
| void dumpconfig(audioConfigs_t *config) | ||
| { | ||
| if (nullptr == config) { | ||
| INT_ERROR("Audio config is NULL"); | ||
| printf("\nAudio config is NULL"); | ||
| return; | ||
| } | ||
| if ( -1 == access("/opt/dsMgrDumpDeviceConfigs", F_OK) ) { | ||
| INT_INFO("Dumping of Device configs is disabled"); | ||
| printf("\nDumping of Device configs is disabled"); | ||
| return; | ||
|
Comment on lines
115
to
123
|
||
| } | ||
|
|
||
| int configSize = -1, portSize = -1; | ||
| INT_INFO("\n=============== Starting to Dump Audio Configs ===============\n"); | ||
| printf("\n\n=============== Starting to Dump Audio Configs ===============\n"); | ||
| if( nullptr != config->pKConfigs ) | ||
| { | ||
| configSize = (config->pKConfigSize) ? *(config->pKConfigSize) : -1; | ||
|
|
||
| for (int i = 0; i < configSize; i++) { | ||
| const dsAudioTypeConfig_t *typeCfg = &(config->pKConfigs[i]); | ||
| INT_INFO("typeCfg->typeId = %d", typeCfg->typeId); | ||
| INT_INFO("typeCfg->name = %s", typeCfg->name); | ||
| INT_INFO("typeCfg->numSupportedEncodings = %zu", typeCfg->numSupportedEncodings); | ||
| INT_INFO("typeCfg->numSupportedCompressions = %zu", typeCfg->numSupportedCompressions); | ||
| INT_INFO("typeCfg->numSupportedStereoModes = %zu", typeCfg->numSupportedStereoModes); | ||
| printf("\ntypeCfg->typeId = %d", typeCfg->typeId); | ||
| printf("\ntypeCfg->name = %s", typeCfg->name); | ||
| printf("\ntypeCfg->numSupportedEncodings = %zu", typeCfg->numSupportedEncodings); | ||
| printf("\ntypeCfg->numSupportedCompressions = %zu", typeCfg->numSupportedCompressions); | ||
| printf("\ntypeCfg->numSupportedStereoModes = %zu", typeCfg->numSupportedStereoModes); | ||
| } | ||
|
Comment on lines
126
to
139
|
||
| } | ||
| else | ||
| { | ||
| INT_ERROR("kAudioConfigs is NULL"); | ||
| printf("\nkAudioConfigs is NULL"); | ||
| } | ||
|
|
||
| if( nullptr != config->pKPorts ) | ||
| { | ||
| portSize = (config->pKPortSize) ? *(config->pKPortSize) : -1; | ||
| for (int i = 0; i < portSize; i++) { | ||
| const dsAudioPortConfig_t *portCfg = &(config->pKPorts[i]); | ||
| INT_INFO("portCfg->id.type = %d", portCfg->id.type); | ||
| INT_INFO("portCfg->id.index = %d", portCfg->id.index); | ||
| printf("\nportCfg->id.type = %d", portCfg->id.type); | ||
| printf("\nportCfg->id.index = %d", portCfg->id.index); | ||
| } | ||
| } | ||
| else | ||
| { | ||
| INT_ERROR("kAudioPorts is NULL"); | ||
| printf("\nkAudioPorts is NULL"); | ||
| } | ||
|
|
||
| INT_INFO("\n=============== Dump Audio Configs done ===============\n"); | ||
| printf("\n\n=============== Dump Audio Configs done ===============\n"); | ||
| } | ||
|
|
||
| void AudioOutputPortConfig::load(audioConfigs_t* dynamicAudioConfigs) | ||
| { | ||
| int configSize = -1, portSize = -1; | ||
| audioConfigs_t configuration = {0}; | ||
|
|
||
| INT_INFO("Enter function"); | ||
| printf("\nEnter function"); | ||
| try { | ||
| /* | ||
| * Load Constants First. | ||
|
|
@@ -188,7 +189,7 @@ void AudioOutputPortConfig::load(audioConfigs_t* dynamicAudioConfigs) | |
|
|
||
| } | ||
|
|
||
| INT_INFO("Using '%s' config", dynamicAudioConfigs ? "dynamic" : "static"); | ||
| printf("\nUsing '%s' config", dynamicAudioConfigs ? "dynamic" : "static"); | ||
| if ( nullptr != dynamicAudioConfigs ) | ||
| { | ||
| configuration = *dynamicAudioConfigs; | ||
|
|
@@ -204,7 +205,7 @@ void AudioOutputPortConfig::load(audioConfigs_t* dynamicAudioConfigs) | |
| configuration.pKPortSize = &portSize; | ||
| } | ||
|
|
||
| INT_INFO("Audio Config[%p] ConfigSize[%d] Ports[%p] PortSize[%d]", | ||
| printf("\nAudio Config[%p] ConfigSize[%d] Ports[%p] PortSize[%d]", | ||
| configuration.pKConfigs, | ||
| configSize, | ||
| configuration.pKPorts, | ||
|
|
@@ -250,16 +251,16 @@ void AudioOutputPortConfig::load(audioConfigs_t* dynamicAudioConfigs) | |
| _aPorts.push_back(AudioOutputPort((portCfg->id.type), portCfg->id.index, i)); | ||
| _aPortTypes.at(portCfg->id.type).addPort(_aPorts.at(i)); | ||
| } | ||
| INT_INFO("Audio Configs loaded successfully"); | ||
| printf("\nAudio Configs loaded successfully"); | ||
| } | ||
| else { | ||
| INT_ERROR("Audio Configs loading failed"); | ||
| printf("\nAudio Configs loading failed"); | ||
| } | ||
| } | ||
| catch(const Exception &e) { | ||
| throw e; | ||
| } | ||
| INT_INFO("Exit function"); | ||
| printf("\nExit function"); | ||
| } | ||
|
|
||
| void AudioOutputPortConfig::release() | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -46,10 +46,10 @@ static inline const char* fileName(const char* path) { | |||||
| } | ||||||
|
|
||||||
| #ifndef DS_LOG_LEVEL | ||||||
| #define DS_LOG_LEVEL ERROR_LEVEL | ||||||
| #define DS_LOG_LEVEL DEBUG_LEVEL | ||||||
|
||||||
| #define DS_LOG_LEVEL DEBUG_LEVEL | |
| #define DS_LOG_LEVEL ERROR_LEVEL |
Copilot
AI
Apr 8, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
INT_INFO is redefined to log at DEBUG_LEVEL rather than INFO_LEVEL. This changes the meaning of existing INT_INFO callsites (they’ll appear as DEBUG in log output), making filtering/triage harder. Keep INT_INFO mapped to INFO_LEVEL and use INT_DEBUG for debug-level messages.
| #define INT_INFO(FORMAT, ...) ds_log(DEBUG_LEVEL, fileName(__FILE__), __LINE__, __FUNCTION__, FORMAT, ##__VA_ARGS__ ) | |
| #define INT_INFO(FORMAT, ...) ds_log(INFO_LEVEL, fileName(__FILE__), __LINE__, __FUNCTION__, FORMAT, ##__VA_ARGS__ ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,22 +73,22 @@ bool LoadDLSymbols(void* pDLHandle, const dlSymbolLookup* symbols, int numberOfS | |
| int currentSymbols = 0; | ||
| bool isAllSymbolsLoaded = false; | ||
| if ((nullptr == pDLHandle) || (nullptr == symbols)) { | ||
| INT_ERROR("Invalid DL Handle or symbolsPtr"); | ||
| printf("Invalid DL Handle or symbolsPtr"); | ||
| } | ||
| else { | ||
| INT_INFO("numberOfSymbols = %d",numberOfSymbols); | ||
| printf("numberOfSymbols = %d",numberOfSymbols); | ||
| for (int i = 0; i < numberOfSymbols; i++) { | ||
| if (( nullptr == symbols[i].dataptr) || ( nullptr == symbols[i].name)) { | ||
| INT_ERROR("Invalid symbol entry at index [%d]", i); | ||
| printf("Invalid symbol entry at index [%d]", i); | ||
| continue; | ||
| } | ||
| *(symbols[i].dataptr) = dlsym(pDLHandle, symbols[i].name); | ||
| if (nullptr == *(symbols[i].dataptr)) { | ||
| INT_ERROR("[%s] is not defined", symbols[i].name); | ||
| printf("[%s] is not defined", symbols[i].name); | ||
| } | ||
| else { | ||
| currentSymbols++; | ||
| INT_INFO("[%s] is defined and loaded, data[%p]", symbols[i].name, *(symbols[i].dataptr)); | ||
| printf("[%s] is defined and loaded, data[%p]", symbols[i].name, *(symbols[i].dataptr)); | ||
| } | ||
|
Comment on lines
73
to
92
|
||
| } | ||
| isAllSymbolsLoaded = (numberOfSymbols) ? (currentSymbols == numberOfSymbols) : false; | ||
|
|
@@ -101,7 +101,7 @@ void loadDeviceCapabilities(unsigned int capabilityType) | |
| void* pDLHandle = nullptr; | ||
| bool isSymbolsLoaded = false; | ||
|
|
||
| INT_INFO("Entering capabilityType = 0x%08X", capabilityType); | ||
| printf("Entering capabilityType = 0x%08X", capabilityType); | ||
| dlerror(); // clear old error | ||
| pDLHandle = dlopen(RDK_DSHAL_NAME, RTLD_LAZY); | ||
|
|
||
|
|
@@ -110,10 +110,10 @@ void loadDeviceCapabilities(unsigned int capabilityType) | |
| INT_WARN("Failed to dlopen '%s': %s - Falling back to static configurations", | ||
| RDK_DSHAL_NAME, dlError ? dlError : "Unknown error"); | ||
| } else { | ||
| INT_INFO("Successfully opened dynamic library '%s'", RDK_DSHAL_NAME); | ||
| printf("Successfully opened dynamic library '%s'", RDK_DSHAL_NAME); | ||
| } | ||
|
|
||
| INT_INFO("DL Instance '%s'", (nullptr == pDLHandle ? "NULL" : "Valid")); | ||
| printf("DL Instance '%s'", (nullptr == pDLHandle ? "NULL" : "Valid")); | ||
|
|
||
|
Comment on lines
103
to
117
|
||
| // Audio Port Config | ||
| if (DEVICE_CAPABILITY_AUDIO_PORT & capabilityType) { | ||
|
|
@@ -187,7 +187,7 @@ void loadDeviceCapabilities(unsigned int capabilityType) | |
| dlclose(pDLHandle); | ||
| pDLHandle = nullptr; | ||
| } | ||
| INT_INFO("Exiting ..."); | ||
| printf("Exiting ..."); | ||
| } | ||
|
|
||
| Manager::Manager() { | ||
|
|
@@ -306,16 +306,16 @@ void Manager::Initialize() | |
| throw e; | ||
| } | ||
|
|
||
| INT_INFO("Exiting ... with thread id %lu",pthread_self()); | ||
| printf("Exiting ... with thread id %lu",pthread_self()); | ||
| } | ||
|
|
||
| void Manager::load() | ||
| { | ||
| INT_INFO("Enter function"); | ||
| printf("Enter function"); | ||
| loadDeviceCapabilities( device::DEVICE_CAPABILITY_VIDEO_PORT | | ||
| device::DEVICE_CAPABILITY_AUDIO_PORT | | ||
| device::DEVICE_CAPABILITY_VIDEO_DEVICE); | ||
| INT_INFO("Exit function"); | ||
| printf("Exit function"); | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -340,7 +340,7 @@ void Manager::load() | |
| void Manager::DeInitialize() | ||
| { | ||
| {std::lock_guard<std::mutex> lock(gManagerInitMutex); | ||
| INT_INFO("Entering ... count %d with thread id %lu",IsInitialized,pthread_self()); | ||
| printf("Entering ... count %d with thread id %lu",IsInitialized,pthread_self()); | ||
| if(IsInitialized>0)IsInitialized--; | ||
| if (0 == IsInitialized) { | ||
|
|
||
|
|
@@ -354,7 +354,7 @@ void Manager::DeInitialize() | |
| dsDisplayTerm(); | ||
| } | ||
| } | ||
| INT_INFO("Exiting ... with thread %lu",pthread_self()); | ||
| printf("Exiting ... with thread %lu",pthread_self()); | ||
| } | ||
|
|
||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -330,13 +330,15 @@ void AudioConfigInit() | |||||
| dllib = dlopen(RDK_DSHAL_NAME, RTLD_LAZY); | ||||||
| if (dllib) { | ||||||
| dsSetAudioLevelFunc = (dsSetAudioLevel_t) dlsym(dllib, "dsSetAudioLevel"); | ||||||
| INT_DEBUG("YESH: dsSetAudioLevelFunc %d \r\n", dsSetAudioLevelFunc); | ||||||
|
||||||
| INT_DEBUG("YESH: dsSetAudioLevelFunc %d \r\n", dsSetAudioLevelFunc); | |
| INT_DEBUG("dsSetAudioLevelFunc %p \r\n", (void *)dsSetAudioLevelFunc); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This printf looks like temporary debug instrumentation inside a frequently-called API (getSupportedTypes). It will spam stdout and bypass the component’s log controls. Please remove it or convert to INT_DEBUG (and consider gating behind DS_LOG_LEVEL / a runtime flag).