| /OK3568_Linux_fs/kernel/sound/soc/codecs/aw883xx/ |
| H A D | aw_device.h | 28 struct aw_device; 108 int (*aw_i2c_writes)(struct aw_device *aw_dev, uint8_t reg_addr, uint8_t *buf, uint16_t len); 109 int (*aw_i2c_write)(struct aw_device *aw_dev, uint8_t reg_addr, uint16_t reg_data); 110 int (*aw_i2c_read)(struct aw_device *aw_dev, uint8_t reg_addr, uint16_t *reg_data); 112 int (*aw_reg_write)(struct aw_device *aw_dev, uint8_t reg_addr, uint16_t reg_data); 113 int (*aw_reg_read)(struct aw_device *aw_dev, uint8_t reg_addr, uint16_t *reg_data); 114 …int (*aw_reg_write_bits)(struct aw_device *aw_dev, uint8_t reg_addr, uint16_t mask, uint16_t reg_d… 116 …int (*aw_dsp_write)(struct aw_device *aw_dev, uint16_t dsp_addr, uint32_t reg_data, uint8_t data_t… 117 …int (*aw_dsp_read)(struct aw_device *aw_dev, uint16_t dsp_addr, uint32_t *dsp_data, uint8_t data_t… 118 …int (*aw_dsp_write_bits)(struct aw_device *aw_dev, uint16_t dsp_addr, uint16_t mask, uint16_t dsp_… [all …]
|
| H A D | aw_calib.c | 163 static void aw_run_mute_for_cali(struct aw_device *aw_dev, int8_t cali_result) in aw_run_mute_for_cali() 183 static int aw_cali_svc_get_dev_re_range(struct aw_device *aw_dev, in aw_cali_svc_get_dev_re_range() 192 static int aw_cali_svc_get_devs_re_range(struct aw_device *aw_dev, in aw_cali_svc_get_devs_re_range() 197 struct aw_device *local_dev = NULL; in aw_cali_svc_get_devs_re_range() 208 local_dev = container_of(pos, struct aw_device, list_node); in aw_cali_svc_get_devs_re_range() 226 static int aw_cali_store_cali_re(struct aw_device *aw_dev, int32_t re) in aw_cali_store_cali_re() 249 struct aw_device *aw_dev = in aw_cali_get_cali_re() 250 container_of(cali_desc, struct aw_device, cali_desc); in aw_cali_get_cali_re() 284 struct aw_device *aw_dev = in aw_cali_read_cali_re_from_dsp() 285 container_of(cali_desc, struct aw_device, cali_desc); in aw_cali_read_cali_re_from_dsp() [all …]
|
| H A D | aw_monitor.c | 46 static int aw_monitor_get_chip_voltage(struct aw_device *aw_dev, in aw_monitor_get_chip_voltage() 73 static int aw_monitor_get_chip_temperature(struct aw_device *aw_dev, int *temp) in aw_monitor_get_chip_temperature() 98 static int aw_monitor_get_battery_state(struct aw_device *aw_dev, in aw_monitor_get_battery_state() 123 static int aw_monitor_get_system_temperature(struct aw_device *aw_dev, int *temp) in aw_monitor_get_system_temperature() 140 static int aw_monitor_set_system_temperature(struct aw_device *aw_dev, int sys_temp) in aw_monitor_set_system_temperature() 156 static int aw_monitor_get_system_voltage(struct aw_device *aw_dev, unsigned int *vol) in aw_monitor_get_system_voltage() 174 static int aw_monitor_get_temperature(struct aw_device *aw_dev, int *temp) in aw_monitor_get_temperature() 183 static int aw_monitor_get_voltage(struct aw_device *aw_dev, unsigned int *vol) in aw_monitor_get_voltage() 192 static int aw_monitor_get_temp_and_vol(struct aw_device *aw_dev) in aw_monitor_get_temp_and_vol() 232 static int aw_monitor_first_get_data_form_table(struct aw_device *aw_dev, in aw_monitor_first_get_data_form_table() [all …]
|
| H A D | aw_device.c | 38 static int aw_dev_reg_dump(struct aw_device *aw_dev) in aw_dev_reg_dump() 55 static void aw_dev_fade_in(struct aw_device *aw_dev) in aw_dev_fade_in() 79 static void aw_dev_fade_out(struct aw_device *aw_dev) in aw_dev_fade_out() 105 int aw_dev_get_fade_vol_step(struct aw_device *aw_dev) in aw_dev_get_fade_vol_step() 110 void aw_dev_set_fade_vol_step(struct aw_device *aw_dev, unsigned int step) in aw_dev_set_fade_vol_step() 169 static int aw_dev_set_dsp_crc32(struct aw_device *aw_dev) in aw_dev_set_dsp_crc32() 203 static int aw_dev_dsp_crc_check_enable(struct aw_device *aw_dev, bool flag) in aw_dev_dsp_crc_check_enable() 229 static int aw_dev_dsp_st_check(struct aw_device *aw_dev) in aw_dev_dsp_st_check() 256 static int aw_dev_dsp_crc32_check(struct aw_device *aw_dev) in aw_dev_dsp_crc32_check() 288 static void aw_dev_pwd(struct aw_device *aw_dev, bool pwd) in aw_dev_pwd() [all …]
|
| H A D | aw_bin_parse.h | 129 int aw_dev_dsp_data_order(struct aw_device *aw_dev, 131 int aw_dev_get_prof_data(struct aw_device *aw_dev, int index, 133 char *aw_dev_get_prof_name(struct aw_device *aw_dev, int index); 134 int aw_dev_set_profile_index(struct aw_device *aw_dev, int index); 135 int aw_dev_get_profile_index(struct aw_device *aw_dev); 136 int aw_dev_check_profile_index(struct aw_device *aw_dev, int index); 137 int aw_dev_get_profile_count(struct aw_device *aw_dev); 138 int aw_dev_cfg_load(struct aw_device *aw_dev, struct aw_container *aw_cfg);
|
| H A D | aw_spin.c | 119 static int aw_mtk_set_spin_angle(struct aw_device *aw_dev, uint32_t spin_angle) in aw_mtk_set_spin_angle() 153 static int aw_mtk_set_mixer_en(struct aw_device *aw_dev, uint32_t msg_id, int32_t is_enable) in aw_mtk_set_mixer_en() 237 static int aw_qcom_set_spin_angle(struct aw_device *aw_dev, in aw_qcom_set_spin_angle() 264 static int aw_qcom_set_mixer_en(struct aw_device *aw_dev, in aw_qcom_set_mixer_en() 298 static int aw_set_adsp_spin_angle(struct aw_device *aw_dev, uint32_t spin_angle) in aw_set_adsp_spin_angle() 324 static int aw_set_mixer_en(struct aw_device *aw_dev, int32_t is_enable) in aw_set_mixer_en() 348 struct aw_device *aw_dev = container_of(spin_desc, in aw_hold_reg_spin_st() 349 struct aw_device, spin_desc); in aw_hold_reg_spin_st() 385 struct aw_device *local_pa = NULL; in aw_check_spin_mode() 388 struct aw_device *aw_dev = container_of(spin_desc, in aw_check_spin_mode() [all …]
|
| H A D | aw_init.c | 27 static int aw883xx_dev_i2c_writes(struct aw_device *aw_dev, in aw883xx_dev_i2c_writes() 35 static int aw883xx_dev_i2c_write(struct aw_device *aw_dev, in aw883xx_dev_i2c_write() 43 static int aw883xx_dev_i2c_read(struct aw_device *aw_dev, in aw883xx_dev_i2c_read() 52 static int aw883xx_dev_reg_read(struct aw_device *aw_dev, in aw883xx_dev_reg_read() 60 static int aw883xx_dev_reg_write(struct aw_device *aw_dev, in aw883xx_dev_reg_write() 68 static int aw883xx_dev_reg_write_bits(struct aw_device *aw_dev, in aw883xx_dev_reg_write_bits() 76 static int aw883xx_dev_dsp_write(struct aw_device *aw_dev, in aw883xx_dev_dsp_write() 84 static int aw883xx_dev_dsp_read(struct aw_device *aw_dev, in aw883xx_dev_dsp_read() 149 static int aw_pid_2049_set_volume(struct aw_device *aw_dev, uint16_t value) in aw_pid_2049_set_volume() 155 static int aw_pid_2049_get_volume(struct aw_device *aw_dev, uint16_t *value) in aw_pid_2049_get_volume() [all …]
|
| H A D | aw_bin_parse.c | 504 int aw_dev_dsp_data_order(struct aw_device *aw_dev, in aw_dev_dsp_data_order() 526 static int aw_dev_parse_raw_reg(struct aw_device *aw_dev, in aw_dev_parse_raw_reg() 539 static int aw_dev_parse_raw_dsp_cfg(struct aw_device *aw_dev, in aw_dev_parse_raw_dsp_cfg() 558 static int aw_dev_parse_raw_dsp_fw(struct aw_device *aw_dev, in aw_dev_parse_raw_dsp_fw() 577 static int aw_dev_prof_parse_multi_bin(struct aw_device *aw_dev, in aw_dev_prof_parse_multi_bin() 633 static int aw_dev_parse_data_by_sec_type(struct aw_device *aw_dev, struct aw_cfg_hdr *cfg_hdr, in aw_dev_parse_data_by_sec_type() 658 static int aw_dev_parse_dev_type(struct aw_device *aw_dev, in aw_dev_parse_dev_type() 707 static int aw_dev_parse_dev_default_type(struct aw_device *aw_dev, in aw_dev_parse_dev_default_type() 754 static int aw_dev_cfg_get_vaild_prof(struct aw_device *aw_dev, in aw_dev_cfg_get_vaild_prof() 816 static int aw_dev_load_cfg_by_hdr(struct aw_device *aw_dev, in aw_dev_load_cfg_by_hdr() [all …]
|
| H A D | Makefile | 2 snd-soc-aw883xx-objs := aw883xx.o aw_device.o aw_monitor.o aw_bin_parse.o aw_init.o aw_calib.o aw_s…
|
| H A D | aw883xx.h | 152 struct aw_device *aw_pa;
|
| /OK3568_Linux_fs/kernel/sound/soc/codecs/aw87xxx/ |
| H A D | aw_device.h | 41 struct aw_device; 44 int (*pwr_on_func)(struct aw_device *aw_dev, struct aw_data_container *data); 45 int (*pwr_off_func)(struct aw_device *aw_dev, struct aw_data_container *data); 105 struct aw_device { struct 131 int aw_dev_i2c_write_byte(struct aw_device *aw_dev, argument 133 int aw_dev_i2c_read_byte(struct aw_device *aw_dev, 135 int aw_dev_i2c_read_msg(struct aw_device *aw_dev, 137 int aw_dev_i2c_write_bits(struct aw_device *aw_dev, 139 void aw_dev_soft_reset(struct aw_device *aw_dev); 140 void aw_dev_hw_pwr_ctrl(struct aw_device *aw_dev, bool enable); [all …]
|
| H A D | aw_device.c | 76 static int aw_dev_get_chipid(struct aw_device *aw_dev); 83 int aw_dev_i2c_write_byte(struct aw_device *aw_dev, in aw_dev_i2c_write_byte() 104 int aw_dev_i2c_read_byte(struct aw_device *aw_dev, in aw_dev_i2c_read_byte() 126 int aw_dev_i2c_read_msg(struct aw_device *aw_dev, in aw_dev_i2c_read_msg() 158 int aw_dev_i2c_write_bits(struct aw_device *aw_dev, in aw_dev_i2c_write_bits() 185 static int aw_dev_reg_update(struct aw_device *aw_dev, in aw_dev_reg_update() 212 static void aw_dev_reg_mute_bits_set(struct aw_device *aw_dev, in aw_dev_reg_mute_bits_set() 229 static bool aw_dev_gpio_is_valid(struct aw_device *aw_dev) in aw_dev_gpio_is_valid() 237 void aw_dev_hw_pwr_ctrl(struct aw_device *aw_dev, bool enable) in aw_dev_hw_pwr_ctrl() 266 int aw_dev_mute_ctrl(struct aw_device *aw_dev, bool enable) in aw_dev_mute_ctrl() [all …]
|
| H A D | aw_acf_bin.h | 170 struct aw_device *aw_dev; 192 void aw_acf_init(struct aw_device *aw_dev, struct acf_bin_info *acf_info, int index);
|
| H A D | Makefile | 2 snd-soc-aw87xxx-objs := aw87xxx.o aw_device.o aw_monitor.o aw_bin_parse.o aw_dsp.o aw_acf_bin.o
|
| H A D | aw87xxx.h | 106 struct aw_device aw_dev;
|
| H A D | aw87xxx.c | 91 struct aw_device *aw_dev = &aw87xxx->aw_dev; in aw87xxx_update_off_prof() 148 struct aw_device *aw_dev = &aw87xxx->aw_dev; in aw87xxx_update_profile() 263 struct aw_device *aw_dev = &aw87xxx->aw_dev; in aw87xxx_esd_update_off_prof() 311 struct aw_device *aw_dev = &aw87xxx->aw_dev; in aw87xxx_esd_update_profile() 751 struct aw_device *aw_dev = &aw87xxx->aw_dev; in aw87xxx_attr_get_reg()
|
| H A D | aw_acf_bin.c | 1558 void aw_acf_init(struct aw_device *aw_dev, struct acf_bin_info *acf_info, int index) in aw_acf_init()
|