Home
last modified time | relevance | path

Searched refs:aw_dev (Results 1 - 5 of 5) sorted by relevance

/kernel/linux/linux-6.6/sound/soc/codecs/aw88395/
H A Daw88395_device.c17 static int aw_dev_dsp_write_16bit(struct aw_device *aw_dev, in aw_dev_dsp_write_16bit() argument
22 ret = regmap_write(aw_dev->regmap, AW88395_DSPMADD_REG, dsp_addr); in aw_dev_dsp_write_16bit()
24 dev_err(aw_dev->dev, "%s write addr error, ret=%d", __func__, ret); in aw_dev_dsp_write_16bit()
28 ret = regmap_write(aw_dev->regmap, AW88395_DSPMDAT_REG, (u16)dsp_data); in aw_dev_dsp_write_16bit()
30 dev_err(aw_dev->dev, "%s write data error, ret=%d", __func__, ret); in aw_dev_dsp_write_16bit()
37 static int aw_dev_dsp_write_32bit(struct aw_device *aw_dev, in aw_dev_dsp_write_32bit() argument
43 ret = regmap_write(aw_dev->regmap, AW88395_DSPMADD_REG, dsp_addr); in aw_dev_dsp_write_32bit()
45 dev_err(aw_dev->dev, "%s write addr error, ret=%d", __func__, ret); in aw_dev_dsp_write_32bit()
50 ret = regmap_write(aw_dev->regmap, AW88395_DSPMDAT_REG, (u16)temp_data); in aw_dev_dsp_write_32bit()
52 dev_err(aw_dev in aw_dev_dsp_write_32bit()
66 aw_dev_dsp_write(struct aw_device *aw_dev, unsigned short dsp_addr, unsigned int dsp_data, unsigned char data_type) aw_dev_dsp_write() argument
100 aw_dev_dsp_read_16bit(struct aw_device *aw_dev, unsigned short dsp_addr, unsigned int *dsp_data) aw_dev_dsp_read_16bit() argument
122 aw_dev_dsp_read_32bit(struct aw_device *aw_dev, unsigned short dsp_addr, unsigned int *dsp_data) aw_dev_dsp_read_32bit() argument
151 aw_dev_dsp_read(struct aw_device *aw_dev, unsigned short dsp_addr, unsigned int *dsp_data, unsigned char data_type) aw_dev_dsp_read() argument
186 aw_dev_read_chipid(struct aw_device *aw_dev, u16 *chip_id) aw_dev_read_chipid() argument
215 aw_dev_dsp_fw_check(struct aw_device *aw_dev) aw_dev_dsp_fw_check() argument
257 aw_dev_set_volume(struct aw_device *aw_dev, unsigned int value) aw_dev_set_volume() argument
283 aw88395_dev_set_volume(struct aw_device *aw_dev, unsigned short set_vol) aw88395_dev_set_volume() argument
293 aw_dev_fade_in(struct aw_device *aw_dev) aw_dev_fade_in() argument
317 aw_dev_fade_out(struct aw_device *aw_dev) aw_dev_fade_out() argument
342 aw_dev_modify_dsp_cfg(struct aw_device *aw_dev, unsigned int addr, unsigned int dsp_data, unsigned char data_type) aw_dev_modify_dsp_cfg() argument
375 aw_dev_dsp_set_cali_re(struct aw_device *aw_dev) aw_dev_dsp_set_cali_re() argument
399 aw_dev_i2s_tx_enable(struct aw_device *aw_dev, bool flag) aw_dev_i2s_tx_enable() argument
415 aw_dev_dsp_set_crc32(struct aw_device *aw_dev) aw_dev_dsp_set_crc32() argument
439 aw_dev_dsp_check_crc_enable(struct aw_device *aw_dev, bool flag) aw_dev_dsp_check_crc_enable() argument
454 aw_dev_dsp_check_st(struct aw_device *aw_dev) aw_dev_dsp_check_st() argument
480 aw_dev_dsp_enable(struct aw_device *aw_dev, bool is_enable) aw_dev_dsp_enable() argument
497 aw_dev_dsp_check_crc32(struct aw_device *aw_dev) aw_dev_dsp_check_crc32() argument
529 aw_dev_pwd(struct aw_device *aw_dev, bool pwd) aw_dev_pwd() argument
544 aw_dev_amppd(struct aw_device *aw_dev, bool amppd) aw_dev_amppd() argument
559 aw88395_dev_mute(struct aw_device *aw_dev, bool is_mute) aw88395_dev_mute() argument
578 aw_dev_get_icalk(struct aw_device *aw_dev, int16_t *icalk) aw_dev_get_icalk() argument
598 aw_dev_get_vcalk(struct aw_device *aw_dev, int16_t *vcalk) aw_dev_get_vcalk() argument
620 aw_dev_get_vcalk_dac(struct aw_device *aw_dev, int16_t *vcalk) aw_dev_get_vcalk_dac() argument
640 aw_dev_vsense_select(struct aw_device *aw_dev, int *vsense_select) aw_dev_vsense_select() argument
663 aw_dev_set_vcalb(struct aw_device *aw_dev) aw_dev_set_vcalb() argument
742 aw_dev_get_cali_f0_delay(struct aw_device *aw_dev) aw_dev_get_cali_f0_delay() argument
760 aw_dev_get_int_status(struct aw_device *aw_dev, unsigned short *int_status) aw_dev_get_int_status() argument
774 aw_dev_clear_int_status(struct aw_device *aw_dev) aw_dev_clear_int_status() argument
786 aw_dev_get_iis_status(struct aw_device *aw_dev) aw_dev_get_iis_status() argument
802 aw_dev_check_mode1_pll(struct aw_device *aw_dev) aw_dev_check_mode1_pll() argument
819 aw_dev_check_mode2_pll(struct aw_device *aw_dev) aw_dev_check_mode2_pll() argument
869 aw_dev_check_syspll(struct aw_device *aw_dev) aw_dev_check_syspll() argument
886 aw_dev_check_sysst(struct aw_device *aw_dev) aw_dev_check_sysst() argument
911 aw_dev_check_sysint(struct aw_device *aw_dev) aw_dev_check_sysint() argument
925 aw_dev_get_cur_mode_st(struct aw_device *aw_dev) aw_dev_get_cur_mode_st() argument
942 aw_dev_get_dsp_config(struct aw_device *aw_dev, unsigned char *dsp_cfg) aw_dev_get_dsp_config() argument
958 aw_dev_select_memclk(struct aw_device *aw_dev, unsigned char flag) aw_dev_select_memclk() argument
983 aw_dev_get_dsp_status(struct aw_device *aw_dev) aw_dev_get_dsp_status() argument
997 aw_dev_get_vmax(struct aw_device *aw_dev, unsigned int *vmax) aw_dev_get_vmax() argument
1002 aw_dev_update_reg_container(struct aw_device *aw_dev, unsigned char *data, unsigned int len) aw_dev_update_reg_container() argument
1074 aw_dev_reg_update(struct aw_device *aw_dev, unsigned char *data, unsigned int len) aw_dev_reg_update() argument
1095 struct aw_device *aw_dev = aw_dev_get_ra() local
1113 aw_dev_dsp_update_container(struct aw_device *aw_dev, unsigned char *data, unsigned int len, unsigned short base) aw_dev_dsp_update_container() argument
1163 aw_dev_dsp_update_fw(struct aw_device *aw_dev, unsigned char *data, unsigned int len) aw_dev_dsp_update_fw() argument
1179 aw_dev_copy_to_crc_dsp_cfg(struct aw_device *aw_dev, unsigned char *data, unsigned int size) aw_dev_copy_to_crc_dsp_cfg() argument
1202 aw_dev_dsp_update_cfg(struct aw_device *aw_dev, unsigned char *data, unsigned int len) aw_dev_dsp_update_cfg() argument
1242 aw_dev_check_sram(struct aw_device *aw_dev) aw_dev_check_sram() argument
1291 aw88395_dev_fw_update(struct aw_device *aw_dev, bool up_dsp_fw_en, bool force_up_en) aw88395_dev_fw_update() argument
1370 aw_dev_dsp_check(struct aw_device *aw_dev) aw_dev_dsp_check() argument
1402 struct aw_device *aw_dev = aw_dev_update_cali_re() local
1415 aw88395_dev_start(struct aw_device *aw_dev) aw88395_dev_start() argument
1496 aw88395_dev_stop(struct aw_device *aw_dev) aw88395_dev_stop() argument
1548 aw88395_dev_init(struct aw_device *aw_dev, struct aw_container *aw_cfg) aw88395_dev_init() argument
1591 aw88395_parse_channel_dt(struct aw_device *aw_dev) aw88395_parse_channel_dt() argument
1610 aw88395_parse_fade_enable_dt(struct aw_device *aw_dev) aw88395_parse_fade_enable_dt() argument
1628 aw_dev_init(struct aw_device *aw_dev) aw_dev_init() argument
1647 aw88395_dev_get_profile_count(struct aw_device *aw_dev) aw88395_dev_get_profile_count() argument
1653 aw88395_dev_get_profile_index(struct aw_device *aw_dev) aw88395_dev_get_profile_index() argument
1659 aw88395_dev_set_profile_index(struct aw_device *aw_dev, int index) aw88395_dev_set_profile_index() argument
1676 aw88395_dev_get_prof_name(struct aw_device *aw_dev, int index) aw88395_dev_get_prof_name() argument
1693 aw88395_dev_get_prof_data(struct aw_device *aw_dev, int index, struct aw_prof_desc **prof_desc) aw88395_dev_get_prof_data() argument
1708 aw88395_init(struct aw_device **aw_dev, struct i2c_client *i2c, struct regmap *regmap) aw88395_init() argument
[all...]
H A Daw88395_lib.c25 static int aw_parse_bin_header(struct aw_device *aw_dev, struct aw_bin *bin);
27 static int aw_check_sum(struct aw_device *aw_dev, struct aw_bin *bin, int bin_num) in aw_check_sum() argument
42 dev_dbg(aw_dev->dev, "%s -- check_sum = %p, check_sum = 0x%x, sum_data = 0x%x", in aw_check_sum()
45 dev_err(aw_dev->dev, "%s. CheckSum Fail.bin_num=%d, CheckSum:0x%x, SumData:0x%x", in aw_check_sum()
53 static int aw_check_data_version(struct aw_device *aw_dev, struct aw_bin *bin, int bin_num) in aw_check_data_version() argument
57 dev_err(aw_dev->dev, "aw_bin_parse Unrecognized this bin data version\n"); in aw_check_data_version()
64 static int aw_check_register_num(struct aw_device *aw_dev, struct aw_bin *bin, int bin_num) in aw_check_register_num() argument
76 dev_dbg(aw_dev->dev, "%s,parse_register_num = 0x%x,check_register_num = 0x%x\n", in aw_check_register_num()
79 dev_err(aw_dev->dev, "%s parse_register_num = 0x%x,check_register_num = 0x%x\n", in aw_check_register_num()
91 static int aw_check_dsp_reg_num(struct aw_device *aw_dev, struc argument
122 aw_check_soc_app_num(struct aw_device *aw_dev, struct aw_bin *bin, int bin_num) aw_check_soc_app_num() argument
159 aw_parse_one_of_multi_bins(struct aw_device *aw_dev, unsigned int bin_num, int bin_serial_num, struct aw_bin *bin) aw_parse_one_of_multi_bins() argument
190 aw_get_multi_bin_header(struct aw_device *aw_dev, struct aw_bin *bin) aw_get_multi_bin_header() argument
212 aw_parse_bin_header(struct aw_device *aw_dev, struct aw_bin *bin) aw_parse_bin_header() argument
247 aw_check_bin_header_version(struct aw_device *aw_dev, struct aw_bin *bin) aw_check_bin_header_version() argument
263 aw_parsing_bin_file(struct aw_device *aw_dev, struct aw_bin *bin) aw_parsing_bin_file() argument
362 aw_dev_prof_parse_multi_bin(struct aw_device *aw_dev, unsigned char *data, unsigned int data_len, struct aw_prof_desc *prof_desc) aw_dev_prof_parse_multi_bin() argument
433 aw_dev_parse_reg_bin_with_hdr(struct aw_device *aw_dev, uint8_t *data, uint32_t data_len, struct aw_prof_desc *prof_desc) aw_dev_parse_reg_bin_with_hdr() argument
482 aw_dev_parse_data_by_sec_type(struct aw_device *aw_dev, struct aw_cfg_hdr *cfg_hdr, struct aw_cfg_dde *cfg_dde, struct aw_prof_desc *scene_prof_desc) aw_dev_parse_data_by_sec_type() argument
511 aw_dev_parse_dev_type(struct aw_device *aw_dev, struct aw_cfg_hdr *prof_hdr, struct aw_all_prof_info *all_prof_info) aw_dev_parse_dev_type() argument
548 aw_dev_parse_dev_default_type(struct aw_device *aw_dev, struct aw_cfg_hdr *prof_hdr, struct aw_all_prof_info *all_prof_info) aw_dev_parse_dev_default_type() argument
583 aw88261_dev_cfg_get_valid_prof(struct aw_device *aw_dev, struct aw_all_prof_info all_prof_info) aw88261_dev_cfg_get_valid_prof() argument
625 aw88395_dev_cfg_get_valid_prof(struct aw_device *aw_dev, struct aw_all_prof_info all_prof_info) aw88395_dev_cfg_get_valid_prof() argument
684 aw_dev_load_cfg_by_hdr(struct aw_device *aw_dev, struct aw_cfg_hdr *prof_hdr) aw_dev_load_cfg_by_hdr() argument
728 aw_dev_create_prof_name_list_v1(struct aw_device *aw_dev) aw_dev_create_prof_name_list_v1() argument
754 aw_get_dde_type_info(struct aw_device *aw_dev, struct aw_container *aw_cfg) aw_get_dde_type_info() argument
783 aw_get_dev_scene_count_v1(struct aw_device *aw_dev, struct aw_container *aw_cfg, unsigned int *scene_num) aw_get_dev_scene_count_v1() argument
823 aw_get_default_scene_count_v1(struct aw_device *aw_dev, struct aw_container *aw_cfg, unsigned int *scene_num) aw_get_default_scene_count_v1() argument
862 aw_dev_parse_scene_count_v1(struct aw_device *aw_dev, struct aw_container *aw_cfg, unsigned int *count) aw_dev_parse_scene_count_v1() argument
888 aw_dev_parse_data_by_sec_type_v1(struct aw_device *aw_dev, struct aw_cfg_hdr *prof_hdr, struct aw_cfg_dde_v1 *cfg_dde, int *cur_scene_id) aw_dev_parse_data_by_sec_type_v1() argument
928 aw_dev_parse_dev_type_v1(struct aw_device *aw_dev, struct aw_cfg_hdr *prof_hdr) aw_dev_parse_dev_type_v1() argument
958 aw_dev_parse_default_type_v1(struct aw_device *aw_dev, struct aw_cfg_hdr *prof_hdr) aw_dev_parse_default_type_v1() argument
987 aw_dev_parse_by_hdr_v1(struct aw_device *aw_dev, struct aw_cfg_hdr *cfg_hdr) aw_dev_parse_by_hdr_v1() argument
1009 aw_dev_load_cfg_by_hdr_v1(struct aw_device *aw_dev, struct aw_container *aw_cfg) aw_dev_load_cfg_by_hdr_v1() argument
1043 aw88395_dev_cfg_load(struct aw_device *aw_dev, struct aw_container *aw_cfg) aw88395_dev_cfg_load() argument
1077 aw_dev_check_cfg_by_hdr(struct aw_device *aw_dev, struct aw_container *aw_cfg) aw_dev_check_cfg_by_hdr() argument
1135 aw_dev_check_acf_by_hdr_v1(struct aw_device *aw_dev, struct aw_container *aw_cfg) aw_dev_check_acf_by_hdr_v1() argument
1194 aw88395_dev_load_acf_check(struct aw_device *aw_dev, struct aw_container *aw_cfg) aw88395_dev_load_acf_check() argument
[all...]
H A Daw88395_device.h177 int aw88395_init(struct aw_device **aw_dev, struct i2c_client *i2c, struct regmap *regmap);
178 int aw88395_dev_init(struct aw_device *aw_dev, struct aw_container *aw_cfg);
179 int aw88395_dev_start(struct aw_device *aw_dev);
180 int aw88395_dev_stop(struct aw_device *aw_dev);
181 int aw88395_dev_fw_update(struct aw_device *aw_dev, bool up_dsp_fw_en, bool force_up_en);
183 void aw88395_dev_set_volume(struct aw_device *aw_dev, unsigned short set_vol);
184 int aw88395_dev_get_prof_data(struct aw_device *aw_dev, int index,
186 char *aw88395_dev_get_prof_name(struct aw_device *aw_dev, int index);
187 int aw88395_dev_set_profile_index(struct aw_device *aw_dev, int index);
188 int aw88395_dev_get_profile_index(struct aw_device *aw_dev);
[all...]
H A Daw88395.c109 struct aw_device *aw_dev = aw88395->aw_pa; in aw88395_get_fade_in_time() local
111 ucontrol->value.integer.value[0] = aw_dev->fade_in_time; in aw88395_get_fade_in_time()
123 struct aw_device *aw_dev = aw88395->aw_pa; in aw88395_set_fade_in_time() local
131 if (time != aw_dev->fade_in_time) { in aw88395_set_fade_in_time()
132 aw_dev->fade_in_time = time; in aw88395_set_fade_in_time()
144 struct aw_device *aw_dev = aw88395->aw_pa; in aw88395_get_fade_out_time() local
146 ucontrol->value.integer.value[0] = aw_dev->fade_out_time; in aw88395_get_fade_out_time()
158 struct aw_device *aw_dev = aw88395->aw_pa; in aw88395_set_fade_out_time() local
165 if (time != aw_dev->fade_out_time) { in aw88395_set_fade_out_time()
166 aw_dev in aw88395_set_fade_out_time()
321 struct aw_device *aw_dev = aw88395->aw_pa; aw88395_re_get() local
335 struct aw_device *aw_dev = aw88395->aw_pa; aw88395_re_set() local
[all...]
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Daw88261.c28 static void aw88261_dev_set_volume(struct aw_device *aw_dev, unsigned int value) in aw88261_dev_set_volume() argument
30 struct aw_volume_desc *vol_desc = &aw_dev->volume_desc; in aw88261_dev_set_volume()
37 regmap_read(aw_dev->regmap, AW88261_SYSCTRL2_REG, &reg_value); in aw88261_dev_set_volume()
41 dev_dbg(aw_dev->dev, "value 0x%x , real_value:0x%x", value, real_value); in aw88261_dev_set_volume()
43 regmap_write(aw_dev->regmap, AW88261_SYSCTRL2_REG, real_value); in aw88261_dev_set_volume()
46 static void aw88261_dev_fade_in(struct aw_device *aw_dev) in aw88261_dev_fade_in() argument
48 struct aw_volume_desc *desc = &aw_dev->volume_desc; in aw88261_dev_fade_in()
50 int fade_step = aw_dev->fade_step; in aw88261_dev_fade_in()
53 if (fade_step == 0 || aw_dev->fade_in_time == 0) { in aw88261_dev_fade_in()
54 aw88261_dev_set_volume(aw_dev, fade_in_vo in aw88261_dev_fade_in()
68 aw88261_dev_fade_out(struct aw_device *aw_dev) aw88261_dev_fade_out() argument
90 aw88261_dev_i2s_tx_enable(struct aw_device *aw_dev, bool flag) aw88261_dev_i2s_tx_enable() argument
100 aw88261_dev_pwd(struct aw_device *aw_dev, bool pwd) aw88261_dev_pwd() argument
110 aw88261_dev_amppd(struct aw_device *aw_dev, bool amppd) aw88261_dev_amppd() argument
120 aw88261_dev_mute(struct aw_device *aw_dev, bool is_mute) aw88261_dev_mute() argument
133 aw88261_dev_clear_int_status(struct aw_device *aw_dev) aw88261_dev_clear_int_status() argument
145 aw88261_dev_get_iis_status(struct aw_device *aw_dev) aw88261_dev_get_iis_status() argument
161 aw88261_dev_check_mode1_pll(struct aw_device *aw_dev) aw88261_dev_check_mode1_pll() argument
178 aw88261_dev_check_mode2_pll(struct aw_device *aw_dev) aw88261_dev_check_mode2_pll() argument
228 aw88261_dev_check_syspll(struct aw_device *aw_dev) aw88261_dev_check_syspll() argument
245 aw88261_dev_check_sysst(struct aw_device *aw_dev) aw88261_dev_check_sysst() argument
270 aw88261_dev_uls_hmute(struct aw_device *aw_dev, bool uls_hmute) aw88261_dev_uls_hmute() argument
308 aw88261_dev_get_icalk(struct aw_device *aw_dev, int16_t *icalk) aw88261_dev_get_icalk() argument
336 aw88261_dev_get_vcalk(struct aw_device *aw_dev, int16_t *vcalk) aw88261_dev_get_vcalk() argument
363 aw88261_dev_set_vcalb(struct aw_device *aw_dev) aw88261_dev_set_vcalb() argument
396 struct aw_device *aw_dev = aw88261->aw_pa; aw88261_dev_reg_update() local
480 aw88261_dev_get_prof_name(struct aw_device *aw_dev, int index) aw88261_dev_get_prof_name() argument
496 aw88261_dev_get_prof_data(struct aw_device *aw_dev, int index, struct aw_prof_desc **prof_desc) aw88261_dev_get_prof_data() argument
512 struct aw_device *aw_dev = aw88261->aw_pa; aw88261_dev_fw_update() local
546 struct aw_device *aw_dev = aw88261->aw_pa; aw88261_dev_start() local
607 aw88261_dev_stop(struct aw_device *aw_dev) aw88261_dev_stop() argument
638 struct aw_device *aw_dev = aw88261->aw_pa; aw88261_reg_update() local
738 struct aw_device *aw_dev = aw88261->aw_pa; aw88261_get_fade_in_time() local
752 struct aw_device *aw_dev = aw88261->aw_pa; aw88261_set_fade_in_time() local
773 struct aw_device *aw_dev = aw88261->aw_pa; aw88261_get_fade_out_time() local
787 struct aw_device *aw_dev = aw88261->aw_pa; aw88261_set_fade_out_time() local
802 aw88261_dev_set_profile_index(struct aw_device *aw_dev, int index) aw88261_dev_set_profile_index() argument
1047 struct aw_device *aw_dev = aw88261->aw_pa; aw88261_dev_init() local
1187 struct aw_device *aw_dev = aw88261->aw_pa; aw88261_parse_channel_dt() local
1201 struct aw_device *aw_dev; aw88261_init() local
[all...]

Completed in 5 milliseconds