Home
last modified time | relevance | path

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

/system/media/audio_utils/
Dresampler.c34 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/
Dalsa_device_profile.c511 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/
Daudio.h1245 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/
Dplaywav.c27 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/
Dbtif_av.c96 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()
Dbtif_media_task.c243 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/
Daudio_a2dp_hw.c373 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()