Searched refs:channel_count (Results 1 – 7 of 7) sorted by relevance
/system/media/audio_utils/ |
D | resampler.c | 34 uint32_t channel_count; // number of channels (interleaved) member 105 rsmp->in_buf_size * rsmp->channel_count * sizeof(int16_t)); in resampler_resample_from_provider() 113 memcpy(rsmp->in_buf + rsmp->frames_in * rsmp->channel_count, in resampler_resample_from_provider() 115 buf.frame_count * rsmp->channel_count * sizeof(int16_t)); in resampler_resample_from_provider() 122 if (rsmp->channel_count == 1) { in resampler_resample_from_provider() 133 out + framesWr * rsmp->channel_count, in resampler_resample_from_provider() 144 rsmp->in_buf + inFrames * rsmp->channel_count, in resampler_resample_from_provider() 145 rsmp->frames_in * rsmp->channel_count * sizeof(int16_t)); in resampler_resample_from_provider() 169 if (rsmp->channel_count == 1) { in resampler_resample_from_input() 233 rsmp->channel_count = channelCount; in create_resampler()
|
/system/media/alsa_utils/ |
D | alsa_device_profile.c | 511 unsigned channel_count; in profile_get_channel_count_strs() local 513 (channel_count = profile->channel_counts[index]) != 0; in profile_get_channel_count_strs() 517 if (channel_count < chans_strs_size in profile_get_channel_count_strs() 518 && chans_strs[channel_count] != NULL in profile_get_channel_count_strs() 519 && channel_count < 2 /* positional only for fewer than 2 channels */) { in profile_get_channel_count_strs() 521 if (buffSize - curStrLen < strlen(chans_strs[channel_count]) + 2) { in profile_get_channel_count_strs() 529 curStrLen = strlcat(buffer, chans_strs[channel_count], buffSize); in profile_get_channel_count_strs() 534 if (buffSize - curStrLen < strlen(index_chans_strs[channel_count]) + 2) { in profile_get_channel_count_strs() 542 curStrLen = strlcat(buffer, index_chans_strs[channel_count], buffSize); in profile_get_channel_count_strs()
|
/system/media/audio/include/system/ |
D | audio.h | 1245 uint32_t channel_count) in audio_channel_mask_for_index_assignment_from_count() argument 1247 if (channel_count == 0) { in audio_channel_mask_for_index_assignment_from_count() 1250 if (channel_count > AUDIO_CHANNEL_COUNT_MAX) { in audio_channel_mask_for_index_assignment_from_count() 1253 uint32_t bits = (1 << channel_count) - 1; in audio_channel_mask_for_index_assignment_from_count() 1268 static inline audio_channel_mask_t audio_channel_out_mask_from_count(uint32_t channel_count) in audio_channel_out_mask_from_count() argument 1271 switch (channel_count) { in audio_channel_out_mask_from_count() 1313 static inline audio_channel_mask_t audio_channel_in_mask_from_count(uint32_t channel_count) in audio_channel_in_mask_from_count() argument 1316 switch (channel_count) { in audio_channel_in_mask_from_count() 1332 return audio_channel_mask_for_index_assignment_from_count(channel_count); in audio_channel_in_mask_from_count()
|
/system/extras/sound/ |
D | playwav.c | 27 uint32_t channel_count; member 59 config.channel_count = channels; in pcm_play() 237 cfg.channel_count = hdr.num_channels; in wav_rec()
|
/system/bt/btif/src/ |
D | btif_av.c | 96 int channel_count; member 447 req.channel_count); in btif_av_state_opening_handler() 450 req.sample_rate, req.channel_count); in btif_av_state_opening_handler() 1004 config_req.channel_count = btif_a2dp_get_track_channel_count(sbc_cie.ch_mode); in bte_av_media_callback()
|
D | btif_media_task.c | 243 UINT8 channel_count; member 526 uint8_t channel_count = btif_media_cb.channel_count; in btif_recv_ctrl_data() local 530 UIPC_Send(UIPC_CH_ID_AV_CTRL, 0, &channel_count, 1); in btif_recv_ctrl_data() 1996 btif_media_cb.channel_count = btif_a2dp_get_track_channel_count(sbc_cie.ch_mode); in btif_media_task_aa_handle_decoder_reset()
|
/system/bt/audio_a2dp_hw/ |
D | audio_a2dp_hw.c | 373 uint8_t channel_count; in a2dp_read_audio_config() local 383 if (a2dp_ctrl_receive(common, &channel_count, 1) < 0) in a2dp_read_audio_config() 386 …common->cfg.channel_flags = (channel_count == 1 ? AUDIO_CHANNEL_IN_MONO : AUDIO_CHANNEL_IN_STEREO); in a2dp_read_audio_config()
|