Lines Matching refs:deviceInfo
316 const AudioHotplugThread::DeviceInfo *deviceInfo = mOwnerHAL.getBestDevice(mInputSource); in startInputStream_l() local
317 if (deviceInfo == NULL) { in startInputStream_l()
326 if (requestedChannelCount < deviceInfo->minChannelCount ) { in startInputStream_l()
327 mPcmConfig.channels = deviceInfo->minChannelCount; in startInputStream_l()
328 } else if (requestedChannelCount > deviceInfo->maxChannelCount ) { in startInputStream_l()
329 mPcmConfig.channels = deviceInfo->maxChannelCount; in startInputStream_l()
339 if (chosenSampleRate < deviceInfo->minSampleRate) { in startInputStream_l()
340 chosenSampleRate = deviceInfo->minSampleRate; in startInputStream_l()
341 } else if (chosenSampleRate > deviceInfo->maxSampleRate) { in startInputStream_l()
342 chosenSampleRate = deviceInfo->maxSampleRate; in startInputStream_l()
346 if (deviceInfo->forVoiceRecognition) { in startInputStream_l()
358 struct pcm* pcm = pcm_open(deviceInfo->pcmCard, deviceInfo->pcmDevice, in startInputStream_l()
364 if (deviceInfo->forVoiceRecognition) { in startInputStream_l()
370 mCurrentDeviceInfo = deviceInfo; in startInputStream_l()