Lines Matching refs:usecase
572 struct audio_usecase *usecase; in platform_send_gain_dep_cal() local
586 usecase = node_to_item(node, struct audio_usecase, list); in platform_send_gain_dep_cal()
588 if (usecase != NULL && in platform_send_gain_dep_cal()
589 usecase->type == PCM_PLAYBACK && in platform_send_gain_dep_cal()
590 (usecase->stream.out->devices == AUDIO_DEVICE_OUT_SPEAKER)) { in platform_send_gain_dep_cal()
592 ALOGV("%s: out device is %d", __func__, usecase->out_snd_device); in platform_send_gain_dep_cal()
594 acdb_dev_id = audio_extn_spkr_prot_get_acdb_id(usecase->out_snd_device); in platform_send_gain_dep_cal()
596 acdb_dev_id = acdb_device_table[usecase->out_snd_device]; in platform_send_gain_dep_cal()
1227 int platform_get_pcm_device_id(audio_usecase_t usecase, int device_type) in platform_get_pcm_device_id() argument
1231 device_id = pcm_device_table[usecase][0]; in platform_get_pcm_device_id()
1233 device_id = pcm_device_table[usecase][1]; in platform_get_pcm_device_id()
2352 int64_t platform_render_latency(audio_usecase_t usecase) in platform_render_latency() argument
2354 switch (usecase) { in platform_render_latency()
2394 int platform_set_usecase_pcm_id(audio_usecase_t usecase, int32_t type, int32_t pcm_id) in platform_set_usecase_pcm_id() argument
2397 if ((usecase <= USECASE_INVALID) || (usecase >= AUDIO_USECASE_MAX)) { in platform_set_usecase_pcm_id()
2398 ALOGE("%s: invalid usecase case idx %d", __func__, usecase); in platform_set_usecase_pcm_id()
2407 ALOGV("%s: pcm_device_table[%d][%d] = %d", __func__, usecase, type, pcm_id); in platform_set_usecase_pcm_id()
2408 pcm_device_table[usecase][type] = pcm_id; in platform_set_usecase_pcm_id()
2477 struct audio_usecase *usecase; in platform_swap_lr_channels() local
2485 usecase = node_to_item(node, struct audio_usecase, list); in platform_swap_lr_channels()
2486 if (usecase->type == PCM_PLAYBACK && in platform_swap_lr_channels()
2487 usecase->stream.out->devices & AUDIO_DEVICE_OUT_SPEAKER) { in platform_swap_lr_channels()
2496 select_devices(adev, usecase->id); in platform_swap_lr_channels()