Home
last modified time | relevance | path

Searched refs:rate (Results 1 – 25 of 51) sorted by relevance

123

/drivers/hdf_core/framework/model/audio/usb/src/
Daudio_usb_parse_interface.c369 static uint32_t AudioPcmRateToRateBit(uint32_t rate) in AudioPcmRateToRateBit() argument
379 if (rates[i] == rate) { in AudioPcmRateToRateBit()
388 …struct AudioUsbDriver *audioUsbDriver, struct AudioUsbFormat *audioUsbFormat, uint32_t *rate, int3… in AudioUsbInitRate() argument
390 if (*rate == AUDIO_SAMPLE_RATE_48000 && nrRates == 1 && in AudioUsbInitRate()
397 *rate = AUDIO_SAMPLE_RATE_96000; in AudioUsbInitRate()
400 if (*rate == AUDIO_SAMPLE_RATE_16000 && in AudioUsbInitRate()
403 *rate = AUDIO_SAMPLE_RATE_8000; in AudioUsbInitRate()
437 uint32_t rate = AudioUsbCombineTriple(&fmt[idx]); in AudioUsbParseFormatRates() local
438 if (rate == 0) { in AudioUsbParseFormatRates()
444 AudioUsbInitRate(audioUsbDriver, audioUsbFormat, &rate, nrRates); in AudioUsbParseFormatRates()
[all …]
Daudio_usb_dma_ops.c519 if (pcmInfo->rate < fp->rateMin || pcmInfo->rate > fp->rateMax) { in AudioUsbFindFormatSub()
521 …urrent audio stream rate is %d. The audio card support rateMax is %d rateMin is %d", pcmInfo->rate, in AudioUsbFindFormatSub()
553 if (fp->rateTable[i] == pcmInfo->rate) { in AudioUsbFindFormat()
830 struct AudioUsbFormat *audioUsbFormat, const enum AudioStreamType streamType, uint32_t rate) in AudioUsbSetupEp() argument
855 ret = AudioUsbInitSampleRate(audioUsbDriver, audioUsbFormat->iface, alts, audioUsbFormat, rate); in AudioUsbSetupEp()
874 uint32_t rate; in AudioUsbDmaPrep() local
889 rate = data->renderPcmInfo.rate; in AudioUsbDmaPrep()
892 rate = data->capturePcmInfo.rate; in AudioUsbDmaPrep()
904 ret = AudioUsbSetupEp(data, audioUsbDriver, audioUsbFormat, streamType, rate); in AudioUsbDmaPrep()
Daudio_usb_endpoints.c684 static inline unsigned AudioUsbGetUsbSpeedRate(uint32_t rate, uint32_t speed) in AudioUsbGetUsbSpeedRate() argument
686 return ((rate << speed) + USB_SPEED_RATE_CONVERT) / USB_SPEED_RATE_CONVERT_COEF; in AudioUsbGetUsbSpeedRate()
996 endpoint->freqn = AudioUsbGetUsbSpeedRate(pcmInfo->rate, USB_FULL_SPEED); in AudioUsbEndpointSetParams()
999 endpoint->freqn = AudioUsbGetUsbSpeedRate(pcmInfo->rate, USB_HIGH_SPEED); in AudioUsbEndpointSetParams()
1003 endpoint->sampleRem = pcmInfo->rate % endpoint->pps; in AudioUsbEndpointSetParams()
1004 endpoint->packsize[0] = pcmInfo->rate / endpoint->pps; in AudioUsbEndpointSetParams()
1005 endpoint->packsize[1] = (pcmInfo->rate + (endpoint->pps - 1)) / endpoint->pps; in AudioUsbEndpointSetParams()
/drivers/peripheral/audio/test/systemtest/adm/audio_adm_interface/src/
Daudio_adm_interface_test.cpp155 .streamType = AUDIO_CAPTURE_STREAM, .channels = 2, .period = 2048, .rate = 11025,
190 .streamType = AUDIO_CAPTURE_STREAM, .channels = 2, .period = 2048, .rate = 11025,
772 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 11025,
791 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 22050,
810 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 4096, .rate = 24000,
829 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 48190,
848 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 44100,
867 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 8190,
886 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 32000,
905 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 50000,
[all …]
/drivers/hdf_core/framework/model/audio/usb/include/
Daudio_usb_parse_interface.h17 struct AudioUsbFormat *audioUsbFormat, int32_t rate);
/drivers/hdf_core/framework/test/unittest/platform/common/
Dadc_test.h25 uint32_t rate; member
Ddac_test.h25 uint32_t rate; member
Ddac_driver_test.c77 ret = drsOps->GetUint32(node, "rate", &config->rate, 0); in DacTestReadConfig()
Dadc_driver_test.c76 ret = drsOps->GetUint32(node, "rate", &config->rate, 0); in AdcTestReadConfig()
/drivers/peripheral/audio/supportlibs/interfaces/include/
Daudio_if_lib_common.h28 uint32_t rate; member
/drivers/peripheral/wlan/client/src/netlink/
Dnetlink_cmd_adapter.c1829 struct nlattr *rate[NL80211_RATE_INFO_MAX + 1]; in ParseStaTxRate() local
1843 …nla_parse_nested(rate, NL80211_RATE_INFO_MAX, stats[NL80211_STA_INFO_TX_BITRATE], ratePolicy) == 0… in ParseStaTxRate()
1844 if (rate[NL80211_RATE_INFO_BITRATE32] != NULL) { in ParseStaTxRate()
1845 info->txRate = nla_get_u32(rate[NL80211_RATE_INFO_BITRATE32]); in ParseStaTxRate()
1846 } else if (rate[NL80211_RATE_INFO_BITRATE] != NULL) { in ParseStaTxRate()
1847 info->txRate = nla_get_u16(rate[NL80211_RATE_INFO_BITRATE]); in ParseStaTxRate()
1849 if (rate[NL80211_RATE_INFO_MCS] != NULL) { in ParseStaTxRate()
1850 info->txMcs = nla_get_u8(rate[NL80211_RATE_INFO_MCS]); in ParseStaTxRate()
1853 if (rate[NL80211_RATE_INFO_VHT_MCS] != NULL) { in ParseStaTxRate()
1854 info->txVhtmcs = nla_get_u8(rate[NL80211_RATE_INFO_VHT_MCS]); in ParseStaTxRate()
[all …]
/drivers/hdf_core/framework/model/audio/core/include/
Daudio_host.h172 uint32_t rate; member
190 uint32_t rate; member
/drivers/interface/codec/v1_0/
DCodecTypes.idl121 AUD_SAMPLE_RATE_INVALID, /**< Invalid sampling rate */
165 * @brief Enumerates the bit rate modes.
169 BIT_RATE_MODE_VBR, /**< Variable bit rate. */
170 BIT_RATE_MODE_CBR, /**< Constant bit rate. */
172 BIT_RATE_MODE_VCBR, /**< Constrained variable bit rate. */
173 BIT_RATE_MODE_ABR, /**< Average bit rate. */
284 …enum BitRateMode[] bitRatemode; /**< Transmission rate modes, which can be constant or vari…
286 struct RangeValue frameRate; /**< Frame rate range. */
287 int[] measuredFrameRate; /**< Frame rate measured. */
341 struct RangeValue bitRate; /**< Supported bit rate range. */
/drivers/hdf_core/framework/test/unittest/platform/virtual/
Ddac_virtual.c25 uint32_t rate; member
80 if (drsOps->GetUint32(node, "rate", &virtual->rate, 0) != HDF_SUCCESS) { in VirtualDacReadDrs()
/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audioadmdispatchercapturecmdid_fuzzer/
Daudioadmdispatchercapturecmdid_fuzzer.cpp30 .streamType = AUDIO_CAPTURE_STREAM, .channels = 2, .rate = 11025, .periodSize = 8192, in AudioAdmDispatcherCaptureCmdidFuzzTest()
/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audioadmdispatcherrendercmdid_fuzzer/
Daudioadmdispatcherrendercmdid_fuzzer.cpp31 .rate = BROADCAST_AM_RATE, .periodSize = FRAME_DATA / 2, in AudioAdmDispatcherRenderCmdidFuzzTest()
/drivers/peripheral/audio/test/systemtest/common/adm_common/include/
Daudio_adm_common.h74 uint32_t rate; member
/drivers/hdf_core/framework/support/platform/include/hdmi/
Dhdmi_common.h254 uint32_t rate; member
282 uint32_t rate; member
/drivers/peripheral/audio/supportlibs/alsa_adapter/src/
Dalsa_lib_capture.c539 cardIns->hwCaptureParams.rate = handleData->frameCaptureMode.attrs.sampleRate; in GetCapHwParams()
600 static int32_t SetHWRate(snd_pcm_t *handle, snd_pcm_hw_params_t *params, uint32_t *rate) in SetHWRate() argument
606 if (handle == NULL || params == NULL || rate == NULL) { in SetHWRate()
612 rRate = *rate; in SetHWRate()
615 …AUDIO_FUNC_LOGE("Rate %{public}uHz not available for capture: %{public}s", *rate, snd_strerror(ret… in SetHWRate()
619 if (rRate != *rate) { in SetHWRate()
622 …AUDIO_FUNC_LOGE("Rate %{public}uHz not available for capture: %{public}s", *rate, snd_strerror(ret… in SetHWRate()
627 *rate = rRate; in SetHWRate()
713 ret = SetHWRate(handle, params, &(hwCapParams.rate)); in SetHWParams()
Dalsa_lib_render.c79 cardIns->hwRenderParams.rate = handleData->frameRenderMode.attrs.sampleRate; in GetHwParams()
660 static int32_t SetHWRate(snd_pcm_t *handle, snd_pcm_hw_params_t *params, uint32_t *rate) in SetHWRate() argument
666 if (handle == NULL || params == NULL || rate == NULL) { in SetHWRate()
672 rRate = *rate; in SetHWRate()
675 …AUDIO_FUNC_LOGE("Rate %{public}uHz not available for playback: %{public}s.", *rate, snd_strerror(r… in SetHWRate()
679 if (rRate != *rate) { in SetHWRate()
682 …AUDIO_FUNC_LOGE("Rate %{public}uHz not available for playback: %{public}s.", *rate, snd_strerror(r… in SetHWRate()
687 *rate = rRate; in SetHWRate()
713 if (SetHWRate(handle, params, &(hwParams.rate)) < 0) { in SetHWParams()
/drivers/interface/wlan/v1_1/
DWlanTypes.idl272 /** Receive (RX) rate. */
274 /** Transmit (TX) rate. */
345 /** Transmission bit rate in Mbps. */
347 /** Received bit rate in Mbps. */
/drivers/hdf_core/adapter/khdf/linux/platform/adc/
Dadc_iio_adapter.c48 uint32_t rate; member
189 ret = drsOps->GetUint32(node, "rate", &adcDevice->rate, 0); in AdcIioReadDrs()
/drivers/interface/camera/v1_1/
DIStreamOperator.idl51 …* @param modeSetting Indicates the stream configuration parameters, including the frame rate and 3…
90 …* @param modeSetting Indicates the stream configuration parameters, including the frame rate and z…
DICameraDevice.idl53 …* @param settings Indicates the default camera parameters, including the sensor frame rate and 3A …
/drivers/hdf_core/framework/model/audio/common/src/
Daudio_platform_base.c147 platformData->renderPcmInfo.rate = param->rate; in AudioSetPcmInfo()
165 platformData->capturePcmInfo.rate = param->rate; in AudioSetPcmInfo()
1104 data->renderBufInfo.oneMsBytes = data->renderPcmInfo.rate * data->renderPcmInfo.frameSize in AudioPcmTransferBytes()
1112 data->captureBufInfo.oneMsBytes = data->capturePcmInfo.rate * data->capturePcmInfo.frameSize in AudioPcmTransferBytes()

123