|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
34 #ifndef _DS_AUDIOOUTPORT_H_
35 #define _DS_AUDIOOUTPORT_H_
41 #include <sys/types.h>
45 typedef void (*dsAudioOutPortConnectCB_t)(
dsAudioPortType_t portType,
unsigned int uiPortNo,
bool isPortCon);
899 dsError_t dsAudioOutIsConnected(intptr_t handle,
bool* pisCon);
901 dsError_t dsAudioOutRegisterConnectCB(dsAudioOutPortConnectCB_t CBFunc);
992 const char* profileSettingsName,
const char* profileSettingValue);
dsError_t dsGetAudioCompression(intptr_t handle, int *compression)
Get the audio compressionof an audio port.
dsError_t dsEnableLoopThru(intptr_t handle, bool loopThru)
Set loop-through mode of an audio port.
Structure that defines ARC status for the HDMI ARC/EARC port.
dsError_t dsGetAudioDB(intptr_t handle, float *db)
Get the current audio dB level of an audio port.
dsError_t dsIsSurroundDecoderEnabled(intptr_t handle, bool *enabled)
To get the audio Surround Decoder.
dsError_t dsSetAudioCompression(intptr_t handle, int compression)
Set the audio compression of an audio port.
dsError_t dsSetAssociatedAudioMixing(intptr_t handle, bool mixing)
Enable/Disable Associated Audio Mixing.
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.
dsError_t dsSetStereoMode(intptr_t handle, dsAudioStereoMode_t mode)
Set the stereo mode of an audio port.
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
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
dsError_t dsGetStereoMode(intptr_t handle, dsAudioStereoMode_t *stereoMode)
Get the stereo mode of an audio port.
Device Settings HAL types.
dsError_t dsSetDialogEnhancement(intptr_t handle, int level)
Get the Dialog Enhancement level of an audio 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
dsError_t dsGetAudioOptimalLevel(intptr_t handle, float *optimalLevel)
Get the optimal audio level of an audio port.
dsError_t dsGetLEConfig(intptr_t handle, bool *enable)
To Get LE configuration.
enum _dsMS12FEATURE_t dsMS12FEATURE_t
dsError_t dsIsAudioMute(intptr_t handle, bool *muted)
Get the audio mute status of an audio port.
Device Settings HAL error codes.
dsError_t dsGetPrimaryLanguage(intptr_t handle, char *pLang)
To get AC4 Primary language.
dsError_t dsAudioFormatUpdateRegisterCB(dsAudioFormatUpdateCB_t cbFun)
Register for the Audio Format Update Event.
dsError_t dsGetMS12AudioProfileList(intptr_t handle, dsMS12AudioProfileList_t *profiles)
To get the supported MS12 audio profiles.
dsError_t dsGetDialogEnhancement(intptr_t handle, int *level)
Get the Dialog Enhancement level of an audio port.
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.
dsError_t dsSetAudioLevel(intptr_t handle, float level)
This function sets the audio volume level to be used on the specified audio port.
dsError_t dsSetAudioEncoding(intptr_t handle, dsAudioEncoding_t encoding)
Set the encoding type of an audio port.
dsError_t dsEnableSurroundDecoder(intptr_t handle, bool enabled)
To set the audio Surround Decoder.
dsError_t dsSetAudioMute(intptr_t handle, bool mute)
Mute or un-mute an audio port.
dsError_t dsGetAudioFormat(intptr_t handle, dsAudioFormat_t *audioFormat)
Get the current audio format.
dsError_t dsGetAudioDelayOffset(intptr_t handle, uint32_t *audioDelayOffsetMs)
Get the audio delay offset in milliseconds.
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.
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.
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.
dsError_t dsAudioPortTerm()
Terminate the Audio Port sub-system.
dsError_t dsGetHDMIARCPortId(int *portId)
Get the audio HDMI ARC port ID for each platform.
dsError_t dsGetSinkDeviceAtmosCapability(intptr_t handle, dsATMOSCapability_t *capability)
Get the sink device ATMOS capability.
dsError_t dsGetSurroundVirtualizer(intptr_t handle, dsSurroundVirtualizer_t *virtualizer)
To get the audio Surround Virtualizer level.
dsError_t dsGetAssociatedAudioMixing(intptr_t handle, bool *mixing)
To get the Associated Audio Mixing status - enabled/disabled.
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.
dsError_t dsGetMISteering(intptr_t handle, bool *enabled)
To get the audio Media intelligent Steering.
dsError_t dsGetVolumeLeveller(intptr_t handle, dsVolumeLeveller_t *volLeveller)
To get the Dolby volume leveller.
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.
dsError_t dsSetVolumeLeveller(intptr_t handle, dsVolumeLeveller_t volLeveller)
To set the Dolby volume leveller.
dsError_t dsGetDRCMode(intptr_t handle, int *mode)
To get the DRC Mode.
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
dsError_t dsAudioEnableARC(intptr_t handle, dsAudioARCStatus_t arcStatus)
enable/disable ARC/EARC and route audio to connected device
dsError_t dsGetGraphicEqualizerMode(intptr_t handle, int *mode)
Get the Graphic Equalizer Mode.
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.
dsError_t dsGetDolbyVolumeMode(intptr_t handle, bool *mode)
Get the dolby audio mode status.
enum _dsAudioFormat_t dsAudioFormat_t
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.
dsError_t dsGetAudioDelay(intptr_t handle, uint32_t *audioDelayMs)
Get the audio delay in milliseconds.
enum _dsAudioDuckingAction_t dsAudioDuckingAction_t
dsError_t dsIsAudioLoopThru(intptr_t handle, bool *loopThru)
Get the loop-through mode of an audio port.
dsError_t dsAudioPortInit()
Initialize the underlying Audio Port sub-system.
dsError_t
Device Settings API Error return codes.
dsError_t dsGetBassEnhancer(intptr_t handle, int *boost)
To get the audio Bass.
dsError_t dsSetDRCMode(intptr_t handle, int mode)
To set the DRC Mode.
void(* dsAudioFormatUpdateCB_t)(dsAudioFormat_t audioFormat)
Callback function used to notify applications of Audio Format change.
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 ...
dsError_t dsSetFaderControl(intptr_t handle, int mixerbalance)
To set the mixerbalance betweeen main and associated audio.
dsError_t dsSetStereoAuto(intptr_t handle, int autoMode)
This function sets the auto mode to be used on the specified audio port.
dsError_t dsIsAudioMS12Decode(intptr_t handle, bool *HasMS12Decode)
This function is used to check whether the audio port supports Dolby MS12 Multistream Decode.
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