device/inc/Device.h
Device
Header:
Members
protected
protected
protected
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
🚀 QLI Version 2.1.1 is now live ! Switch to new version to check out the latest content
device/inc/Device.h
DeviceDevice Device(struct pal_device *device, std::shared_ptr< ResourceManager > Rm)
Device Device()
configureDeviceClockSrcint32_t configureDeviceClockSrc(char const *mixerStrClockSrc, const uint32_t clockSrc)
initint init(pal_param_device_connection_t device_conn)
deinitint deinit(pal_param_device_connection_t device_conn)
getDefaultConfigint getDefaultConfig(pal_param_device_capability_t capability)
openint open()
closeint close()
startint start()
start_lint start_l()
stopint stop()
stop_lint stop_l()
prepareint prepare()
getSndDeviceIdint getSndDeviceId()
getDeviceCountint getDeviceCount()
getPALDeviceNamestd::string getPALDeviceName()
setDeviceAttributesint setDeviceAttributes(struct pal_device &dattr)
getDeviceAttributesint getDeviceAttributes(struct pal_device *dattr, Stream *streamHandle=NULL)
getCodecConfigint getCodecConfig(struct pal_media_config *config)
updateCustomPayloadint updateCustomPayload(void *payload, size_t size)
freeCustomPayloadint freeCustomPayload(uint8_t **payload, size_t *payloadSize)
getCustomPayloadvoid * getCustomPayload()
getCustomPayloadSizesize_t getCustomPayloadSize()
setDeviceParameterint32_t setDeviceParameter(uint32_t param_id, void *param)
setParameterint32_t setParameter(uint32_t param_id, void *param)
getDeviceParameterint32_t getDeviceParameter(uint32_t param_id, void **param)
getParameterint32_t getParameter(uint32_t param_id, void **param)
isDeviceReadybool isDeviceReady(pal_device_id_t id)
isScoNbWbActivebool isScoNbWbActive()
checkAndUpdateSampleRateint32_t checkAndUpdateSampleRate(uint32_t *sampleRate)
checkAndUpdateBitWidthint32_t checkAndUpdateBitWidth(uint32_t *bitWidth)
selectBestConfigint selectBestConfig(struct pal_device *dattr, struct pal_stream_attributes *sattr, bool is_playback, struct pal_device_info *devinfo)
getMaxChannelint getMaxChannel()
getHighestSupportedSRint getHighestSupportedSR()
isBitWidthSupportedint32_t isBitWidthSupported(uint32_t bitWidth)
isSupportedSRbool isSupportedSR(int sr)
getHighestSupportedBpsint getHighestSupportedBps()
isDeviceConnectedbool isDeviceConnected(struct pal_usb_device_address addr)
checkDeviceStatusint32_t checkDeviceStatus()
getDeviceConfigint32_t getDeviceConfig(struct pal_device *deviceattr, struct pal_stream_attributes *sAttr)
bitsToAlsaFormatunsigned int bitsToAlsaFormat(unsigned int bits)
getBeMixerControlstruct mixer_ctl * getBeMixerControl(struct mixer *am, std::string beName, uint32_t idx)
setCustomPayloadint setCustomPayload(std::shared_ptr< ResourceManager > rmHandle, std::string backEndName, void *payload, size_t size)
setMediaConfigint setMediaConfig(std::shared_ptr< ResourceManager > rmHandle, std::string backEndName, struct pal_device *dAttr)
setSndNamevoid setSndName(std::string snd_name)
clearSndNamevoid clearSndName()
~Device ~Device()
getCurrentSndDevNamevoid getCurrentSndDevName(char *name)
setSampleRatevoid setSampleRate(uint32_t sr)
setBitWidthvoid setBitWidth(uint32_t bw)
lockDeviceMutexvoid lockDeviceMutex()
unlockDeviceMutexvoid unlockDeviceMutex()
compareStreamDevAttrbool compareStreamDevAttr(const struct pal_device *inDevAttr, const struct pal_device_info *inDevInfo, struct pal_device *curDevAttr, const struct pal_device_info *curDevInfo)
insertStreamDeviceAttrint insertStreamDeviceAttr(struct pal_device *deviceAttr, Stream *streamHandle)
removeStreamDeviceAttrvoid removeStreamDeviceAttr(Stream *streamHandle)
getTopPriorityDeviceAttrint getTopPriorityDeviceAttr(struct pal_device *deviceAttr, uint32_t *streamPrio)
isPluginDevicebool isPluginDevice(pal_device_id_t id)
isDpDevicebool isDpDevice(pal_device_id_t id)
isPluginPlaybackDevicebool isPluginPlaybackDevice(pal_device_id_t id)
getInstancestd::shared_ptr< Device > getInstance(struct pal_device *device, std::shared_ptr< ResourceManager > Rm)
palToSndDriverFormatunsigned int palToSndDriverFormat(uint32_t fmt_id)
initHdrRoutineint32_t initHdrRoutine(const char *hdr_custom_key)
DEVICE_NAME_MAX_SIZE#define DEVICE_NAME_MAX_SIZE 128
DUMP_DEV_ATTR#define DUMP_DEV_ATTR 0
DEFAULT_OUTPUT_CHANNEL#define DEFAULT_OUTPUT_CHANNEL 2
Was this page helpful?
