Lines Matching refs:pcm_config
105 struct pcm_config pcm_config_default = {
133 struct pcm_config pcm_config; member
239 out->pcm_config.channels, in start_output_stream()
240 out->pcm_config.rate, in start_output_stream()
241 out->pcm_config.period_size, in start_output_stream()
242 out->pcm_config.period_count, in start_output_stream()
243 out->pcm_config.format); in start_output_stream()
245 out->pcm_config.start_threshold = 0; in start_output_stream()
246 out->pcm_config.stop_threshold = 0; in start_output_stream()
247 out->pcm_config.silence_threshold = 0; in start_output_stream()
260 out->pcm = pcm_open(adev->card, adev->device, PCM_OUT, &out->pcm_config); in start_output_stream()
270 activeChannel = out->pcm_config.channels; in start_output_stream()
272 …ALOGV("Initialized PCM device for channels %d handle = %d",out->pcm_config.channels, (int)activePc… in start_output_stream()
282 return out->pcm_config.rate; in out_get_sample_rate()
299 buf_size = out->pcm_config.period_size * in out_get_buffer_size()
303 buf_size = out->pcm_config.period_size * in out_get_buffer_size()
304 out->pcm_config.period_count * in out_get_buffer_size()
316 out->pcm_config.period_size, in out_get_buffer_size()
550 return (out->pcm_config.period_size * out->pcm_config.period_count * 1000) / in out_get_latency()
572 ALOGV("%s enter for bytes = %d channels = %d",__func__,bytes, out->pcm_config.channels); in out_write()
590 if((!out->pcm) || (activeChannel != out->pcm_config.channels)){ in out_write()
595 if(Get_SinkSupported_format() == out->pcm_config.format){ in out_write()
718 out->pcm_config.channels = popcount(config->channel_mask); in adev_open_output_stream()
719 out->pcm_config.rate = config->sample_rate; in adev_open_output_stream()
720 out->pcm_config.period_size = pcm_config_default.period_size; in adev_open_output_stream()
721 out->pcm_config.period_count = pcm_config_default.period_count; in adev_open_output_stream()
722 out->pcm_config.format = pcm_config_default.format; in adev_open_output_stream()