• Home
  • Raw
  • Download

Lines Matching refs:alsa_handle

760          alsa_handle_t alsa_handle;  in openOutputStream()
773 alsa_handle.module = mALSADevice; in openOutputStream()
774 alsa_handle.bufferSize = bufferSize; in openOutputStream()
775 alsa_handle.devices = devices; in openOutputStream()
776 alsa_handle.handle = 0; in openOutputStream()
778 alsa_handle.format = SNDRV_PCM_FORMAT_S16_LE; in openOutputStream()
780 alsa_handle.format = *format; in openOutputStream()
781 alsa_handle.channels = VOIP_DEFAULT_CHANNEL_MODE; in openOutputStream()
782 alsa_handle.channelMask = AUDIO_CHANNEL_IN_MONO; in openOutputStream()
783 alsa_handle.sampleRate = *sampleRate; in openOutputStream()
784 alsa_handle.latency = VOIP_PLAYBACK_LATENCY; in openOutputStream()
785 alsa_handle.rxHandle = 0; in openOutputStream()
786 alsa_handle.ucMgr = mUcMgr; in openOutputStream()
791 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_IP_VOICECALL, sizeof(alsa_handle.useCase)); in openOutputStream()
793 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_VOIP, sizeof(alsa_handle.useCase)); in openOutputStream()
796 mDeviceList.push_back(alsa_handle); in openOutputStream()
805 alsa_handle.devices = AudioSystem::DEVICE_OUT_PROXY; in openOutputStream()
840 alsa_handle_t alsa_handle; in openOutputStream() local
843 alsa_handle.module = mALSADevice; in openOutputStream()
844 alsa_handle.devices = devices; in openOutputStream()
845 alsa_handle.handle = 0; in openOutputStream()
846 alsa_handle.format = SNDRV_PCM_FORMAT_S16_LE; in openOutputStream()
853 alsa_handle.channels = info.AudioBlocksArray[info.nAudioBlocks-1].nChannels; in openOutputStream()
854 if (alsa_handle.channels > 6) { in openOutputStream()
855 alsa_handle.channels = 6; in openOutputStream()
857 *channels = audio_channel_out_mask_from_count(alsa_handle.channels); in openOutputStream()
859 alsa_handle.channels = AudioSystem::popCount(*channels); in openOutputStream()
861 alsa_handle.channelMask = *channels; in openOutputStream()
863 if (6 == alsa_handle.channels) { in openOutputStream()
864 alsa_handle.bufferSize = DEFAULT_MULTI_CHANNEL_BUF_SIZE; in openOutputStream()
866 alsa_handle.bufferSize = DEFAULT_BUFFER_SIZE; in openOutputStream()
869 alsa_handle.sampleRate = info.AudioBlocksArray[info.nAudioBlocks-1].nSamplingFreq; in openOutputStream()
870 *sampleRate = alsa_handle.sampleRate; in openOutputStream()
872 alsa_handle.sampleRate = *sampleRate; in openOutputStream()
874 alsa_handle.latency = PLAYBACK_LATENCY; in openOutputStream()
875 alsa_handle.rxHandle = 0; in openOutputStream()
876 alsa_handle.ucMgr = mUcMgr; in openOutputStream()
877 …ALOGD("alsa_handle.channels %d alsa_handle.sampleRate %d",alsa_handle.channels,alsa_handle.sampleR… in openOutputStream()
882 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI2 , sizeof(alsa_handle.useCase)); in openOutputStream()
884 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_MUSIC2, sizeof(alsa_handle.useCase)); in openOutputStream()
887 mDeviceList.push_back(alsa_handle); in openOutputStream()
910 alsa_handle_t alsa_handle; in openOutputStream() local
916 alsa_handle.module = mALSADevice; in openOutputStream()
917 alsa_handle.bufferSize = bufferSize; in openOutputStream()
918 alsa_handle.devices = devices; in openOutputStream()
919 alsa_handle.handle = 0; in openOutputStream()
920 alsa_handle.format = SNDRV_PCM_FORMAT_S16_LE; in openOutputStream()
921 alsa_handle.channels = DEFAULT_CHANNEL_MODE; in openOutputStream()
922 alsa_handle.channelMask = AUDIO_CHANNEL_OUT_STEREO; in openOutputStream()
923 alsa_handle.sampleRate = DEFAULT_SAMPLING_RATE; in openOutputStream()
924 alsa_handle.latency = PLAYBACK_LATENCY; in openOutputStream()
925 alsa_handle.rxHandle = 0; in openOutputStream()
926 alsa_handle.ucMgr = mUcMgr; in openOutputStream()
927 alsa_handle.isDeepbufferOutput = false; in openOutputStream()
934 alsa_handle.isDeepbufferOutput = true; in openOutputStream()
936 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI, sizeof(alsa_handle.useCase)); in openOutputStream()
938 … strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_MUSIC, sizeof(alsa_handle.useCase)); in openOutputStream()
942 alsa_handle.bufferSize = PLAYBACK_LOW_LATENCY_BUFFER_SIZE; in openOutputStream()
943 alsa_handle.latency = PLAYBACK_LOW_LATENCY_MEASURED; in openOutputStream()
945 …strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_MUSIC, sizeof(alsa_handle.useCase)); in openOutputStream()
947 … strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_LOWLATENCY_MUSIC, sizeof(alsa_handle.useCase)); in openOutputStream()
951 mDeviceList.push_back(alsa_handle); in openOutputStream()
1009 alsa_handle_t alsa_handle; in openOutputSession() local
1015 alsa_handle.module = mALSADevice; in openOutputSession()
1016 alsa_handle.bufferSize = bufferSize; in openOutputSession()
1017 alsa_handle.devices = devices; in openOutputSession()
1018 alsa_handle.handle = 0; in openOutputSession()
1019 alsa_handle.format = SNDRV_PCM_FORMAT_S16_LE; in openOutputSession()
1020 alsa_handle.channels = DEFAULT_CHANNEL_MODE; in openOutputSession()
1021 alsa_handle.channelMask = AUDIO_CHANNEL_OUT_STEREO; in openOutputSession()
1022 alsa_handle.sampleRate = DEFAULT_SAMPLING_RATE; in openOutputSession()
1023 alsa_handle.latency = VOICE_LATENCY; in openOutputSession()
1024 alsa_handle.rxHandle = 0; in openOutputSession()
1025 alsa_handle.ucMgr = mUcMgr; in openOutputSession()
1031 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI_TUNNEL, sizeof(alsa_handle.useCase)); in openOutputSession()
1033 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_TUNNEL, sizeof(alsa_handle.useCase)); in openOutputSession()
1038 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI_LOW_POWER, sizeof(alsa_handle.useCase)); in openOutputSession()
1040 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_LPA, sizeof(alsa_handle.useCase)); in openOutputSession()
1044 mDeviceList.push_back(alsa_handle); in openOutputSession()
1128 alsa_handle_t alsa_handle; in openInputStream() local
1141 alsa_handle.module = mALSADevice; in openInputStream()
1142 alsa_handle.bufferSize = bufferSize; in openInputStream()
1143 alsa_handle.devices = devices; in openInputStream()
1144 alsa_handle.handle = 0; in openInputStream()
1146 alsa_handle.format = SNDRV_PCM_FORMAT_S16_LE; in openInputStream()
1148 alsa_handle.format = *format; in openInputStream()
1149 alsa_handle.channels = VOIP_DEFAULT_CHANNEL_MODE; in openInputStream()
1150 alsa_handle.channelMask = AUDIO_CHANNEL_IN_MONO; in openInputStream()
1151 alsa_handle.sampleRate = *sampleRate; in openInputStream()
1152 alsa_handle.latency = VOIP_RECORD_LATENCY; in openInputStream()
1153 alsa_handle.rxHandle = 0; in openInputStream()
1154 alsa_handle.ucMgr = mUcMgr; in openInputStream()
1158 … strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_VOIP, sizeof(alsa_handle.useCase)); in openInputStream()
1160 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_IP_VOICECALL, sizeof(alsa_handle.useCase)); in openInputStream()
1163 mDeviceList.push_back(alsa_handle); in openInputStream()
1209 alsa_handle_t alsa_handle; in openInputStream() local
1212 alsa_handle.module = mALSADevice; in openInputStream()
1213 alsa_handle.bufferSize = bufferSize; in openInputStream()
1214 alsa_handle.devices = devices; in openInputStream()
1215 alsa_handle.handle = 0; in openInputStream()
1216 alsa_handle.format = SNDRV_PCM_FORMAT_S16_LE; in openInputStream()
1217 alsa_handle.channels = VOICE_CHANNEL_MODE; in openInputStream()
1218 alsa_handle.channelMask = AUDIO_CHANNEL_IN_MONO; in openInputStream()
1219 alsa_handle.sampleRate = android::AudioRecord::DEFAULT_SAMPLE_RATE; in openInputStream()
1220 alsa_handle.latency = RECORD_LATENCY; in openInputStream()
1221 alsa_handle.rxHandle = 0; in openInputStream()
1222 alsa_handle.ucMgr = mUcMgr; in openInputStream()
1233 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_VOICE, in openInputStream()
1234 sizeof(alsa_handle.useCase)); in openInputStream()
1236 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_VOICE_UL_DL, in openInputStream()
1237 sizeof(alsa_handle.useCase)); in openInputStream()
1242 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_VOICE, in openInputStream()
1243 sizeof(alsa_handle.useCase)); in openInputStream()
1245 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_VOICE_DL, in openInputStream()
1246 sizeof(alsa_handle.useCase)); in openInputStream()
1251 … strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_FM, sizeof(alsa_handle.useCase)); in openInputStream()
1253 … strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_A2DP_FM, sizeof(alsa_handle.useCase)); in openInputStream()
1259 …strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_LOWLATENCY_MUSIC, sizeof(alsa_handle.useCase… in openInputStream()
1261 … strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_MUSIC, sizeof(alsa_handle.useCase)); in openInputStream()
1273 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_INCALL_REC, in openInputStream()
1274 sizeof(alsa_handle.useCase)); in openInputStream()
1276 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_UL_DL_REC, in openInputStream()
1277 sizeof(alsa_handle.useCase)); in openInputStream()
1282 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_INCALL_REC, in openInputStream()
1283 sizeof(alsa_handle.useCase)); in openInputStream()
1285 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_DL_REC, in openInputStream()
1286 sizeof(alsa_handle.useCase)); in openInputStream()
1291 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_FM_REC, sizeof(alsa_handle.useCase)); in openInputStream()
1293 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_FM_A2DP_REC, sizeof(alsa_handle.useCase)); in openInputStream()
1299 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_REC, sizeof(alsa_handle.useCase)); in openInputStream()
1301 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI_REC, sizeof(alsa_handle.useCase)); in openInputStream()
1306 mDeviceList.push_back(alsa_handle); in openInputStream()
1436 alsa_handle_t alsa_handle; in handleFm() local
1441 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_DIGITAL_RADIO, sizeof(alsa_handle.useCase)); in handleFm()
1443 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_FM, sizeof(alsa_handle.useCase)); in handleFm()
1449 alsa_handle.module = mALSADevice; in handleFm()
1450 alsa_handle.bufferSize = bufferSize; in handleFm()
1451 alsa_handle.devices = device; in handleFm()
1452 alsa_handle.handle = 0; in handleFm()
1453 alsa_handle.format = SNDRV_PCM_FORMAT_S16_LE; in handleFm()
1454 alsa_handle.channels = DEFAULT_CHANNEL_MODE; in handleFm()
1455 alsa_handle.channelMask = AUDIO_CHANNEL_OUT_STEREO; in handleFm()
1456 alsa_handle.sampleRate = DEFAULT_SAMPLING_RATE; in handleFm()
1457 alsa_handle.latency = VOICE_LATENCY; in handleFm()
1458 alsa_handle.rxHandle = 0; in handleFm()
1459 alsa_handle.ucMgr = mUcMgr; in handleFm()
1461 mDeviceList.push_back(alsa_handle); in handleFm()
1467 alsa_handle.devices = AudioSystem::DEVICE_OUT_PROXY; in handleFm()
1533 alsa_handle_t alsa_handle; in enableVoiceCall() local
1537 strlcpy(alsa_handle.useCase, verb, sizeof(alsa_handle.useCase)); in enableVoiceCall()
1539 strlcpy(alsa_handle.useCase, modifier, sizeof(alsa_handle.useCase)); in enableVoiceCall()
1545 alsa_handle.module = mALSADevice; in enableVoiceCall()
1546 alsa_handle.bufferSize = bufferSize; in enableVoiceCall()
1547 alsa_handle.devices = device; in enableVoiceCall()
1548 alsa_handle.handle = 0; in enableVoiceCall()
1549 alsa_handle.format = SNDRV_PCM_FORMAT_S16_LE; in enableVoiceCall()
1550 alsa_handle.channels = VOICE_CHANNEL_MODE; in enableVoiceCall()
1551 alsa_handle.channelMask = AUDIO_CHANNEL_IN_MONO; in enableVoiceCall()
1552 alsa_handle.sampleRate = VOICE_SAMPLING_RATE; in enableVoiceCall()
1553 alsa_handle.latency = VOICE_LATENCY; in enableVoiceCall()
1554 alsa_handle.rxHandle = 0; in enableVoiceCall()
1555 alsa_handle.ucMgr = mUcMgr; in enableVoiceCall()
1556 mDeviceList.push_back(alsa_handle); in enableVoiceCall()
1563 alsa_handle.devices = device; in enableVoiceCall()