@@ -304,21 +304,21 @@ static esp_gmf_err_t esp_gmf_eq_destroy(esp_gmf_audio_element_handle_t self)
304304
305305static esp_gmf_err_t _load_eq_caps_func (esp_gmf_element_handle_t handle )
306306{
307- esp_gmf_cap_t * * caps = NULL ;
307+ esp_gmf_cap_t * caps = NULL ;
308308 esp_gmf_cap_t dec_caps = {0 };
309309 dec_caps .cap_eightcc = ESP_GMF_CAPS_AUDIO_EQUALIZER ;
310310 dec_caps .attr_fun = NULL ;
311- int ret = esp_gmf_cap_append (caps , & dec_caps );
311+ int ret = esp_gmf_cap_append (& caps , & dec_caps );
312312 ESP_GMF_RET_ON_NOT_OK (TAG , ret , {return ret ;}, "Failed to create capability" );
313313
314314 esp_gmf_element_t * el = (esp_gmf_element_t * )handle ;
315- el -> caps = * caps ;
315+ el -> caps = caps ;
316316 return ESP_GMF_ERR_OK ;
317317}
318318
319319static esp_gmf_err_t _load_eq_methods_func (esp_gmf_element_handle_t handle )
320320{
321- esp_gmf_method_t * * method = NULL ;
321+ esp_gmf_method_t * method = NULL ;
322322 esp_gmf_args_desc_t * set_args = NULL ;
323323 esp_gmf_args_desc_t * get_args = NULL ;
324324 esp_gmf_args_desc_t * pointer_args = NULL ;
@@ -339,12 +339,12 @@ static esp_gmf_err_t _load_eq_methods_func(esp_gmf_element_handle_t handle)
339339 ret = esp_gmf_args_desc_append_array (& set_args , ESP_GMF_METHOD_EQ_SET_PARA_ARG_PARA , pointer_args ,
340340 sizeof (esp_ae_eq_filter_para_t ), sizeof (uint8_t ));
341341 ESP_GMF_RET_ON_NOT_OK (TAG , ret , {return ret ;}, "Failed to append PARA argument" );
342- ret = esp_gmf_method_append (method , ESP_GMF_METHOD_EQ_SET_PARA , __eq_set_para , set_args );
342+ ret = esp_gmf_method_append (& method , ESP_GMF_METHOD_EQ_SET_PARA , __eq_set_para , set_args );
343343 ESP_GMF_RET_ON_ERROR (TAG , ret , {return ret ;}, "Failed to register %s method" , ESP_GMF_METHOD_EQ_SET_PARA );
344344
345345 ret = esp_gmf_args_desc_copy (set_args , & get_args );
346346 ESP_GMF_RET_ON_NOT_OK (TAG , ret , {return ret ;}, "Failed to copy PARA argument" );
347- ret = esp_gmf_method_append (method , ESP_GMF_METHOD_EQ_GET_PARA , __eq_get_para , get_args );
347+ ret = esp_gmf_method_append (& method , ESP_GMF_METHOD_EQ_GET_PARA , __eq_get_para , get_args );
348348 ESP_GMF_RET_ON_ERROR (TAG , ret , {return ret ;}, "Failed to register %s method" , ESP_GMF_METHOD_EQ_GET_PARA );
349349
350350 set_args = NULL ;
@@ -354,11 +354,11 @@ static esp_gmf_err_t _load_eq_methods_func(esp_gmf_element_handle_t handle)
354354 ret = esp_gmf_args_desc_append (& set_args , ESP_GMF_METHOD_EQ_ENABLE_FILTER_ARG_PARA , ESP_GMF_ARGS_TYPE_UINT8 ,
355355 sizeof (uint8_t ), sizeof (uint8_t ));
356356 ESP_GMF_RET_ON_NOT_OK (TAG , ret , {return ret ;}, "Failed to append PARA argument" );
357- ret = esp_gmf_method_append (method , ESP_GMF_METHOD_EQ_ENABLE_FILTER , __eq_enable_filter , set_args );
357+ ret = esp_gmf_method_append (& method , ESP_GMF_METHOD_EQ_ENABLE_FILTER , __eq_enable_filter , set_args );
358358 ESP_GMF_RET_ON_ERROR (TAG , ret , {return ret ;}, "Failed to register %s method" , ESP_GMF_METHOD_EQ_ENABLE_FILTER );
359359
360360 esp_gmf_element_t * el = (esp_gmf_element_t * )handle ;
361- el -> method = * method ;
361+ el -> method = method ;
362362 return ESP_GMF_ERR_OK ;
363363}
364364
0 commit comments