Searched refs:ioh (Results 1 – 3 of 3) sorted by relevance
/hardware/knowles/athletico/sound_trigger_hal/tests/ |
D | odsp_api_test.c | 60 void set_param(struct iaxxx_odsp_hw *ioh, unsigned int param_id, in set_param() argument 65 err = iaxxx_odsp_plugin_set_parameter(ioh, inst_id, param_id, param_val, in set_param() 72 void get_param(struct iaxxx_odsp_hw *ioh, unsigned int param_id, in get_param() argument 77 err = iaxxx_odsp_plugin_get_parameter(ioh, inst_id, param_id, block_id, in get_param() 87 void plugin_control(struct iaxxx_odsp_hw *ioh, unsigned int inst_id, in plugin_control() argument 92 err = iaxxx_odsp_plugin_enable(ioh, inst_id, block_id); in plugin_control() 94 err = iaxxx_odsp_plugin_disable(ioh, inst_id, block_id); in plugin_control() 107 void trigger_event(struct iaxxx_odsp_hw *ioh, unsigned int src_id, in trigger_event() argument 112 err = iaxxx_odsp_evt_trigger(ioh, src_id, event_id, src_opaque); in trigger_event() 121 struct iaxxx_odsp_hw *ioh = NULL; in main() local [all …]
|
D | oslo_iaxxx_sensor_control.c | 165 struct iaxxx_odsp_hw *ioh = NULL; in oslo_plugin_set_param() local 168 ioh = iaxxx_odsp_init(); in oslo_plugin_set_param() 169 if (ioh == NULL) { in oslo_plugin_set_param() 174 err = iaxxx_odsp_plugin_set_parameter(ioh, SENSOR_INSTANCE_ID, param_id, param_val, in oslo_plugin_set_param() 182 if (ioh) { in oslo_plugin_set_param() 183 err = iaxxx_odsp_deinit(ioh); in oslo_plugin_set_param() 191 struct iaxxx_odsp_hw *ioh = NULL; in oslo_plugin_get_param() local 195 ioh = iaxxx_odsp_init(); in oslo_plugin_get_param() 196 if (ioh == NULL) { in oslo_plugin_get_param() 201 err = iaxxx_odsp_plugin_get_parameter(ioh, SENSOR_INSTANCE_ID, param_id, IAXXX_HMD_BLOCK_ID, in oslo_plugin_get_param() [all …]
|
/hardware/knowles/athletico/sound_trigger_hal/ |
D | iaxxx_odsp_hw.c | 49 struct iaxxx_odsp_hw *ioh = NULL; in iaxxx_odsp_init() local 53 ioh = (struct iaxxx_odsp_hw *)malloc(sizeof(struct iaxxx_odsp_hw)); in iaxxx_odsp_init() 54 if (ioh == NULL) { in iaxxx_odsp_init() 60 ioh->dev_node = fopen(DEV_NODE, "rw"); in iaxxx_odsp_init() 61 if (ioh->dev_node == NULL) { in iaxxx_odsp_init() 63 free(ioh); in iaxxx_odsp_init() 64 ioh = NULL; in iaxxx_odsp_init() 69 return ioh; in iaxxx_odsp_init()
|