You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.5 KiB
60 lines
1.5 KiB
/*
|
|
* Copyright (c) Hisilicon Technologies Co., Ltd.. 2019-2020. All rights reserved.
|
|
* Description: implement of amp customer
|
|
* Author: audio
|
|
* Create: 2019-12-30
|
|
*/
|
|
|
|
#include "drv_amp_customer.h"
|
|
#include "osal_ext.h"
|
|
#include "drv_amp_debug.h"
|
|
#include "drv_amp_customer_driver.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
/* add driver here */
|
|
static const struct {
|
|
td_s32 (* register_driver)(td_void);
|
|
} g_amp_customer_driver[] = {
|
|
{analog_register_driver},
|
|
{tas5707_register_driver},
|
|
{tas5711_register_driver},
|
|
{ntp8214_register_driver},
|
|
{ntp8212_register_driver},
|
|
{rt9107b_register_driver},
|
|
{alc1310_register_driver},
|
|
{ad83586_register_driver},
|
|
{ad82584_register_driver},
|
|
{ad82010_register_driver},
|
|
{ad82584f_register_driver},
|
|
{rt9114c_register_driver},
|
|
{rt9119_register_driver},
|
|
{tas2564_register_driver},
|
|
{rt5512_register_driver},
|
|
};
|
|
|
|
td_void amp_customer_driver_init(td_void)
|
|
{
|
|
td_u32 i;
|
|
td_s32 ret;
|
|
|
|
for (i = 0; i < (sizeof(g_amp_customer_driver) / sizeof(g_amp_customer_driver[0])); i++) {
|
|
if (g_amp_customer_driver[i].register_driver == TD_NULL) {
|
|
continue;
|
|
}
|
|
|
|
ret = g_amp_customer_driver[i].register_driver();
|
|
if (ret != 0) {
|
|
soc_err_print_call_fun_err(register_driver, ret);
|
|
soc_err_print_u32(i);
|
|
}
|
|
}
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|