|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
35 #include "audioOutputPortConfig.hpp"
36 #include "videoOutputPortConfig.hpp"
38 #include "illegalArgumentException.hpp"
63 extern dsError_t dsGetEnablePersist(intptr_t handle,
const char* portName,
bool* enabled);
64 extern dsError_t dsSetEnablePersist(intptr_t handle,
const char* portName,
bool enabled);
68 const uint32_t audioDelayMsMax = 300;
69 const uint32_t audioDelayOffsetMsMax = 200;
85 return AudioOutputPortConfig::getInstance().getPort(
id);
99 return AudioOutputPortConfig::getInstance().getPort(name);
119 _type(type), _index(index), _id(id),
122 _gain(0.0), _db(0.0), _maxDb(0.0), _minDb(0.0), _optimalLevel(0.0),
123 _level(0.0), _loopThru(false), _muted(false), _audioDelayMs(0), _audioDelayOffsetMs(0)
129 std::stringstream out;
133 printf (
"\nAudioOutputPort init: _type:%d _index:%d _handle:%d\n",
_type,
_index, _handle);
179 std::stringstream out;
184 printf (
"\nAudioOutputPort init: _type:%d _index:%d _handle:%d\n",
_type,
_index, _handle);
214 return AudioOutputPortConfig::getInstance().getPortType(
_type);
275 std::cout <<
"AudioOutputPort::getStereoMode from " << (usePersist ?
"persistence" :
"effective") << std::endl;
319 void AudioOutputPort::disable()
336 bool AudioOutputPort::getEnablePersist ()
const
341 printf (
"AudioOutputPort::getEnablePersist portName: %s ret:%04x isEnabled: %d\n",
356 void AudioOutputPort::setEnablePersist (
bool isEnabled)
551 bool enabled =
false;
575 return device::VideoOutputPortConfig::getInstance().getPort(
"HDMI0").
isDisplayConnected();
577 else if (dsAUDIOPORT_TYPE_HDMI_ARC ==
_type) {
588 dsAudioOutIsConnected(_handle, &isConn);
589 printf (
"AudioOutputPort::isConnected dsAUDIOPORT_TYPE_HEADPHONE isConn:%d\n", isConn);
619 throw Exception(
"Operation not Supported");
874 int _compression = 0;
894 int _enhancerLevel = 0;
897 return _enhancerLevel;
931 int AudioOutputPort::getIntelligentEqualizerMode()
const
956 _volLeveller.mode = 0;
957 _volLeveller.level = 0;
1039 _virtualizer.mode = 0;
1040 _virtualizer.boost = 0;
1043 return _virtualizer;
1129 std::string profile;
1179 std::vector<std::string> profileList;
1189 token = strtok(apList.audioProfileList,
",");
1190 while(token != NULL) {
1191 profileList.push_back(token);
1192 token = strtok(NULL,
",");
1195 if(profileList.size() != apList.audioProfileCount){
1196 std::cout <<
"Number of profiles in list doesn't match audio profile count from HAL" << std::endl;
1238 bool _mixing =
false;
1240 if(mixing == NULL) {
1288 int _mixerBalance = 0;
1290 if(mixerBalance == NULL) {
1297 *mixerBalance = _mixerBalance;
1342 char _pLang[MAX_LANGUAGE_LEN] = {0};
1345 pLang.assign(_pLang);
1389 char _sLang[MAX_LANGUAGE_LEN] = {0};
1392 sLang.assign(_sLang);
1439 uint32_t ms = audioDelayMs;
1441 INT_INFO(
"AudioOutputPort [%s], setting delay to [%lu] ms\n", _name.c_str(), audioDelayMs);
1443 if (ms > audioDelayMsMax)
1445 INT_ERROR(
"AudioOutputPort [%s], delay [%lu] ms, exceeds max [%lu]. Setting Max \n",
1450 ms = audioDelayMsMax;
1476 uint32_t ms = audioDelayOffsetMs;
1478 if (ms > audioDelayOffsetMsMax)
1480 INT_ERROR(
"AudioOutputPort [%s], delay offset [%lu] ms, exceeds max [%lu]. Setting Max \n",
1481 _name.c_str(), audioDelayOffsetMs, audioDelayOffsetMsMax);
1482 ms = audioDelayOffsetMsMax;
1528 dsATMOSCapability_t capability;
1534 atmosCapability = capability;
1569 list.count = sad_list.size();
1571 for(
int i=0; i<sad_list.size(); i++) {
1572 list.sad[i] = sad_list[i];
1597 arcStatus.type = type;
1598 arcStatus.status =
enable;
1623 printf(
"enableLEConfig failed with ret:%d \n",ret);
1665 printf(
"enableMS12Config failed with ret:%d \n",ret);
1750 if ((newGain < -2080) || (newGain > 480)) {
1861 bool HasMS11Decode =
false;
1867 return HasMS11Decode;
1879 bool AudioOutputPort::isAudioMS12Decode()
const
1881 bool HasMS12Decode =
false;
1887 return HasMS12Decode;
2019 void AudioOutputPort::setMS12AudioProfileSetttingsOverride(
const std::string ProfileState,
const std::string ProfileName,
2020 const std::string ProfileSettingsName,
const std::string ProfileSettingValue)
2026 ProfileSettingsName.c_str(),ProfileSettingValue.c_str())) ==
dsERR_NONE) {
dsError_t dsGetAudioCompression(intptr_t handle, int *compression)
Get the audio compressionof an audio port.
bool isEnabled() const
This API is used to check whether the audio is enabled or not.
void enable()
This API is used to enable the Audio output port.
Structure that defines ARC status for the HDMI ARC/EARC port.
void setGain(const float newGain)
This API is used to set the audio gain to be used in a given audio port.
dsError_t dsGetAudioDB(intptr_t handle, float *db)
Get the current audio dB level of an audio port.
int getDialogEnhancement() const
This API is used to get the current auto mode.
void setMS12AudioProfile(std::string profile)
This API is used to set MS12 Audio Profile.
dsError_t dsIsSurroundDecoderEnabled(intptr_t handle, bool *enabled)
To get the audio Surround Decoder.
float getDB() const
This API will get the current Decibel value for the given Audio port.
void setBassEnhancer(const int boost)
This API is used to adjust the Bass in a given audio port.
void setSurroundVirtualizer(const dsSurroundVirtualizer_t virtualizer)
This API is used to set the surround virtualizer mode and boost value for a given audio port.
void setDRCMode(const int mode)
This API is used to set the Dynamic Range control mode in a given audio port.
static const AudioEncoding & getInstance(int id)
This function gets an AudioEncoding instance against the id parameter, only if the id passed is valid...
void resetSurroundVirtualizer()
This API is used to reset the AudioOutput in a given audio port.
dsError_t dsSetAudioCompression(intptr_t handle, int compression)
Set the audio compression of an audio port.
Structures and classes for HDMI Input are defined here.
std::vector< std::string > getMS12AudioProfileList() const
This API is used to get the supported MS12 Audio profiles.
dsError_t dsSetAssociatedAudioMixing(intptr_t handle, bool mixing)
Enable/Disable Associated Audio Mixing.
void setDialogEnhancement(const int level)
This API is used to set the compression mode in a given audio port.
dsSurroundVirtualizer_t getSurroundVirtualizer() const
This API is used to get the Surround Virtualizer Boost value.
void setSecondaryLanguage(const std::string sLang)
This API is used to set Secondary language.
dsError_t dsSetMISteering(intptr_t handle, bool enabled)
To set the audio Media intelligent Steering.
dsError_t dsGetAudioEncoding(intptr_t handle, dsAudioEncoding_t *encoding)
Get the encoding type of an audio port.
void getSecondaryLanguage(std::string &sLang)
This API is used to get the current AC4 Secondary language.
const List< AudioStereoMode > getSupportedStereoModes() const
This class is implemented using templates and it is used to maintain a container with the list of sup...
const List< AudioCompression > getSupportedCompressions() const
This API is used to get the list of audio compressions supported by the port.
dsError_t dsSetStereoMode(intptr_t handle, dsAudioStereoMode_t mode)
Set the stereo mode of an audio port.
bool getDolbyVolumeMode() const
This API is used to get the current auto mode.
void setAudioAtmosOutputMode(bool enable)
uint32_t _audioDelayMs
Audio delays.
float _gain
Audio gain value.
void getPrimaryLanguage(std::string &pLang)
This API is used to get the current Primary language.
dsError_t dsGetSupportedARCTypes(intptr_t handle, int *types)
Get the supported ARC types of the connected ARC/eARC device.
dsError_t dsEnableAudioPort(intptr_t handle, bool enabled)
This function is used to enable or disable the specified Audio port.
dsError_t dsSetBassEnhancer(intptr_t handle, int boost)
To set the audio Bass.
dsError_t dsGetIntelligentEqualizerMode(intptr_t handle, int *mode)
Get the Intelligent Equalizer Mode.
dsError_t dsResetSurroundVirtualizer(intptr_t handle)
to reset the audio Surround Virtualizer level
float getGain() const
This API will get the current Gain for the given audio output port.
const AudioEncoding & getEncoding() const
This API is used to get the current encoding of the output port.
dsError_t dsGetAudioLevel(intptr_t handle, float *level)
Get the current audio volume level of an audio port.
dsError_t dsSetAudioGain(intptr_t handle, float gain)
Set the audio gain of an audio port.
enum _dsAudioDuckingType_t dsAudioDuckingType_t
enum _dsAudioPortType_t dsAudioPortType_t
dsVolumeLeveller_t getVolumeLeveller() const
This API is used to get the current volume leveller value.
dsError_t dsGetStereoMode(intptr_t handle, dsAudioStereoMode_t *stereoMode)
Get the stereo mode of an audio port.
bool isDisplayConnected() const
This API is used to Check if the port is currently connected to any display device.
static AudioOutputPortType & getInstance(int id)
This function is used to get the instance of the AudioOutputPortType based on the port id,...
float _maxDb
Maximum audio decibel value.
bool GetLEConfig()
This API is used to check if Loudness Equivalence is enabled or not*.
bool isConnected() const
This API is used to check whether the audio output port is connected to a sink device or not.
dsError_t dsSetDialogEnhancement(intptr_t handle, int level)
Get the Dialog Enhancement level of an audio port.
void getMS12Capabilities(int *capabilities)
This API is used to query the MS12 capabilities of the device.
float _optimalLevel
Optimal audio level.
float getOptimalLevel() const
This API is used to get the current optimal level value for audio output port.
const AudioStereoMode & getStereoMode(bool usePersist=false)
This API is used to get the current stereo mode of the output port.
dsError_t dsIsAudioPortEnabled(intptr_t handle, bool *enabled)
This function indicates whether the specified Audio port is enabled or not.
dsError_t dsResetBassEnhancer(intptr_t handle)
to reset the reset the audio Bass
bool _stereoAuto
Audio stereo mode Types.
dsError_t dsGetAudioOptimalLevel(intptr_t handle, float *optimalLevel)
Get the optimal audio level of an audio port.
float getLevel() const
This API is used to get the current audio level for the given audio output port.
float _minDb
Minimum audio decibel value.
virtual ~AudioOutputPort()
This is a default destructor of class AudioOutputPort.
dsError_t dsGetLEConfig(intptr_t handle, bool *enable)
To Get LE configuration.
void resetDialogEnhancement()
This API is used to reset the AudioOutput in a given audio port.
void getAssociatedAudioMixing(bool *mixing)
This API is used to get status of Associated Audio Mixing.
bool isLoopThru() const
This API is used to check whether the given audio port is configured for loop thro'.
bool getMISteering() const
This API is used to get status of Media Intelligent Steering.
void setLevel(const float level)
This API is used to set the audio level to be used in a given audio port.
dsError_t reInitializeAudioOutputPort()
This API is used to reInitialize AudioOutputPort in case when Constructor miss out the Audio output p...
enum _dsMS12FEATURE_t dsMS12FEATURE_t
dsError_t dsIsAudioMute(intptr_t handle, bool *muted)
Get the audio mute status of an audio port.
void setPrimaryLanguage(const std::string pLang)
This API is used to set Primary language.
This class extends DSConstant to implement AudioStereoMode. It manages the information related to aud...
Device Settings HAL error codes.
dsError_t dsGetPrimaryLanguage(intptr_t handle, char *pLang)
To get AC4 Primary language.
const AudioOutputPortType & getType() const
This API is used to get the type of the audio output port. The type of audio output port represent th...
void setAssociatedAudioMixing(const bool mixing)
This API is used to enable/disable Associated Audio Mixing.
@ dsAUDIOPORT_TYPE_HEADPHONE
dsError_t dsGetMS12AudioProfileList(intptr_t handle, dsMS12AudioProfileList_t *profiles)
To get the supported MS12 audio profiles.
const List< AudioStereoMode > getSupportedStereoModes() const
This API is used to get the list of audio stereo modes supported by the audio port.
void setAudioDelayOffset(const uint32_t audioDelayOffsetMs)
This API is used to set audio delay offset in milliseconds.
dsError_t dsGetDialogEnhancement(intptr_t handle, int *level)
Get the Dialog Enhancement level of an audio port.
Class extending Enumerable to implement the audiooutputport interface.
static AudioOutputPort & getInstance(int id)
This API is used to get the instance of the audio output port based on the port id returned by the ge...
This file defines AudioStereoMode class for managing audio mode types.
dsError_t dsSetMS12AudioProfileSetttingsOverride(intptr_t handle, const char *profileState, const char *profileName, const char *profileSettingsName, const char *profileSettingValue)
To Set/override a specific audio setting in a specific profile.
dsError_t dsSetSurroundVirtualizer(intptr_t handle, dsSurroundVirtualizer_t virtualizer)
To set the audio Surround Virtualizer level.
dsError_t dsGetFaderControl(intptr_t handle, int *mixerbalance)
To get the mixerbalance betweeen main and associated audio.
void getSinkDeviceAtmosCapability(dsATMOSCapability_t &atmosCapability)
dsError_t dsSetAudioLevel(intptr_t handle, float level)
This function sets the audio volume level to be used on the specified audio port.
void setGraphicEqualizerMode(const int mode)
This API is used to set the compression mode in a given audio port.
dsError_t dsSetAudioEncoding(intptr_t handle, dsAudioEncoding_t encoding)
Set the encoding type of an audio port.
void resetVolumeLeveller()
This API is used to reset the AudioOutput in a given audio port.
dsError_t dsEnableSurroundDecoder(intptr_t handle, bool enabled)
To set the audio Surround Decoder.
bool _loopThru
Method variable to check whether audio is loop thru or not.
static const AudioStereoMode & getInstance(int id)
This function gets an instance of AudioStereoMode against the specified id, only if the id passed is ...
void setVolumeLeveller(const dsVolumeLeveller_t volLeveller)
This API is used to set the volume leveller mode & amount for a given audio port.
float getMinDB() const
This API is used to get the current minimum decibel that Audio output port can support.
dsError_t dsSetAudioMute(intptr_t handle, bool mute)
Mute or un-mute an audio port.
dsError_t dsGetAudioDelayOffset(intptr_t handle, uint32_t *audioDelayOffsetMs)
Get the audio delay offset in milliseconds.
bool getAudioDelayOffset(uint32_t &audioDelayOffsetMs) const
This API is used to get the current audio delay offset in milliseconds for audio output port.
void enableSurroundDecoder(const bool enable)
This API is used to enable/disable surround decoder in a given audio port.
bool isAudioMSDecode() const
This API is used to check whether the audio port supports Dolby MS11 Multistream Decode.
dsError_t dsSetMS12AudioProfile(intptr_t handle, const char *profile)
To set the ms12 audio profile.
dsError_t dsEnableLEConfig(intptr_t handle, const bool enable)
This function is used to enable or disable Loudness Equivalence feature.
dsError_t dsResetVolumeLeveller(intptr_t handle)
to reset the Dolby volume leveller
dsError_t dsSetAudioDelay(intptr_t handle, const uint32_t audioDelayMs)
Set the audio delay in milliseconds.
dsError_t dsGetAudioMaxDB(intptr_t handle, float *maxDb)
Get the maximum audio dB level of an audio port.
int _encoding
Audio Encoding Types.
dsError_t dsAudioSetSAD(intptr_t handle, dsAudioSADList_t sad_list)
Set Short Audio Descriptor retrieved from CEC for the connected ARC device.
dsError_t dsSetDolbyVolumeMode(intptr_t handle, bool mode)
Get the dolby audio mode status.
dsError_t dsSetGraphicEqualizerMode(intptr_t handle, int mode)
Get the Graphic Equalizer Mode.
enum StereoMode dsAudioStereoMode_t
dsError_t dsGetMS12AudioProfile(intptr_t handle, char *profile)
To get current audio profile selection.
Class extending DSConstant to implement the audiooutputport interface.
const List< AudioEncoding > getSupportedEncodings() const
This API is used to get the list of audio encodings supported by the audio port .
bool isMuted() const
This API is used to check whether the audio is muted or not.
dsError_t dsSetPrimaryLanguage(intptr_t handle, const char *pLang)
To set AC4 Primary language.
dsError_t dsGetSecondaryLanguage(intptr_t handle, char *sLang)
To get AC4 Secondary language.
uint32_t _audioDelayOffsetMs
Audio delay offset.
int getBassEnhancer() const
This API is used to get the Bass Enhancer boost value.
void setMuted(const bool mute)
This API is used to mute/unmute the audio. It throws an IllegalArgumentException if audio could not b...
void setMISteering(const bool enable)
This API is used to enable/disable the Media Intelligent Steering in a given audio port.
dsError_t dsGetHDMIARCPortId(int *portId)
Get the audio HDMI ARC port ID for each platform.
void setEncoding(const int encoding)
This API is used to set the Encoding method in a given audio port.
int getDRCMode() const
This API is used to get the Dynamic Range Control mode.
bool getAudioDelay(uint32_t &audioDelayMs) const
This API is used to get the current audio delay in milliseconds for audio output port.
void setLoopThru(const bool loopThru)
This API is used to set the audio port to do loop thro.
virtual const std::string & getName() const
This function is used to the get the data member name.
void setAudioDucking(dsAudioDuckingAction_t action, dsAudioDuckingType_t, const unsigned char level)
This API is used to set the audio level to be used in a given audio port. If output mode is Passthrou...
dsError_t dsGetSinkDeviceAtmosCapability(intptr_t handle, dsATMOSCapability_t *capability)
Get the sink device ATMOS capability.
It contains class and structure refrenced by the videooutputport.cpp file.
dsError_t dsGetSurroundVirtualizer(intptr_t handle, dsSurroundVirtualizer_t *virtualizer)
To get the audio Surround Virtualizer level.
const std::string getMS12AudioProfile() const
This API is used to get the current MS12 Audio profile.
enum _dsAudioARCTypes_t dsAudioARCTypes_t
dsError_t dsGetAssociatedAudioMixing(intptr_t handle, bool *mixing)
To get the Associated Audio Mixing status - enabled/disabled.
This class handles exceptions occurring in DS module.
int _stereoMode
Audio stereo mode Types.
dsError_t dsSetAudioAtmosOutputMode(intptr_t handle, bool enable)
Set the audio ATMOS outout mode.
dsError_t dsGetAudioCapabilities(intptr_t handle, int *capabilities)
To find the HDR capabilities of SoC.
void setStereoAuto(const bool autoMode, const bool toPersist=true)
This API is used to set the stereo mode to be auto;.
dsError_t dsGetMISteering(intptr_t handle, bool *enabled)
To get the audio Media intelligent Steering.
void setIntelligentEqualizerMode(const int mode)
This API is used to set the compression mode in a given audio port.
dsError_t dsGetVolumeLeveller(intptr_t handle, dsVolumeLeveller_t *volLeveller)
To get the Dolby volume leveller.
AudioOutputPort(const int type, const int index, const int id)
This function is a default constructor for AudioOutputPort. It initialises the data members of AudioO...
dsError_t dsSetSecondaryLanguage(intptr_t handle, const char *sLang)
To set AC4 Secondary language.
dsError_t dsGetAudioPort(dsAudioPortType_t type, int index, intptr_t *handle)
Get the audio port handle.
int _index
Index of the audio output port.
dsError_t dsSetVolumeLeveller(intptr_t handle, dsVolumeLeveller_t volLeveller)
To set the Dolby volume leveller.
int getGraphicEqualizerMode() const
This API is used to get the current Graphical EQ mode.
dsError_t dsGetDRCMode(intptr_t handle, int *mode)
To get the DRC Mode.
void setAudioDelay(const uint32_t audioDelayMs)
This API is used to set audio delay in milliseconds.
dsError_t dsSetAudioDelayOffset(intptr_t handle, const uint32_t audioDelayOffsetMs)
Set the audio delay offset in milliseconds.
dsError_t dsGetMS12Capabilities(intptr_t handle, int *capabilities)
To find the HDR capabilities of SoC.
dsError_t dsResetDialogEnhancement(intptr_t handle)
to reset the Dialog Enhancement
const List< AudioEncoding > getSupportedEncodings() const
This API is used to get the list of audio encodings supported by the port.
dsError_t dsAudioEnableARC(intptr_t handle, dsAudioARCStatus_t arcStatus)
enable/disable ARC/EARC and route audio to connected device
bool _muted
Method variable to check whether audio is muted or not.
@ dsERR_OPERATION_NOT_SUPPORTED
It contain variables,stuctures,class and functions referenced by audiooutputportType code.
void enableARC(dsAudioARCTypes_t type, bool enable)
This function enables/disables ARC/EARC and routes audio to connected device.
bool getStereoAuto()
This API is used to get the current auto mode.
dsError_t dsGetGraphicEqualizerMode(intptr_t handle, int *mode)
Get the Graphic Equalizer Mode.
void resetBassEnhancer()
This API is used to reset the AudioOutput in a given audio port.
dsError_t dsSetAudioDB(intptr_t handle, float db)
This function sets the dB level to be used on the specified audio port.
dsError_t dsGetStereoAuto(intptr_t handle, int *autoMode)
This function is used to get the current auto mode setting of the specified audio port.
void setCompression(const int compression)
This API is used to set the compression mode in a given audio port.
void getAudioCapabilities(int *capabilities)
This API is used to query the Audio capabilities of the device.
void setSAD(std::vector< int > sad_list)
This function sets SAD(Short Audio Descriptor) to configure the best available audio format to send t...
dsError_t dsGetDolbyVolumeMode(intptr_t handle, bool *mode)
Get the dolby audio mode status.
dsError_t setEnablePort(bool enabled)
This API is used to enable and disable the Audio output port.
This class extends Exception class to manage the expections caused due to illegal arguments.
This class extends DSConstant to implement AudioEncoding which manages audio encodings.
It contain variables,stuctures,class and functions referenced by audiooutputport code.
bool isSurroundDecoderEnabled() const
This API is used to get status of surround decoder.
void setStereoMode(const int mode, const bool toPersist=true)
This API is used to set the stereo mode to be used in a given audio port.If toPersist is true,...
dsError_t dsEnableMS12Config(intptr_t handle, dsMS12FEATURE_t feature, const bool enable)
This function is used to enable or disable MS12 DAPV2 and DE feature.
void getFaderControl(int *mixerBalance)
This API is used to get the mixerbalance betweeen main and associated audio.
dsError_t dsGetAudioDelay(intptr_t handle, uint32_t *audioDelayMs)
Get the audio delay in milliseconds.
int getCompression() const
This API is used to get the current compression of the output port.
enum _dsAudioDuckingAction_t dsAudioDuckingAction_t
dsError_t dsIsAudioLoopThru(intptr_t handle, bool *loopThru)
Get the loop-through mode of an audio port.
dsError_t
Device Settings API Error return codes.
dsError_t dsGetBassEnhancer(intptr_t handle, int *boost)
To get the audio Bass.
int _type
Audiooutputporttype.
void setDB(const float db)
This API is used to set the audio DB value to be used in a given audio port.
float _db
Audio decibel value.
dsError_t dsSetDRCMode(intptr_t handle, int mode)
To set the DRC Mode.
const List< AudioCompression > getSupportedCompressions() const
This API is used to get the list of audio compressions supported by the audio port.
This file defines AudioCompression class for managing audio compression levels.
void setFaderControl(const int mixerBalance)
This API is used to set the mixerbalance betweeen main and associated audio.
dsError_t dsSetAudioDucking(intptr_t handle, dsAudioDuckingAction_t action, dsAudioDuckingType_t, const unsigned char level)
This function sets the audio ducking level to be used on the specified audio port based on the audio ...
void getSupportedARCTypes(int *types)
This API is used to query the supported ARC types of the connected device.
float getMaxDB() const
This API is used to get the current Maximum decibel that Audio output port can support.
dsError_t enableLEConfig(const bool enable)
This API is used to enable Loudness Equivalence *.
dsError_t dsSetFaderControl(intptr_t handle, int mixerbalance)
To set the mixerbalance betweeen main and associated audio.
void getHdmiArcPortId(int *portId)
This API is used to query the HDMI ARC Port ID.
dsError_t dsSetStereoAuto(intptr_t handle, int autoMode)
This function sets the auto mode to be used on the specified audio port.
void enableMS12Config(const dsMS12FEATURE_t feature, const bool enable)
This API is used to enable MS12 features such as DAPV2 adn DE *.
dsError_t dsIsAudioMS12Decode(intptr_t handle, bool *HasMS12Decode)
This function is used to check whether the audio port supports Dolby MS12 Multistream Decode.
This file defines AudioEncoding class for managing audio encoding types.
void setDolbyVolumeMode(const bool mode)
This API is used to set the compression mode in a given audio port.
dsError_t dsIsAudioMSDecode(intptr_t handle, bool *HasMS11Decode)
This function is used to check whether the audio port supports Dolby MS11 Multistream Decode.
dsError_t dsGetAudioMinDB(intptr_t handle, float *minDb)
Get the minimum audio dB level of an audio port.
dsError_t dsSetIntelligentEqualizerMode(intptr_t handle, int mode)
Set the Intelligent Equalizer Mode.
dsError_t dsGetAudioGain(intptr_t handle, float *gain)
Get the audio gain of an audio port.
enum _dsAudioEncoding_t dsAudioEncoding_t