/drivers/hdf_core/framework/test/unittest/platform/virtual/ |
H A D | adc_virtual.c | 25 uint32_t channels; member 54 if (channel >= virtual->channels || val == NULL) { in VirtualAdcRead() 98 ret = drsOps->GetUint32(node, "channels", &virtual->channels, 0); in VirtualAdcReadDrs() 100 HDF_LOGE("VirtualAdcReadDrs: read channels fail, ret: %d!", ret); in VirtualAdcReadDrs() 103 HDF_LOGD("VirtualAdcReadDrs: success, devNum=%u, dataWidth=%u, channels=%u!", in VirtualAdcReadDrs() 104 virtual->devNum, virtual->dataWidth, virtual->channels); in VirtualAdcReadDrs()
|
H A D | adc_linux_virtual_iio_driver.c | 161 indioDev->channels = AdcChannels; in VirtualAdcPlatformProbe()
|
/drivers/peripheral/audio/test/systemtest/adm/audio_adm_interface/src/ |
H A D | audio_adm_interface_test.cpp | 155 .streamType = AUDIO_CAPTURE_STREAM, .channels = 2, .period = 2048, .rate = 11025, in HWTEST_F() 190 .streamType = AUDIO_CAPTURE_STREAM, .channels = 2, .period = 2048, .rate = 11025, in HWTEST_F() 764 * format is AUDIO_FORMAT_TYPE_PCM_8_BIT、channels is 2、cardServiceName is hdf_audio_codec_dev0. 772 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 11025, in HWTEST_F() 783 * format is AUDIO_FORMAT_TYPE_PCM_16_BIT、channels is 2、cardServiceName is hdf_audio_codec_dev0. 791 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 2048, .rate = 22050, in HWTEST_F() 802 * format is AUDIO_FORMAT_TYPE_PCM_24_BIT、channels is 2、cardServiceName is hdf_audio_codec_dev0. 810 .streamType = AUDIO_RENDER_STREAM, .channels = 2, .period = 4096, .rate = 24000, in HWTEST_F() 821 * format is AUDIO_FORMAT_TYPE_PCM_32_BIT 、channels is 2、cardServiceName is hdf_audio_codec_dev0. 829 .streamType = AUDIO_RENDER_STREAM, .channels in HWTEST_F() [all...] |
/drivers/peripheral/audio/supportlibs/interfaces/include/ |
H A D | audio_if_lib_common.h | 27 uint32_t channels; member
|
/drivers/hdf_core/framework/model/audio/hdmi/src/ |
H A D | audio_hdmi_codec_ops.c | 282 static int32_t HdmiCodecGetChAllocTableIdx(struct HdmiCodecPriv *hdmiCodecPriv, uint8_t channels, int32_t *index) in HdmiCodecGetChAllocTableIdx() argument 296 if (g_hdmiCodecCeaSpkAlloc[item].channelNum != channels) { in HdmiCodecGetChAllocTableIdx() 333 hdmiCodecParams.cea.channels = param->channels; in AudioHdmiCodecDaiHwParams() 338 /* Select a channel allocation that matches with ELD and pcm channels */ in AudioHdmiCodecDaiHwParams() 339 ret = HdmiCodecGetChAllocTableIdx(hdmiCodecPriv, hdmiCodecParams.cea.channels, &idx); in AudioHdmiCodecDaiHwParams() 341 AUDIO_DRIVER_LOG_ERR("Not able to map channels to speakers", ret); in AudioHdmiCodecDaiHwParams() 350 hdmiCodecParams.channels = param->channels; in AudioHdmiCodecDaiHwParams()
|
/drivers/peripheral/audio/hal/hdi_passthrough/src/ |
H A D | audio_adapter_info_common.c | 29 #define CONFIG_CHANNEL_COUNT 2 // two channels 356 int32_t TransferChannels(const char *value, uint32_t *channels) in TransferChannels() argument 358 if (value == NULL || channels == NULL) { in TransferChannels() 359 AUDIO_FUNC_LOGE("param value or channels is null!"); in TransferChannels() 371 *channels = tempChannels; in TransferChannels() 524 uint32_t channels; in SetExtParam() local 525 if ((ret = TransferChannels(value, &channels)) < 0) { in SetExtParam() 529 mExtraParams->channels = channels; in SetExtParam() 617 mExtraParams->channels in AudioSetExtraParams() [all...] |
/drivers/peripheral/audio/hdi_service/primary_impl/src/ |
H A D | audio_adapter_info_common.c | 35 #define CONFIG_CHANNEL_COUNT 2 // two channels 349 static int32_t TransferChannels(const char *value, uint32_t *channels) in TransferChannels() argument 354 if (value == NULL || channels == NULL) { in TransferChannels() 367 *channels = (uint32_t)tempChannels; in TransferChannels() 521 uint32_t channels; in SetExtParam() local 522 ret = TransferChannels(value, &channels); in SetExtParam() 526 mExtraParams->channels = channels; in SetExtParam() 621 mExtraParams->channels = 0; in AudioSetExtraParams()
|
/drivers/hdf_core/framework/model/audio/core/include/ |
H A D | audio_host.h | 146 /* min channels */ 148 /* max channels */ 169 /* The number of channels in a frame */ 170 uint32_t channels; member 187 /* The number of channels in a frame */ 188 uint32_t channels; member
|
/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audioadmdispatchercapturecmdid_fuzzer/ |
H A D | audioadmdispatchercapturecmdid_fuzzer.cpp | 30 .streamType = AUDIO_CAPTURE_STREAM, .channels = 2, .rate = 11025, .periodSize = 8192, in AudioAdmDispatcherCaptureCmdidFuzzTest()
|
/drivers/peripheral/audio/test/fuzztest/adm_fuzzer/audioadmdispatcherrendercmdid_fuzzer/ |
H A D | audioadmdispatcherrendercmdid_fuzzer.cpp | 30 .streamType = AUDIO_RENDER_STREAM, .channels = AUDIO_CHANNEL_BOTH_RIGHT, in AudioAdmDispatcherRenderCmdidFuzzTest()
|
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/ |
H A D | audio_adapter_info_common.cpp | 36 constexpr int CONFIG_CHANNEL_COUNT = 2; // two channels 808 int32_t TransferChannels(const char *value, uint32_t *channels) in TransferChannels() argument 810 if (value == NULL || channels == NULL) { in TransferChannels() 821 *channels = tempChannels; in TransferChannels() 989 uint32_t channels = 0; in SetExtParam() local 990 ret = TransferChannels(value, &channels); in SetExtParam() 994 mExtraParams->channels = channels; in SetExtParam() 1056 mExtraParams->channels = 0; in AudioSetExtraParams()
|
/drivers/hdf_core/framework/model/audio/usb/src/ |
H A D | audio_usb_mixer.c | 89 #define MAX_CHANNELS 16 /* max logical channels */ 135 int32_t channels; member 167 int32_t channels; member 199 uint32_t channels; member 868 /* Get number of channels for a Mixer Unit */ 895 term->channels = inptTermDesc->bNrChannels; in AudioUsbParseTermUac1ItermUnit() 914 term->channels = err; in AudioUsbParseTermMixerUnit() 962 if (!term->channels) { in AudioUsbParseTermProcUnit() 963 term->channels = uac_processing_unit_bNrChannels(procUnitDesc); in AudioUsbParseTermProcUnit() 1195 ctrlElemInfo->count = mixElemInfo->channels; in AudioUsbMixerCtlFeatureInfo() [all...] |
H A D | audio_usb_parse_interface.c | 499 audioUsbFormat->channels = fmt->bNrChannels; in AudioUsbParseFormatSub() 505 if (audioUsbFormat->channels == 0) { in AudioUsbParseFormatSub() 506 AUDIO_DRIVER_LOG_ERR("%u:%d : invalid channels %d.", audioUsbFormat->iface, audioUsbFormat->altsetting, in AudioUsbParseFormatSub() 507 audioUsbFormat->channels); in AudioUsbParseFormatSub() 591 fp->channels = uacFmt->channelsNum; in AudioUsbFormatInit() 682 if (audioUsbFormat->channels != uacFmt->channelsNum) { in AudioUsbUac12GetFormat() 926 if ((*audioUsbFormat)->altsetting == FORMAT_ALTSETTING_1 && (*audioUsbFormat)->channels == 1 && in AudioUsbGetFormatSub()
|
/drivers/peripheral/audio/hal/hdi_passthrough/include/ |
H A D | audio_adapter_info_common.h | 72 int32_t TransferChannels(const char *value, uint32_t *channels);
|
/drivers/peripheral/audio/test/systemtest/common/adm_common/include/ |
H A D | audio_adm_common.h | 73 uint32_t channels; member
|
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/include/ |
H A D | audio_adapter_info_common.h | 51 int32_t TransferChannels(const char *value, uint32_t *channels);
|
/drivers/hdf_core/framework/model/audio/common/src/ |
H A D | audio_platform_base.c | 148 platformData->renderPcmInfo.frameSize = param->channels * platformData->renderPcmInfo.bitWidth / BITSTOBYTE; in AudioSetPcmInfo() 149 platformData->renderPcmInfo.channels = param->channels; in AudioSetPcmInfo() 166 platformData->capturePcmInfo.frameSize = param->channels * platformData->capturePcmInfo.bitWidth / BITSTOBYTE; in AudioSetPcmInfo() 167 platformData->capturePcmInfo.channels = param->channels; in AudioSetPcmInfo() 200 data->renderPcmInfo.channels / BITSTOBYTE; in AudioSetRenderBufInfo() 226 data->capturePcmInfo.channels / BITSTOBYTE; in AudioSetCaptureBufInfo() 1192 if (param->channels < chnlCntMin || param->channels > chnlCntMa in AudioHwParams() [all...] |
/drivers/peripheral/audio/supportlibs/alsa_adapter/src/ |
H A D | alsa_snd_render.c | 117 /* set the count of channels */
in SetHWParamsSub() 118 ret = snd_pcm_hw_params_set_channels(handle, params, hwParams->channels);
in SetHWParamsSub() 120 AUDIO_FUNC_LOGE("Channels count (%{public}u) not available for playbacks: %{public}s", hwParams->channels,
in SetHWParamsSub() 418 cardIns->hwParams.channels = handleData->frameRenderMode.attrs.channelCount;
in SaveHwParams() 463 HDF_LOGI("Channel Type = %{public}s, Channels = %{public}d.", champType, chmap->map.channels);
in QueryChmaps() 547 cardIns->hwParams.bitsPerFrame = bitsPerSample * cardIns->hwParams.channels;
in RenderSetParams() 619 uint32_t frameSize = cardIns->hwParams.channels * cardIns->hwParams.format;
in RenderWriteiMmap()
|
H A D | alsa_snd_capture.c | 26 #define ALSA_CAP_BUFFER_SIZE (2 * 2 * 6000) // format(S16LE) * channels(2) * period.
100 /* set the count of channels */
in SetHWParamsSub() 101 ret = snd_pcm_hw_params_set_channels(handle, params, cardIns->hwParams.channels);
in SetHWParamsSub() 103 AUDIO_FUNC_LOGE("Channels count (%{public}u) not available for capture: %{public}s", cardIns->hwParams.channels,
in SetHWParamsSub() 344 cardIns->hwParams.channels = handleData->frameCaptureMode.attrs.channelCount;
in SaveHwParams() 591 uint32_t channels = handleData->frameCaptureMode.attrs.channelCount;
in CaptureDataCopy() local 593 uint64_t recvDataSize = (uint64_t)(frames * channels * format);
in CaptureDataCopy()
|
/drivers/peripheral/audio/test/audio_utils/audio_mixer/ |
H A D | audio_mixer.h | 96 uint32_t channels; /* number of channels */ member
|
/drivers/hdf_core/framework/model/audio/usb/include/ |
H A D | audio_usb_linux.h | 99 uint32_t channels; /* # channels */ member
|
/drivers/hdf_core/framework/support/platform/test/unittest/common/ |
H A D | hdf_hdmi_test.cpp | 90 audioAttr.channels = HDMI_AUDIO_FORMAT_CHANNEL_3; in HdmiUserSetAttrCaseTest()
|
/drivers/hdf_core/framework/support/platform/src/hdmi/ |
H A D | hdmi_infoframe.c | 541 /* fill channels. */ in HdmiFillAudioInfoFrame() 545 HDF_LOGI("audio channel %u \n", audioAttr->channels); in HdmiFillAudioInfoFrame() 546 // 2 means the number of channels in HdmiFillAudioInfoFrame() 547 audio->channelCount = (audioAttr->channels >= 2) ? (audioAttr->channels - 1) : 0; in HdmiFillAudioInfoFrame() 561 switch (audioAttr->channels) { in HdmiFillAudioInfoFrame()
|
/drivers/hdf_core/framework/test/unittest/platform/common/ |
H A D | hdmi_test.c | 66 attr.channels = HDMI_AUDIO_FORMAT_CHANNEL_5; in TestHdmiSetAudioAttr()
|
/drivers/peripheral/codec/interfaces/include/ |
H A D | codec_omx_ext.h | 209 uint32_t channels; /** Channels */ member
|