Lines Matching refs:channels

723                                     uint32_t *channels,
728 ALOGV("openOutputStream: devices 0x%x channels %d sampleRate %d",
729 devices, *channels, *sampleRate);
781 alsa_handle.channels = VOIP_DEFAULT_CHANNEL_MODE;
828 err = out->set(format, channels, sampleRate, devices);
852 if (0 == *channels) {
853 alsa_handle.channels = info.AudioBlocksArray[info.nAudioBlocks-1].nChannels;
854 if (alsa_handle.channels > 6) {
855 alsa_handle.channels = 6;
857 *channels = audio_channel_out_mask_from_count(alsa_handle.channels);
859 alsa_handle.channels = AudioSystem::popCount(*channels);
861 alsa_handle.channelMask = *channels;
863 if (6 == alsa_handle.channels) {
877 ALOGD("alsa_handle.channels %d alsa_handle.sampleRate %d",alsa_handle.channels,alsa_handle.sampleRate);
897 ALOGD("channels: %d", AudioSystem::popCount(*channels));
904 err = out->set(format, channels, sampleRate, devices);
921 alsa_handle.channels = DEFAULT_CHANNEL_MODE;
981 err = out->set(format, channels, sampleRate, devices);
1002 uint32_t channels)
1020 alsa_handle.channels = DEFAULT_CHANNEL_MODE;
1094 uint32_t *channels,
1108 ALOGD("openInputStream: devices 0x%x channels %d sampleRate %d", devices, *channels, *sampleRate);
1149 alsa_handle.channels = VOIP_DEFAULT_CHANNEL_MODE;
1191 if(channels)
1192 it->channels = AudioSystem::popCount(*channels);
1200 err = in->set(format, channels, sampleRate, devices);
1217 alsa_handle.channels = VOICE_CHANNEL_MODE;
1227 ALOGD("openInputStream: into incall recording, channels %d", *channels);
1228 mIncallMode = *channels;
1229 if ((*channels & AudioSystem::CHANNEL_IN_VOICE_UPLINK) &&
1230 (*channels & AudioSystem::CHANNEL_IN_VOICE_DNLINK)) {
1239 } else if (*channels & AudioSystem::CHANNEL_IN_VOICE_DNLINK) {
1267 ALOGD("openInputStream: incall recording, channels %d", *channels);
1268 mIncallMode = *channels;
1269 if ((*channels & AudioSystem::CHANNEL_IN_VOICE_UPLINK) &&
1270 (*channels & AudioSystem::CHANNEL_IN_VOICE_DNLINK)) {
1279 } else if (*channels & AudioSystem::CHANNEL_IN_VOICE_DNLINK) {
1310 if(channels) {
1311 it->channels = AudioSystem::popCount((*channels) &
1318 it->channelMask = *channels;
1319 ALOGV("updated channel info: channels=%d channelMask %08x",
1320 it->channels, it->channelMask);
1367 it->bufferSize = getInputBufferSize(it->sampleRate,*format,it->channels);
1374 err = in->set(format, channels, sampleRate, devices);
1454 alsa_handle.channels = DEFAULT_CHANNEL_MODE;
1550 alsa_handle.channels = VOICE_CHANNEL_MODE;