Searched refs:rate (Results 1 – 7 of 7) sorted by relevance
/system/media/alsa_utils/ |
D | alsa_device_proxy.c | 56 proxy->alsa_config.rate = in proxy_prepare() 57 config->rate != 0 && profile_is_sample_rate_valid(profile, config->rate) in proxy_prepare() 58 ? config->rate : profile->default_config.rate; in proxy_prepare() 65 profile_get_period_size(proxy->profile, proxy->alsa_config.rate); in proxy_prepare() 127 return proxy->alsa_config.rate; in proxy_get_sample_rate()
|
D | alsa_device_profile.c | 143 bool profile_is_sample_rate_valid(alsa_device_profile* profile, unsigned rate) in profile_is_sample_rate_valid() argument 148 if (profile->sample_rates[index] == rate) { in profile_is_sample_rate_valid() 155 return rate == DEFAULT_SAMPLE_RATE; in profile_is_sample_rate_valid() 202 static bool profile_test_sample_rate(alsa_device_profile* profile, unsigned rate) in profile_test_sample_rate() argument 205 config.rate = rate; in profile_test_sample_rate() 335 config->rate = pcm_params_get_min(alsa_hw_params, PCM_PARAM_RATE); in read_alsa_device_config() 336 config->period_size = profile_calc_min_period_size(profile, config->rate); in read_alsa_device_config() 360 profile->default_config.channels, profile->default_config.rate, in profile_read_device_info()
|
D | alsa_logging.c | 106 ALOGV(" rate:%d", config->rate); in log_pcm_config()
|
/system/extras/sound/ |
D | playwav.c | 38 int pcm_play(unsigned rate, unsigned channels, in pcm_play() argument 60 config.sample_rate = rate; in pcm_play() 137 void play_file(unsigned rate, unsigned channels, in play_file() argument 150 pcm_play(rate, channels, fill_buffer, 0); in play_file() 156 unsigned rate, channels; in wav_play() local 193 int wav_rec(const char *fn, unsigned channels, unsigned rate) in wav_rec() argument 210 hdr.sample_rate = rate; in wav_rec() 336 unsigned rate = 44100; in main() local 356 rate = atoi(argv[0]); in main() 376 return wav_rec(fn, channels, rate); in main()
|
/system/bt/audio_a2dp_hw/ |
D | audio_a2dp_hw.c | 91 uint32_t rate; member 191 return bytes*(1000000/(chan_count*2))/cfg.rate; in calc_audiotime() 390 common->cfg.rate = sample_rate; in a2dp_read_audio_config() 392 INFO("got config %d %d", common->cfg.format, common->cfg.rate); in a2dp_read_audio_config() 618 DEBUG("rate %" PRIu32,out->common.cfg.rate); in out_get_sample_rate() 620 return out->common.cfg.rate; in out_get_sample_rate() 623 static int out_set_sample_rate(struct audio_stream *stream, uint32_t rate) in out_set_sample_rate() argument 627 DEBUG("out_set_sample_rate : %" PRIu32, rate); in out_set_sample_rate() 629 if (rate != AUDIO_STREAM_DEFAULT_RATE) in out_set_sample_rate() 635 out->common.cfg.rate = rate; in out_set_sample_rate() [all …]
|
/system/media/alsa_utils/include/ |
D | alsa_device_profile.h | 76 bool profile_is_sample_rate_valid(alsa_device_profile* profile, unsigned rate);
|
/system/bt/btif/src/ |
D | btif_media_task.c | 618 UINT16 rate = DEFAULT_SBC_BITRATE; in btif_media_task_get_sbc_rate() local 623 rate = BTIF_A2DP_NON_EDR_MAX_RATE; in btif_media_task_get_sbc_rate() 624 APPL_TRACE_DEBUG("non-edr a2dp sink detected, restrict rate to %d", rate); in btif_media_task_get_sbc_rate() 627 return rate; in btif_media_task_get_sbc_rate()
|