Lines Matching full:usecase
632 struct audio_usecase *usecase;
640 ALOGV("%s: Not Voice call usecase, apply new cal for level %d",
646 usecase = node_to_item(node, struct audio_usecase, list);
648 if (usecase != NULL &&
649 usecase->type == PCM_PLAYBACK &&
650 (usecase->stream.out->devices == AUDIO_DEVICE_OUT_SPEAKER)) {
652 ALOGV("%s: out device is %d", __func__, usecase->out_snd_device);
654 acdb_dev_id = audio_extn_spkr_prot_get_acdb_id(usecase->out_snd_device);
656 acdb_dev_id = acdb_device_table[usecase->out_snd_device];
667 ALOGW("%s: Usecase list is empty", __func__);
1182 // support max to mono, example if max count is 3, usecase supports Three, dual and mono mic
1420 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type)
1424 device_id = pcm_device_table[usecase][0];
1426 device_id = pcm_device_table[usecase][1];
2593 int64_t platform_render_latency(audio_usecase_t usecase)
2595 switch (usecase) {
2608 struct audio_usecase *usecase, snd_device_t snd_device)
2657 int platform_set_usecase_pcm_id(audio_usecase_t usecase, int32_t type, int32_t pcm_id)
2660 if ((usecase <= USECASE_INVALID) || (usecase >= AUDIO_USECASE_MAX)) {
2661 ALOGE("%s: invalid usecase case idx %d", __func__, usecase);
2667 ALOGE("%s: invalid usecase type", __func__);
2670 ALOGV("%s: pcm_device_table[%d][%d] = %d", __func__, usecase, type, pcm_id);
2671 pcm_device_table[usecase][type] = pcm_id;
2740 struct audio_usecase *usecase;
2748 usecase = node_to_item(node, struct audio_usecase, list);
2749 if (usecase->type == PCM_PLAYBACK &&
2750 usecase->stream.out->devices & AUDIO_DEVICE_OUT_SPEAKER) {
2759 select_devices(adev, usecase->id);