Searched defs:usecase (Results 1 - 18 of 18) sorted by relevance

/hardware/qcom/audio/msm8909/hal/audio_extn/
H A Dcompress_capture.c56 in->usecase = USECASE_AUDIO_RECORD_COMPRESS;
93 bool audio_extn_compr_cap_usecase_supported(audio_usecase_t usecase) argument
95 if ((usecase == USECASE_AUDIO_RECORD_COMPRESS) ||
96 (usecase == USECASE_INCALL_REC_UPLINK_COMPRESS) ||
97 (usecase == USECASE_INCALL_REC_DOWNLINK_COMPRESS) ||
98 (usecase == USECASE_INCALL_REC_UPLINK_AND_DOWNLINK_COMPRESS))
H A Dsource_track.c208 struct audio_usecase *usecase = NULL; local
222 usecase = get_usecase_from_list(adev,
227 usecase = get_usecase_from_list(adev, USECASE_COMPRESS_VOIP_CALL);
231 usecase = get_usecase_from_list(adev, get_usecase_id_from_usecase_type(adev, PCM_CAPTURE));
234 if (usecase && (usecase->id != USECASE_AUDIO_SPKR_CALIB_TX)) {
235 if (is_stt_supported_snd_device(usecase->in_snd_device)) {
236 in_device = get_input_audio_device(usecase->devices);
241 __func__, platform_get_snd_device_name(usecase->in_snd_device));
H A Dutils.c483 int audio_extn_utils_send_app_type_cfg(struct audio_usecase *usecase) argument
490 int pcm_device_id, acdb_dev_id, snd_device = usecase->out_snd_device;
495 if (usecase->type != PCM_PLAYBACK) {
500 if ((usecase->id != USECASE_AUDIO_PLAYBACK_DEEP_BUFFER) &&
501 (usecase->id != USECASE_AUDIO_PLAYBACK_LOW_LATENCY) &&
502 (usecase->id != USECASE_AUDIO_PLAYBACK_MULTI_CH) &&
503 (usecase->id != USECASE_AUDIO_PLAYBACK_OFFLOAD)) {
508 out = usecase->stream.out;
511 snd_device = usecase->out_snd_device;
513 pcm_device_id = platform_get_pcm_device_id(out->usecase, PCM_PLAYBAC
574 audio_extn_utils_send_audio_calibration(struct audio_device *adev, struct audio_usecase *usecase) argument
[all...]
H A Daudio_extn.c167 struct audio_usecase *usecase; local
178 usecase = node_to_item(node, struct audio_usecase, list);
179 if (usecase->type == PCM_PLAYBACK) {
180 if (usecase->stream.out->devices == \
182 usecase->stream.out->devices == \
184 select_devices(adev, usecase->id);
206 struct audio_usecase *usecase; local
222 usecase = node_to_item(node, struct audio_usecase, list);
223 select_devices(adev, usecase->id);
452 struct audio_usecase *usecase; local
[all...]
H A Ddolby.c220 int pcm_device_id = platform_get_pcm_device_id(out->usecase,
239 struct audio_usecase *usecase; local
242 usecase = node_to_item(node, struct audio_usecase, list);
243 if ((usecase->type == PCM_PLAYBACK) &&
244 (usecase->devices & ddp_dev) &&
245 (usecase->stream.out->flags & AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD) &&
246 ((usecase->stream.out->format == AUDIO_FORMAT_AC3) ||
247 (usecase->stream.out->format == AUDIO_FORMAT_E_AC3) ||
248 (usecase->stream.out->format == AUDIO_FORMAT_E_AC3_JOC))) {
249 send_ddp_endp_params_stream(usecase
258 struct audio_usecase *usecase; local
415 struct audio_usecase *usecase; local
451 struct audio_usecase *usecase; local
572 struct audio_usecase *usecase; local
[all...]
/hardware/qcom/audio/hal/audio_extn/
H A Dext_speaker.c125 struct audio_usecase *usecase; local
127 usecase = node_to_item(node, struct audio_usecase, list);
128 if (usecase->devices & AUDIO_DEVICE_OUT_EARPIECE) {
129 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) {
133 if (usecase->devices & AUDIO_DEVICE_OUT_SPEAKER) {
134 if(data->adev->snd_dev_ref_cnt[usecase->out_snd_device] != 0) {
/hardware/qcom/audio/hal/
H A Dvoice.c113 ALOGD("%s: enter usecase:%s", __func__, use_case_table[usecase_id]);
119 ALOGE("%s: Could not find the usecase (%d) in the list",
164 ALOGD("%s: enter usecase:%s", __func__, use_case_table[usecase_id]);
183 ALOGE("%s: Invalid PCM devices (rx: %d tx: %d) for the usecase(%d)",
291 in->usecase = USECASE_INCALL_REC_UPLINK;
295 in->usecase = USECASE_INCALL_REC_DOWNLINK;
299 in->usecase = USECASE_INCALL_REC_UPLINK_AND_DOWNLINK;
311 ALOGV("%s: Update usecase to %d",__func__, in->usecase);
525 struct audio_usecase *usecase; local
[all...]
H A Daudio_hw.h55 * Each usecase is mapped to a specific PCM device.
78 * Following usecase are specific to voice session names created by
88 * Following usecase are specific to voice session names created by
161 audio_usecase_t usecase; member in struct:stream_out
195 audio_usecase_t usecase; member in struct:stream_in
273 * or other capabilities are present for the device corresponding to that usecase.
299 struct audio_usecase *usecase);
308 struct audio_usecase *usecase);
H A Daudio_hw.c260 struct audio_usecase *usecase)
265 if (usecase == NULL)
268 ALOGV("%s: enter: usecase(%d)", __func__, usecase->id);
270 if (usecase->type == PCM_CAPTURE)
271 snd_device = usecase->in_snd_device;
273 snd_device = usecase->out_snd_device;
275 strcpy(mixer_path, use_case_table[usecase->id]);
285 struct audio_usecase *usecase)
290 if (usecase
259 enable_audio_route(struct audio_device *adev, struct audio_usecase *usecase) argument
284 disable_audio_route(struct audio_device *adev, struct audio_usecase *usecase) argument
418 struct audio_usecase *usecase; local
486 struct audio_usecase *usecase; local
578 struct audio_usecase *usecase; local
594 struct audio_usecase *usecase; local
610 struct audio_usecase *usecase = NULL; local
1076 struct audio_usecase *usecase; local
1108 struct audio_usecase *usecase; local
1481 struct audio_usecase *usecase; local
2191 struct audio_usecase *usecase; local
[all...]
/hardware/qcom/audio/msm8909/hal/
H A Dvoice.c65 ALOGD("%s: enter usecase:%s", __func__, use_case_table[usecase_id]);
91 ALOGE("%s: Could not find the usecase (%d) in the list",
119 ALOGD("%s: enter usecase:%s", __func__, use_case_table[usecase_id]);
148 ALOGE("%s: Invalid PCM devices (rx: %d tx: %d) for the usecase(%d)",
260 in->usecase = USECASE_INCALL_REC_UPLINK_COMPRESS;
262 in->usecase = USECASE_INCALL_REC_UPLINK;
268 in->usecase = USECASE_INCALL_REC_DOWNLINK_COMPRESS;
270 in->usecase = USECASE_INCALL_REC_DOWNLINK;
276 in->usecase = USECASE_INCALL_REC_UPLINK_AND_DOWNLINK_COMPRESS;
278 in->usecase
496 struct audio_usecase *usecase; local
[all...]
H A Daudio_hw.c340 struct audio_usecase *usecase; local
346 specified usecase to new snd devices */
348 usecase = node_to_item(node, struct audio_usecase, list);
349 if ((usecase->type == VOICE_CALL || usecase->type == VOIP_CALL) &&
350 (usecase != uc_info))
351 enable_audio_route(adev, usecase);
370 struct audio_usecase *usecase)
375 if (usecase == NULL)
378 ALOGV("%s: enter: usecase(
369 enable_audio_route(struct audio_device *adev, struct audio_usecase *usecase) argument
402 disable_audio_route(struct audio_device *adev, struct audio_usecase *usecase) argument
557 struct audio_usecase *usecase; local
638 struct audio_usecase *usecase; local
733 struct audio_usecase *usecase; local
749 struct audio_usecase *usecase; local
764 struct audio_usecase *usecase = NULL; local
981 int usecase = platform_update_usecase_from_source(in->source,in->usecase); local
1300 struct audio_usecase *usecase; local
1338 struct audio_usecase *usecase; local
1780 struct audio_usecase *usecase; local
2933 struct audio_usecase *usecase; local
3010 struct audio_usecase *usecase; local
[all...]
H A Daudio_hw.h58 * Each usecase is mapped to a specific PCM device.
79 /* FM usecase */
92 /* Voice usecase */
174 audio_usecase_t usecase; member in struct:stream_out
209 audio_usecase_t usecase; member in struct:stream_in
306 struct audio_usecase *usecase);
313 struct audio_usecase *usecase);
/hardware/qcom/audio/hal/msm8960/
H A Dplatform.c403 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type) argument
407 device_id = pcm_device_table[usecase][0];
409 device_id = pcm_device_table[usecase][1];
986 int64_t platform_render_latency(audio_usecase_t usecase) argument
988 switch (usecase) {
1017 int platform_get_usecase_index(const char * usecase __unused)
1022 int platform_set_usecase_pcm_id(audio_usecase_t usecase __unused, int32_t type __unused,
1045 struct audio_usecase *usecase; local
1054 usecase = node_to_item(node, struct audio_usecase, list);
1055 if (usecase
[all...]
/hardware/qcom/audio/legacy/libalsa-intf/
H A Dalsa_ucm.c1158 ALOGE("No valid controls exists for usecase %s and device \
1188 ALOGE("No valid controls exists for usecase %s and \
1230 ALOGE("No valid controls exists for usecase %s and \
1258 ALOGE("No valid controls exists for usecase %s and \
1277 /* Returns usecase type i.e. either verb or modifier
1279 * usecase - usecase name either verb or modifier
1282 static int get_usecase_type(snd_use_case_mgr_t *uc_mgr, const char *usecase) argument
1288 if (!strncmp(uc_mgr->card_ctxt_ptr->verb_list[index], usecase,
1289 (strlen(usecase)
1308 set_controls_of_device_for_usecase(snd_use_case_mgr_t *uc_mgr, const char *device, const char *usecase, int enable) argument
1605 snd_use_case_set_case(snd_use_case_mgr_t *uc_mgr, const char *identifier, const char *value, const char *usecase) argument
[all...]
/hardware/qcom/audio/msm8909/hal/msm8960/
H A Dplatform.c392 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type) argument
396 device_id = pcm_device_table[usecase][0];
398 device_id = pcm_device_table[usecase][1];
479 int platform_send_audio_calibration(void *platform, struct audio_usecase *usecase, argument
487 if (usecase->type == PCM_PLAYBACK)
489 usecase->stream.out->devices);
490 else if ((usecase->type == PCM_HFP_CALL) || (usecase->type == PCM_CAPTURE))
1026 int64_t platform_render_latency(audio_usecase_t usecase) argument
1028 switch (usecase) {
1038 platform_update_usecase_from_source(int source, int usecase) argument
[all...]
/hardware/qcom/audio/hal/msm8974/
H A Dplatform.c617 struct audio_usecase *usecase; local
625 ALOGV("%s: Not Voice call usecase, apply new cal for level %d",
631 usecase = node_to_item(node, struct audio_usecase, list);
633 if (usecase != NULL &&
634 usecase->type == PCM_PLAYBACK &&
635 (usecase->stream.out->devices == AUDIO_DEVICE_OUT_SPEAKER)) {
637 ALOGV("%s: out device is %d", __func__, usecase->out_snd_device);
639 acdb_dev_id = audio_extn_spkr_prot_get_acdb_id(usecase->out_snd_device);
641 acdb_dev_id = acdb_device_table[usecase->out_snd_device];
1134 // support max to mono, example if max count is 3, usecase support
1373 platform_get_pcm_device_id(audio_usecase_t usecase, int device_type) argument
2541 platform_render_latency(audio_usecase_t usecase) argument
2553 platform_check_and_set_capture_backend_cfg(struct audio_device* adev, struct audio_usecase *usecase, snd_device_t snd_device) argument
2603 platform_set_usecase_pcm_id(audio_usecase_t usecase, int32_t type, int32_t pcm_id) argument
2686 struct audio_usecase *usecase; local
[all...]
/hardware/qcom/audio/msm8909/hal/msm8916/
H A Dplatform.c584 static bool is_misc_usecase(audio_usecase_t usecase) { argument
589 if(usecase == misc_usecase[i]) {
1431 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type) argument
1435 if (is_external_codec && is_misc_usecase(usecase)) {
1437 device_id = pcm_device_table_of_ext_codec[usecase][0];
1439 device_id = pcm_device_table_of_ext_codec[usecase][1];
1442 device_id = pcm_device_table[usecase][0];
1444 device_id = pcm_device_table[usecase][1];
1577 int platform_send_audio_calibration(void *platform, struct audio_usecase *usecase, argument
1585 if (usecase
2740 platform_render_latency(audio_usecase_t usecase) argument
2752 platform_update_usecase_from_source(int source, int usecase) argument
[all...]
/hardware/qcom/audio/msm8909/hal/msm8974/
H A Dplatform.c1270 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type) argument
1274 device_id = pcm_device_table[usecase][0];
1276 device_id = pcm_device_table[usecase][1];
1450 if (usecase->type == PCM_PLAYBACK)
1452 usecase->stream.out->devices);
1453 else if ((usecase->type == PCM_HFP_CALL) || (usecase->type == PCM_CAPTURE))
2331 struct audio_usecase *usecase; local
2348 usecase = node_to_item(node, struct audio_usecase, list);
2349 select_devices(my_data->adev, usecase
2615 platform_render_latency(audio_usecase_t usecase) argument
2627 platform_update_usecase_from_source(int source, int usecase) argument
2904 platform_check_and_set_codec_backend_cfg(struct audio_device* adev, struct audio_usecase *usecase) argument
2943 platform_set_usecase_pcm_id(audio_usecase_t usecase, int32_t type, int32_t pcm_id) argument
[all...]

Completed in 589 milliseconds