Home
last modified time | relevance | path

Searched refs:channel_count (Results 1 – 25 of 60) sorted by relevance

123

/aosp12/hardware/qcom/audio/hal/audio_extn/
H A Dusb.c71 unsigned int channel_count; member
728 if (dev_info->channel_count== stream_ch) { in usb_get_best_match_for_channels()
729 *channel_count = dev_info->channel_count; in usb_get_best_match_for_channels()
741 candidate = dev_info->channel_count; in usb_get_best_match_for_channels()
745 candidate = dev_info->channel_count; in usb_get_best_match_for_channels()
750 *channel_count = candidate; in usb_get_best_match_for_channels()
826 (dev_info->channel_count != channel_count) || in usb_get_best_match_for_sample_rate()
882 *channel_count = 2; in usb_audio_backend_apply_policy()
1275 ch = dev_info->channel_count; in audio_extn_usb_altset_for_service_interval()
1278 ch = dev_info->channel_count; in audio_extn_usb_altset_for_service_interval()
[all …]
/aosp12/system/media/audio_utils/
H A Dresampler.c35 uint32_t channel_count; // number of channels (interleaved) member
106 rsmp->in_buf_size * rsmp->channel_count * sizeof(int16_t)); in resampler_resample_from_provider()
114 memcpy(rsmp->in_buf + rsmp->frames_in * rsmp->channel_count, in resampler_resample_from_provider()
116 buf.frame_count * rsmp->channel_count * sizeof(int16_t)); in resampler_resample_from_provider()
123 if (rsmp->channel_count == 1) { in resampler_resample_from_provider()
134 out + framesWr * rsmp->channel_count, in resampler_resample_from_provider()
145 rsmp->in_buf + inFrames * rsmp->channel_count, in resampler_resample_from_provider()
146 rsmp->frames_in * rsmp->channel_count * sizeof(int16_t)); in resampler_resample_from_provider()
170 if (rsmp->channel_count == 1) { in resampler_resample_from_input()
234 rsmp->channel_count = channelCount; in create_resampler()
H A DPowerLog.cpp254 uint32_t channel_count, audio_format_t format, size_t entries, size_t frames_per_entry) in power_log_create() argument
261 PowerLog(sample_rate, channel_count, format, entries, frames_per_entry)); in power_log_create()
/aosp12/system/media/alsa_utils/
H A Dalsa_device_profile.c623 unsigned channel_count; in profile_get_channel_count_strs() local
625 (channel_count = profile->channel_counts[index]) != 0; in profile_get_channel_count_strs()
628 if (channel_count > FCC_LIMIT) continue; in profile_get_channel_count_strs()
631 if (channel_count < chans_strs_size in profile_get_channel_count_strs()
632 && chans_strs[channel_count] != NULL in profile_get_channel_count_strs()
633 && channel_count < 2 /* positional only for fewer than 2 channels */) { in profile_get_channel_count_strs()
635 if (buffSize - curStrLen < strlen(chans_strs[channel_count]) + 2) { in profile_get_channel_count_strs()
643 curStrLen = strlcat(buffer, chans_strs[channel_count], buffSize); in profile_get_channel_count_strs()
648 if (buffSize - curStrLen < strlen(index_chans_strs[channel_count]) + 2) { in profile_get_channel_count_strs()
656 curStrLen = strlcat(buffer, index_chans_strs[channel_count], buffSize); in profile_get_channel_count_strs()
/aosp12/system/bt/btif/src/
H A Dbtif_a2dp_sink.cc91 channel_count(0), in BtifA2dpSinkControlBlock()
109 channel_count = 0; in Reset()
119 tA2DP_CHANNEL_COUNT channel_count; member in BtifA2dpSinkControlBlock
348 return btif_a2dp_sink_cb.channel_count; in btif_a2dp_sink_get_channel_count()
607 int channel_count = A2DP_GetTrackChannelCount(p_buf->codec_info); in btif_a2dp_sink_decoder_update_event() local
608 if (channel_count == -1) { in btif_a2dp_sink_decoder_update_event()
619 btif_a2dp_sink_cb.channel_count = channel_count; in btif_a2dp_sink_decoder_update_event()
643 BtifAvrcpAudioTrackCreate(sample_rate, bits_per_sample, channel_count); in btif_a2dp_sink_decoder_update_event()
/aosp12/system/bt/service/test/
H A Da2dp_sink_unittest.cc53 uint8_t channel_count = 0; member
70 uint8_t channel_count) override { in OnAudioConfig() argument
74 audio_config_.channel_count = channel_count; in OnAudioConfig()
265 EXPECT_EQ(kChannelCount, delegate.audio_config().channel_count); in TEST_F()
/aosp12/system/bt/stack/a2dp/
H A Da2dp_aac_encoder.cc219 p_feeding_params->channel_count = A2DP_GetTrackChannelCountAac(p_codec_info); in a2dp_aac_encoder_update()
222 p_feeding_params->channel_count); in a2dp_aac_encoder_update()
509 a2dp_aac_encoder_cb.feeding_params.channel_count * in a2dp_aac_feeding_reset()
553 a2dp_aac_encoder_cb.feeding_params.channel_count * in a2dp_aac_get_num_frame_iteration()
586 p_feeding_params->channel_count * in a2dp_aac_encode_frames()
619 p_encoder_params->frame_length * p_feeding_params->channel_count; in a2dp_aac_encode_frames()
670 p_feeding_params->channel_count * in a2dp_aac_encode_frames()
707 a2dp_aac_encoder_cb.feeding_params.channel_count * in a2dp_aac_read_feeding()
H A Da2dp_vendor_ldac_encoder.cc381 p_feeding_params->channel_count = in a2dp_vendor_ldac_encoder_update()
385 p_feeding_params->channel_count); in a2dp_vendor_ldac_encoder_update()
522 a2dp_ldac_encoder_cb.feeding_params.channel_count * in a2dp_vendor_ldac_feeding_reset()
578 a2dp_ldac_encoder_cb.feeding_params.channel_count * in a2dp_ldac_get_num_frame_iteration()
681 a2dp_ldac_encoder_cb.feeding_params.channel_count * in a2dp_ldac_encode_frames()
716 a2dp_ldac_encoder_cb.feeding_params.channel_count * in a2dp_ldac_read_feeding()
H A Da2dp_sbc_encoder.cc218 p_feeding_params->channel_count = A2DP_GetTrackChannelCountSbc(p_codec_info); in a2dp_sbc_encoder_update()
221 p_feeding_params->channel_count); in a2dp_sbc_encoder_update()
382 a2dp_sbc_encoder_cb.feeding_params.channel_count * in a2dp_sbc_feeding_reset()
427 a2dp_sbc_encoder_cb.feeding_params.channel_count * in a2dp_sbc_get_num_frame_iteration()
557 a2dp_sbc_encoder_cb.feeding_params.channel_count * in a2dp_sbc_encode_frames()
688 read_size *= a2dp_sbc_encoder_cb.feeding_params.channel_count; in a2dp_sbc_read_feeding()
710 a2dp_sbc_encoder_cb.feeding_params.channel_count); in a2dp_sbc_read_feeding()
H A Da2dp_vendor_aptx_hd_encoder.cc261 p_feeding_params->channel_count = in a2dp_vendor_aptx_hd_encoder_update()
265 p_feeding_params->channel_count); in a2dp_vendor_aptx_hd_encoder_update()
423 a2dp_aptx_hd_encoder_cb.feeding_params.channel_count) / in a2dp_vendor_aptx_hd_send_frames()
H A Da2dp_vendor_aptx_encoder.cc260 p_feeding_params->channel_count = in a2dp_vendor_aptx_encoder_update()
264 p_feeding_params->channel_count); in a2dp_vendor_aptx_encoder_update()
434 (pcm_bytes_encoded / a2dp_aptx_encoder_cb.feeding_params.channel_count) / in a2dp_vendor_aptx_send_frames()
/aosp12/system/media/audio/include/system/
H A Daudio.h1510 uint32_t channel_count)
1512 if (channel_count == 0) {
1515 if (channel_count > AUDIO_CHANNEL_COUNT_MAX) {
1518 uint32_t bits = (1 << channel_count) - 1;
1536 switch (channel_count) {
1586 switch (channel_count) {
1596 if (channel_count <= FCC_LIMIT) {
1597 return audio_channel_mask_for_index_assignment_from_count(channel_count);
1607 static inline audio_channel_mask_t haptic_channel_mask_from_count(uint32_t channel_count)
1609 switch(channel_count) {
[all …]
/aosp12/system/bt/service/
H A Da2dp_sink.h43 uint32_t sample_rate, uint8_t channel_count) = 0;
78 uint8_t channel_count) override;
H A Da2dp_sink.cc133 uint8_t channel_count) { in AudioConfigCallback() argument
137 delegate_->OnAudioConfig(device_address, sample_rate, channel_count); in AudioConfigCallback()
/aosp12/system/bt/service/hal/
H A Dbluetooth_av_interface.cc122 uint8_t channel_count) { in SinkAudioConfigCallback() argument
127 channel_count); in SinkAudioConfigCallback()
338 uint32_t sample_rate, uint8_t channel_count) { in AudioConfigCallback() argument
H A Dfake_bluetooth_av_interface.cc151 uint8_t channel_count) { in NotifyAudioConfig() argument
153 observer.AudioConfigCallback(this, bda, sample_rate, channel_count); in NotifyAudioConfig()
/aosp12/system/extras/sound/
H A Dplaywav.c27 uint32_t channel_count; member
61 config.channel_count = channels; in pcm_play()
237 cfg.channel_count = hdr.num_channels; in wav_rec()
/aosp12/hardware/libhardware/modules/usbaudio/
H A Daudio_hal.c433 unsigned int channel_count = 0; in populate_channel_mask_from_profile() local
435 (channel_count = profile->channel_counts[i]) != 0 && in populate_channel_mask_from_profile()
437 if (channel_count < channel_masks_size && in populate_channel_mask_from_profile()
438 channel_masks_map[channel_count] != AUDIO_CHANNEL_NONE) { in populate_channel_mask_from_profile()
439 channel_masks[num_channel_masks++] = channel_masks_map[channel_count]; in populate_channel_mask_from_profile()
444 if (channel_count < CHANNEL_INDEX_MASKS_SIZE && in populate_channel_mask_from_profile()
445 CHANNEL_INDEX_MASKS_MAP[channel_count] != AUDIO_CHANNEL_NONE) { in populate_channel_mask_from_profile()
1429 unsigned channel_count = proxy_get_channel_count(&device_info->proxy); in adev_open_input_stream() local
1430 config->channel_mask = channel_count <= FCC_2 in adev_open_input_stream()
1431 ? audio_channel_in_mask_from_count(channel_count) in adev_open_input_stream()
[all …]
/aosp12/system/bt/service/common/android/bluetooth/
H A DIBluetoothA2dpSinkCallback.aidl23 void OnAudioConfig(String device_address, int sample_rate, int channel_count); in OnAudioConfig() argument
/aosp12/system/bt/service/ipc/binder/
H A Dbluetooth_a2dp_sink_binder_server.cc179 uint8_t channel_count) { in OnAudioConfig() argument
188 channel_count); in OnAudioConfig()
/aosp12/hardware/qcom/audio/hal/
H A Daudio_hw.c1350 int channel_count; in read_usb_sup_channel_masks() local
1360 for (channel_count = FCC_2; in read_usb_sup_channel_masks()
1362 ++channel_count) { in read_usb_sup_channel_masks()
1368 channel_count = MIN_CHANNEL_COUNT; in read_usb_sup_channel_masks()
1371 for ( ; channel_count <= channels && num_masks < max_masks; channel_count++) { in read_usb_sup_channel_masks()
1373 if (channel_count <= FCC_2) { in read_usb_sup_channel_masks()
2673 if ((channel_count < MIN_CHANNEL_COUNT) || (channel_count > max_channel_count)) { in check_input_parameters()
5926 channel_count, in adev_get_input_buffer_size()
5978 int channel_count; in adev_open_input_stream() local
6188 channel_count == 1) { in adev_open_input_stream()
[all …]
H A Dplatform_api.h52 size_t channel_count; member
108 int platform_set_hdmi_channels(void *platform, int channel_count);
/aosp12/packages/apps/Bluetooth/jni/
H A Dcom_android_bluetooth_a2dp_sink.cpp75 uint8_t channel_count) { in bta2dp_audio_config_callback() argument
91 (jint)channel_count); in bta2dp_audio_config_callback()
/aosp12/hardware/qcom/audio/hal/msm8974/
H A Dplatform.c3480 channel_count == 2) { in platform_get_input_snd_device()
3483 channel_count == 1) { in platform_get_input_snd_device()
3493 channel_count == 2) { in platform_get_input_snd_device()
3496 channel_count == 1) { in platform_get_input_snd_device()
3537 channel_count == 2) { in platform_get_input_snd_device()
3540 channel_count == 1) { in platform_get_input_snd_device()
3585 switch (channel_count) { in platform_set_hdmi_channels()
3619 int channel_count; in platform_edid_get_max_channels() local
3656 channel_count = (sad[0] & 0x7) + 1; in platform_edid_get_max_channels()
3657 if (channel_count > max_channels) in platform_edid_get_max_channels()
[all …]
/aosp12/hardware/qcom/audio/hal/msm8916/
H A Dplatform.c2200 int channel_count = audio_channel_count_from_in_mask(channel_mask); local
2285 channel_count == 2)
2292 if (channel_count == 2) {
2330 channel_count == 2)
2368 if (channel_count > 1)
2403 int platform_set_hdmi_channels(void *platform, int channel_count)
2410 switch (channel_count) {
2444 int channel_count; local
2481 channel_count = (sad[0] & 0x7) + 1;
2482 if (channel_count > max_channels)
[all …]

123