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.c533 unsigned channel_count; in profile_get_channel_count_strs() local
535 (channel_count = profile->channel_counts[index]) != 0; in profile_get_channel_count_strs()
539 if (channel_count < chans_strs_size in profile_get_channel_count_strs()
540 && chans_strs[channel_count] != NULL in profile_get_channel_count_strs()
541 && channel_count < 2 /* positional only for fewer than 2 channels */) { in profile_get_channel_count_strs()
543 if (buffSize - curStrLen < strlen(chans_strs[channel_count]) + 2) { in profile_get_channel_count_strs()
551 curStrLen = strlcat(buffer, chans_strs[channel_count], buffSize); in profile_get_channel_count_strs()
556 if (buffSize - curStrLen < strlen(index_chans_strs[channel_count]) + 2) { in profile_get_channel_count_strs()
564 curStrLen = strlcat(buffer, index_chans_strs[channel_count], buffSize); in profile_get_channel_count_strs()
/system/media/audio/include/system/
Daudio.h1321 uint32_t channel_count) in audio_channel_mask_for_index_assignment_from_count() argument
1323 if (channel_count == 0) { in audio_channel_mask_for_index_assignment_from_count()
1326 if (channel_count > AUDIO_CHANNEL_COUNT_MAX) { in audio_channel_mask_for_index_assignment_from_count()
1329 uint32_t bits = (1 << channel_count) - 1; in audio_channel_mask_for_index_assignment_from_count()
1344 static inline audio_channel_mask_t audio_channel_out_mask_from_count(uint32_t channel_count) in audio_channel_out_mask_from_count() argument
1347 switch (channel_count) { in audio_channel_out_mask_from_count()
1389 static inline audio_channel_mask_t audio_channel_in_mask_from_count(uint32_t channel_count) in audio_channel_in_mask_from_count() argument
1392 switch (channel_count) { in audio_channel_in_mask_from_count()
1408 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.c88 int channel_count; member
386 req.channel_count); in btif_av_state_idle_handler()
389 req.sample_rate, req.channel_count); in btif_av_state_idle_handler()
561 req.channel_count); in btif_av_state_opening_handler()
564 req.sample_rate, req.channel_count); in btif_av_state_opening_handler()
1156 config_req.channel_count = btif_a2dp_get_track_channel_count(sbc_cie.ch_mode); in bte_av_media_callback()
Dbtif_media_task.c330 UINT8 channel_count; member
675 uint8_t channel_count = btif_media_cb.channel_count; in btif_recv_ctrl_data() local
679 UIPC_Send(UIPC_CH_ID_AV_CTRL, 0, &channel_count, 1); in btif_recv_ctrl_data()
2261 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.c421 uint8_t channel_count; in a2dp_read_audio_config() local
431 if (a2dp_ctrl_receive(common, &channel_count, 1) < 0) in a2dp_read_audio_config()
434 …common->cfg.channel_flags = (channel_count == 1 ? AUDIO_CHANNEL_IN_MONO : AUDIO_CHANNEL_IN_STEREO); in a2dp_read_audio_config()