Lines Matching defs:config
1229 audio_config_t config, proposed;
1238 // Note: config is currently a const parameter for get_input_buffer_size()
1239 // but we use a copy from proposed in case config changes from the call.
1240 config = proposed;
1241 frames = dev->get_input_buffer_size(dev, &config);
1243 break; // hal success, config is the result
1259 if (frames > 0 && config.sample_rate != sampleRate) {
1260 frames = destinationFramesPossible(frames, sampleRate, config.sample_rate);
1334 // the config change is always sent from playback or record threads to avoid deadlock
1819 audio_config_t *config,
1847 //config->format = AUDIO_FORMAT_PCM_FLOAT;
1848 //config->format = AUDIO_FORMAT_PCM_24_BIT_PACKED;
1849 //config->format = AUDIO_FORMAT_PCM_32_BIT;
1850 //config->format = AUDIO_FORMAT_PCM_8_24_BIT;
1851 // ALOGV("openOutput_l() upgrading format to %#08x", config->format);
1855 //config->channel_mask = audio_channel_out_mask_from_count(4); // for USB 4ch
1856 //config->channel_mask = audio_channel_mask_from_representation_and_bits(
1867 config,
1879 || !isValidPcmSinkFormat(config->format)
1880 || !isValidPcmSinkChannelMask(config->channel_mask)) {
1896 audio_config_t *config,
1905 config->sample_rate,
1906 config->format,
1907 config->channel_mask,
1916 sp<PlaybackThread> thread = openOutput_l(module, output, config, *devices, address, flags);
2070 audio_config_t *config,
2082 sp<RecordThread> thread = openInput_l(module, input, config, *devices, address, source, flags);
2094 audio_config_t *config,
2120 audio_config_t halconfig = *config;
2137 audio_is_linear_pcm(config->format) &&
2139 (halconfig.sample_rate <= AUDIO_RESAMPLER_DOWN_RATIO_MAX * config->sample_rate) &&
2141 (audio_channel_count_from_in_mask(config->channel_mask) <= FCC_8)) {