Lines Matching refs:deviceInfo
344 const AudioHotplugThread::DeviceInfo *deviceInfo = mOwnerHAL.getBestDevice(mInputSource); in startInputStream_l() local
345 if (deviceInfo == NULL) { in startInputStream_l()
354 if (requestedChannelCount < deviceInfo->minChannelCount ) { in startInputStream_l()
355 mPcmConfig.channels = deviceInfo->minChannelCount; in startInputStream_l()
356 } else if (requestedChannelCount > deviceInfo->maxChannelCount ) { in startInputStream_l()
357 mPcmConfig.channels = deviceInfo->maxChannelCount; in startInputStream_l()
367 if (chosenSampleRate < deviceInfo->minSampleRate) { in startInputStream_l()
368 chosenSampleRate = deviceInfo->minSampleRate; in startInputStream_l()
369 } else if (chosenSampleRate > deviceInfo->maxSampleRate) { in startInputStream_l()
370 chosenSampleRate = deviceInfo->maxSampleRate; in startInputStream_l()
374 if (deviceInfo->forVoiceRecognition) { in startInputStream_l()
386 struct pcm* pcm = pcm_open(deviceInfo->pcmCard, deviceInfo->pcmDevice, in startInputStream_l()
392 if (deviceInfo->forVoiceRecognition) { in startInputStream_l()
398 mCurrentDeviceInfo = deviceInfo; in startInputStream_l()