Lines Matching refs:event
220 int audio_hw_call_back(sound_trigger_event_type_t event, in audio_hw_call_back() argument
230 switch (event) { in audio_hw_call_back()
267 ALOGW("%s: Unknown event %d", __func__, event); in audio_hw_call_back()
279 struct audio_event_info event; in audio_extn_sound_trigger_read() local
295 event.u.aud_info.ses_info = &st_info->st_ses; in audio_extn_sound_trigger_read()
296 event.u.aud_info.buf = buffer; in audio_extn_sound_trigger_read()
297 event.u.aud_info.num_bytes = bytes; in audio_extn_sound_trigger_read()
298 ret = st_dev->st_callback(AUDIO_EVENT_READ_SAMPLES, &event); in audio_extn_sound_trigger_read()
316 struct audio_event_info event; in audio_extn_sound_trigger_stop_lab() local
325 event.u.ses_info = st_ses_info->st_ses; in audio_extn_sound_trigger_stop_lab()
327 st_dev->st_callback(AUDIO_EVENT_STOP_LAB, &event); in audio_extn_sound_trigger_stop_lab()
360 st_event_type_t event) in audio_extn_sound_trigger_update_device_status() argument
377 __func__, snd_device, event); in audio_extn_sound_trigger_update_device_status()
382 __func__, snd_device, device_type, event); in audio_extn_sound_trigger_update_device_status()
384 switch(event) { in audio_extn_sound_trigger_update_device_status()
393 __func__, event, snd_device); in audio_extn_sound_trigger_update_device_status()
399 st_event_type_t event) in audio_extn_sound_trigger_update_stream_status() argument
424 __func__, uc_info->id, uc_info->type, event, raise_event); in audio_extn_sound_trigger_update_stream_status()
426 ev = (event == ST_EVENT_STREAM_BUSY) ? AUDIO_EVENT_CAPTURE_STREAM_ACTIVE : in audio_extn_sound_trigger_update_stream_status()
429 ev = (event == ST_EVENT_STREAM_BUSY) ? AUDIO_EVENT_PLAYBACK_STREAM_ACTIVE : in audio_extn_sound_trigger_update_stream_status()
443 struct audio_event_info event; in audio_extn_sound_trigger_set_parameters() local
456 event.u.status = SND_CARD_STATUS_OFFLINE; in audio_extn_sound_trigger_set_parameters()
457 st_dev->st_callback(AUDIO_EVENT_SSR, &event); in audio_extn_sound_trigger_set_parameters()
460 event.u.status = SND_CARD_STATUS_ONLINE; in audio_extn_sound_trigger_set_parameters()
461 st_dev->st_callback(AUDIO_EVENT_SSR, &event); in audio_extn_sound_trigger_set_parameters()
470 event.u.status = CPE_STATUS_OFFLINE; in audio_extn_sound_trigger_set_parameters()
471 st_dev->st_callback(AUDIO_EVENT_SSR, &event); in audio_extn_sound_trigger_set_parameters()
474 event.u.status = CPE_STATUS_ONLINE; in audio_extn_sound_trigger_set_parameters()
475 st_dev->st_callback(AUDIO_EVENT_SSR, &event); in audio_extn_sound_trigger_set_parameters()
483 event.u.value = val; in audio_extn_sound_trigger_set_parameters()
484 st_dev->st_callback(AUDIO_EVENT_NUM_ST_SESSIONS, &event); in audio_extn_sound_trigger_set_parameters()
490 event.u.status = SLPI_STATUS_OFFLINE; in audio_extn_sound_trigger_set_parameters()
491 st_dev->st_callback(AUDIO_EVENT_SSR, &event); in audio_extn_sound_trigger_set_parameters()
493 event.u.status = SLPI_STATUS_ONLINE; in audio_extn_sound_trigger_set_parameters()
494 st_dev->st_callback(AUDIO_EVENT_SSR, &event); in audio_extn_sound_trigger_set_parameters()