Home
last modified time | relevance | path

Searched refs:channelCount (Results 1 - 25 of 88) sorted by relevance

1234

/drivers/peripheral/audio/test/systemtest/hdi_service/rk3568/render/src/
H A Daudio_idl_hdirender_hardware_dependence_test.cpp84 EXPECT_EQ(DOUBLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
92 * @tc.desc Test RenderGetFrameSize interface,return 0 if get framesize define channelCount as different values
108 EXPECT_EQ(DOUBLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
116 * @tc.desc Test RenderGetFrameCount interface,return 0 if get framesize define channelCount as different values
132 EXPECT_EQ(DOUBLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
161 EXPECT_EQ(DOUBLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
178 * attrs.channelCount = 1;
197 * attrs.channelCount = 2;
214 EXPECT_EQ(DOUBLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
222 * attrs.channelCount
530 uint32_t channelCount = 5; HWTEST_F() local
[all...]
/drivers/peripheral/audio/test/systemtest/hdi_service/hispark_taurus_standard/capture/src/
H A Daudio_idl_hdicapture_hardware_dependence_test.cpp71 * attrs.channelCount = 1;
86 EXPECT_EQ(SINGLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
94 * attrs.channelCount = 2;
109 EXPECT_EQ(DOUBLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
117 * attrs.channelCount = 1;
132 EXPECT_EQ(SINGLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
140 * attrs.channelCount = 2;
155 EXPECT_EQ(DOUBLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
163 * attrs.channelCount = 1;
178 EXPECT_EQ(SINGLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
435 uint32_t channelCount = 5; HWTEST_F() local
[all...]
/drivers/peripheral/audio/test/systemtest/hdi_service/hispark_taurus_standard/render/src/
H A Daudio_idl_hdirender_hardware_dependence_test.cpp83 EXPECT_EQ(DOUBLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
108 EXPECT_EQ(SINGLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
116 * @tc.desc Test RenderGetFrameSize interface,return 0 if get framesize define channelCount as different values
132 EXPECT_EQ(DOUBLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
156 EXPECT_EQ(SINGLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
164 * @tc.desc Test RenderGetFrameCount interface,return 0 if get framesize define channelCount as different values
180 EXPECT_EQ(DOUBLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
209 EXPECT_EQ(DOUBLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
222 * @tc.desc Test RenderGetFrameCount interface,return 0 if get framesize define channelCount to different values
238 EXPECT_EQ(SINGLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
[all...]
/drivers/peripheral/audio/test/systemtest/hdi_service/rk3568/capture/src/
H A Daudio_idl_hdicapture_hardware_dependence_test.cpp72 * attrs.channelCount = 1;
91 * attrs.channelCount = 2;
106 EXPECT_EQ(DOUBLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
114 * attrs.channelCount = 1;
133 * attrs.channelCount = 2;
148 EXPECT_EQ(DOUBLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
156 * attrs.channelCount = 1;
175 * attrs.channelCount = 2;
190 EXPECT_EQ(DOUBLE_CHANNEL_COUNT, attrsValue.channelCount); in HWTEST_F()
198 * attrs.channelCount
408 uint32_t channelCount = 5; HWTEST_F() local
[all...]
/drivers/peripheral/audio/hdi_service/primary_impl/vdi_src/
H A Daudio_common_vdi.c54 vdiAttrs->channelCount = attrs->channelCount; in AudioCommonAttrsToVdiAttrsVdi()
67 vdiAttrs->offloadInfo.channelCount = attrs->offloadInfo.channelCount; in AudioCommonAttrsToVdiAttrsVdi()
237 portCap->channelCount = vdiPortCap->channelCount; in AudioCommonVdiPortCapToPortCapVdi()
442 vdiAttrs->channelCount = attrs->channelCount; in AudioCommonSampleAttrToVdiSampleAttrVdi()
455 vdiAttrs->offloadInfo.channelCount = attrs->offloadInfo.channelCount; in AudioCommonSampleAttrToVdiSampleAttrVdi()
[all...]
/drivers/peripheral/audio/test/unittest/common/render/
H A Daudio_render_offload_test.cpp58 attrs.channelCount = AUDIO_RENDER_CHANNELCOUNT; in InitRenderAttrs()
67 attrs.startThreshold = DEEP_BUFFER_RENDER_PERIOD_SIZE / (attrs.format * attrs.channelCount); in InitRenderAttrs()
73 attrs.offloadInfo.channelCount = AUDIO_RENDER_CHANNELCOUNT; in InitRenderAttrs()
H A Daudio_render_multchannel_test.cpp56 attrs.channelCount = AUDIO_RENDER_CHANNELCOUNT; in InitRenderAttrs()
64 attrs.startThreshold = DEEP_BUFFER_RENDER_PERIOD_SIZE / (attrs.format * attrs.channelCount); in InitRenderAttrs()
/drivers/peripheral/bluetooth/hci/hdi_service/implement/
H A Dvendor_interface.cpp61 int channelCount = vendorInterface_->op(BtOpcodeT::BT_OP_HCI_CHANNEL_OPEN, channel); in WatchHciChannel() local
62 if (channelCount < 1 || channelCount > HCI_MAX_CHANNEL) { in WatchHciChannel()
63 HDF_LOGE("vendorInterface_->op BT_OP_HCI_CHANNEL_OPEN failed ret:%d.", channelCount); in WatchHciChannel()
68 if (channelCount == 1) { in WatchHciChannel()
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
H A Daudio_render.cpp36 uint32_t frameSize = frameRenderMode->attrs.channelCount * (formatBits >> 3); // Bit to byte >> 3 in PcmBytesToFrames()
166 uint32_t channelCount = hwRender->renderParam.frameRenderMode.attrs.channelCount; in AudioRenderGetFrameSize() local
173 *size = FRAME_SIZE * channelCount * (formatBits >> shift); in AudioRenderGetFrameSize()
201 attrs->channelCount = hwRender->renderParam.frameRenderMode.attrs.channelCount; in AudioRenderGetSampleAttributes()
221 *channelId = hwRender->renderParam.frameRenderMode.attrs.channelCount; in AudioRenderGetCurrentChannelId()
421 render->renderParam.frameRenderMode.attrs.channelCount = mExtraParams.channels; in SetValue()
480 &render->renderParam.frameRenderMode.attrs.channelCount); in AudioRenderGetExtraParams()
H A Dfast_audio_render.cpp48 return OHOS::Bluetooth::FastStartPlaying(attrs->sampleRate, attrs->channelCount, format); in FastRenderStart()
83 return OHOS::Bluetooth::FastStartPlaying(attrs->sampleRate, attrs->channelCount, format); in FastRenderResume()
310 int32_t ashmemLength = realSize * static_cast<int32_t>(attr.channelCount) * attr.format; in FastRenderReqMmapBuffer()
H A Daudio_bluetooth_manager.cpp272 int FastStartPlaying(uint32_t sampleRate, uint32_t channelCount, uint32_t format) in FastStartPlaying() argument
277 if (!fastStartPlayingFunc(sampleRate, channelCount, format)) { in FastStartPlaying()
330 if (!startPlayingFunc(attrs->sampleRate, attrs->channelCount, static_cast<uint32_t>(attrs->format))) { in WriteFrame()
/drivers/peripheral/audio/test/systemtest/common/hdi_service_common/src/
H A Dhdi_service_common.cpp39 attrs.channelCount = CHANNELCOUNT; in InitAttrs()
47 attrs.startThreshold = DEEP_BUFFER_RENDER_PERIOD_SIZE / (attrs.format * attrs.channelCount / MOVE_LEFT_NUM); in InitAttrs()
52 attrs.channelCount = CHANNELCOUNT; in InitAttrs()
60 attrs.startThreshold = DEEP_BUFFER_RENDER_PERIOD_SIZE / (attrs.format * attrs.channelCount / MOVE_LEFT_NUM); in InitAttrs()
71 attrs.channelCount = CHANNELCOUNT; in InitOffloadAttrs()
79 attrs.startThreshold = DEEP_BUFFER_RENDER_PERIOD_SIZE / (PCM_16_BIT * attrs.channelCount / MOVE_LEFT_NUM); in InitOffloadAttrs()
86 attrs.offloadInfo.channelCount = CHANNELCOUNT; in InitOffloadAttrs()
91 int32_t InitAttrsUpdate(struct AudioSampleAttributes &attrs, int format, uint32_t channelCount, in InitAttrsUpdate() argument
97 attrs.channelCount = channelCount; in InitAttrsUpdate()
[all...]
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/include/
H A Dbluetooth_audio_device.h36 typedef bool (*StartPlayingFunc)(uint32_t sampleRate, uint32_t channelCount, uint32_t format);
H A Daudio_bluetooth_manager.h51 int FastStartPlaying(uint32_t sampleRate, uint32_t channelCount, uint32_t format);
/drivers/peripheral/bluetooth/audio/interfaces/include/
H A Daudio_types.h184 uint32_t channelCount; /**< Number of audio channels. For example, for the mono channel, the value is 1, member
238 uint32_t channelCount; /**< Supported maximum number of audio channels */ member
/drivers/peripheral/distributed_audio/interface/audio/v1_0/
H A Dtypes.h80 uint32_t channelCount; member
106 uint32_t channelCount; member
/drivers/peripheral/audio/interfaces/sound/v1_0/
H A Daudio_types_vdi.h302 uint32_t channelCount; member
340 uint32_t channelCount; member
375 uint32_t channelCount; member
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/src/
H A Daudio_capture_ext_impl.cpp93 (void)devAttrs_.channelCount; in CaptureFrame()
308 ashmemLength_ = realSize * static_cast<int32_t>(devAttrs_.channelCount) * devAttrs_.format; in ReqMmapBuffer()
317 lengthPerTrans_ = desc.transferFrameSize * static_cast<int32_t>(devAttrs_.channelCount) * devAttrs_.format; in ReqMmapBuffer()
390 devAttrs_.frameSize = CalculateFrameSize(attrs.sampleRate, attrs.channelCount, attrs.format, timeInterval_, true); in SetAttrs()
H A Daudio_capture_interface_impl.cpp43 devAttrs_.frameSize = CalculateFrameSize(attrs.sampleRate, attrs.channelCount, attrs.format, in AudioCaptureInterfaceImpl()
45 const int32_t sizePerSec = static_cast<int32_t>(attrs.sampleRate * attrs.channelCount) *attrs.format; in AudioCaptureInterfaceImpl()
71 DHLOGD("Capture frame[sampleRate:%{public}d, channelCount: %{public}d, format: %{public}d, frameSize: %{public}d].", in CaptureFrame()
72 devAttrs_.sampleRate, devAttrs_.channelCount, devAttrs_.format, devAttrs_.frameSize); in CaptureFrame()
/drivers/peripheral/audio/test/fuzztest/common/src/
H A Daudio_adm_fuzzer_common.cpp43 attrs.channelCount = CHANNELCOUNT; in InitAttrs()
51 attrs.startThreshold = DEEP_BUFFER_RENDER_PERIOD_SIZE / (PCM_16_BIT * attrs.channelCount / MOVE_LEFT_NUM); in InitAttrs()
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/test/fuzztest/createcapture_fuzzer/
H A Dcreatecapture_fuzzer.cpp50 .channelCount = *(reinterpret_cast<const uint32_t*>(data)), in CreateCaptureFuzzTest()
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/test/fuzztest/createrender_fuzzer/
H A Dcreaterender_fuzzer.cpp50 .channelCount = *(reinterpret_cast<const uint32_t*>(data)), in CreateRenderFuzzTest()
/drivers/peripheral/audio/test/systemtest/common/hdi_common/src/
H A Daudio_hdi_common.cpp68 attrs.channelCount = CHANNELCOUNT; in InitAttrs()
75 attrs.startThreshold = DEEP_BUFFER_RENDER_PERIOD_SIZE / (PCM_16_BIT * attrs.channelCount / MOVE_LEFT_NUM); in InitAttrs()
84 attrs.channelCount = AUDIO_CHANNELCOUNT; in InitAttrsRender()
94 attrs.channelCount = AUDIO_CAPTURE_CHANNELCOUNT; in InitAttrsCapture()
98 void InitAttrsUpdate(struct AudioSampleAttributes &attrs, int format, uint32_t channelCount, in InitAttrsUpdate() argument
108 attrs.channelCount = channelCount; in InitAttrsUpdate()
207 if (attrs.channelCount < MONO_CHANNEL || attrs.channelCount > SREREO_CHANNEL) { in PcmFramesToBytes()
214 uint32_t ret = FRAME_SIZE * (attrs.channelCount) * (formatBit in PcmFramesToBytes()
[all...]
/drivers/peripheral/codec/interfaces/include/
H A Dcodec_component_type.h137 int32_t channelCount[CHANNEL_NUM]; /** Supported audio channels. */ member
/drivers/peripheral/audio/hdi_service/primary_impl/src/
H A Daudio_render.c65 /* channelCount Not greater than 4 , formatBits Not greater than 64 */ in PcmBytesToFrames()
66 if (frameRenderMode->attrs.channelCount > 4 || formatBits > 64) { in PcmBytesToFrames()
67 AUDIO_FUNC_LOGE("channelCount or formatBits error!"); in PcmBytesToFrames()
71 uint32_t frameSize = frameRenderMode->attrs.channelCount * (formatBits >> 3); // Bit to byte >> 3 in PcmBytesToFrames()
281 uint32_t channelCount = hwRender->renderParam.frameRenderMode.attrs.channelCount; in AudioRenderGetFrameSize() local
289 *size = FRAME_SIZE * channelCount * (formatBits >> BITS_TO_FROMAT); in AudioRenderGetFrameSize()
350 attrs->channelCount = hwRender->renderParam.frameRenderMode.attrs.channelCount; in AudioRenderGetSampleAttributes()
371 *channelId = hwRender->renderParam.frameRenderMode.attrs.channelCount; in AudioRenderGetCurrentChannelId()
[all...]

Completed in 16 milliseconds

1234