Searched refs:aw_dev (Results 1 – 9 of 9) sorted by relevance
| /sound/soc/codecs/aw88395/ |
| A D | aw88395_device.c | 308 usleep_range(aw_dev->fade_in_time, aw_dev->fade_in_time + 10); in aw_dev_fade_in() 328 usleep_range(aw_dev->fade_out_time, aw_dev->fade_out_time + 10); in aw_dev_fade_out() 1052 if (aw_dev->prof_cur != aw_dev->prof_index) { in aw_dev_update_reg_container() 1060 aw_dev_get_dsp_config(aw_dev, &aw_dev->dsp_cfg); in aw_dev_update_reg_container() 1218 ret = aw_dev_get_vmax(aw_dev, &aw_dev->vmax_desc.init_vmax); in aw_dev_dsp_update_cfg() 1285 if ((aw_dev->prof_cur == aw_dev->prof_index) && in aw88395_dev_fw_update() 1349 aw_dev->prof_cur = aw_dev->prof_index; in aw88395_dev_fw_update() 1381 dev_err(aw_dev->dev, "unknown dsp cfg=%d", aw_dev->dsp_cfg); in aw_dev_dsp_check() 1552 aw_dev->prof_cur = aw_dev->prof_info.prof_desc[0].id; in aw88395_dev_init() 1553 aw_dev->prof_index = aw_dev->prof_info.prof_desc[0].id; in aw88395_dev_init() [all …]
|
| A D | aw88395_lib.c | 187 return aw_parse_bin_header(aw_dev, bin); in aw_parse_one_of_multi_bins() 256 return aw_parse_bin_header(aw_dev, bin); in aw_check_bin_header_version() 284 ret = aw_check_sum(aw_dev, bin, i); in aw_parsing_bin_file() 575 dev_dbg(aw_dev->dev, "get valid profile:%d", aw_dev->prof_info.count); in aw_dev_cfg_get_reg_valid_prof() 626 dev_dbg(aw_dev->dev, "get valid profile:%d", aw_dev->prof_info.count); in aw_dev_cfg_get_multiple_valid_prof() 683 switch (aw_dev->prof_data_type) { in aw_dev_load_cfg_by_hdr() 819 switch (aw_dev->prof_info.prof_type) { in aw_dev_parse_scene_count_v1() 827 dev_err(aw_dev->dev, "unsupported prof_type[%x]", aw_dev->prof_info.prof_type); in aw_dev_parse_scene_count_v1() 939 switch (aw_dev->prof_info.prof_type) { in aw_dev_parse_by_hdr_v1() 948 aw_dev->prof_info.prof_type); in aw_dev_parse_by_hdr_v1() [all …]
|
| A D | aw88395_device.h | 198 int aw88395_dev_init(struct aw_device *aw_dev, struct aw_container *aw_cfg); 199 int aw88395_dev_start(struct aw_device *aw_dev); 200 int aw88395_dev_stop(struct aw_device *aw_dev); 203 void aw88395_dev_set_volume(struct aw_device *aw_dev, unsigned short set_vol); 204 int aw88395_dev_get_prof_data(struct aw_device *aw_dev, int index, 206 int aw88395_dev_get_prof_name(struct aw_device *aw_dev, int index, char **prof_name); 207 int aw88395_dev_set_profile_index(struct aw_device *aw_dev, int index); 208 int aw88395_dev_get_profile_index(struct aw_device *aw_dev); 209 int aw88395_dev_get_profile_count(struct aw_device *aw_dev); 211 int aw88395_dev_cfg_load(struct aw_device *aw_dev, struct aw_container *aw_cfg); [all …]
|
| A D | aw88395.c | 109 struct aw_device *aw_dev = aw88395->aw_pa; in aw88395_get_fade_in_time() local 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 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->fade_out_time = time; in aw88395_set_fade_out_time() 318 struct aw_device *aw_dev = aw88395->aw_pa; in aw88395_re_get() local 339 if (aw_dev->cali_desc.cali_re != value) { in aw88395_re_set() [all …]
|
| /sound/soc/codecs/ |
| A D | aw88399.c | 749 dev_err(aw_dev->dev, "unknown dsp cfg=%d", aw_dev->dsp_cfg); in aw_dev_dsp_check() 793 usleep_range(aw_dev->fade_in_time, aw_dev->fade_in_time + 10); in aw_dev_fade_in() 1157 if (aw_dev->prof_cur != aw_dev->prof_index) in aw_dev_update_reg_container() 1222 if ((aw_dev->prof_cur == aw_dev->prof_index) && in aw88399_dev_fw_update() 1285 aw_dev->prof_cur = aw_dev->prof_index; in aw88399_dev_fw_update() 1688 aw_cali_svc_run_mute(aw_dev, aw_dev->cali_desc.cali_result); in aw_cali_svc_get_smooth_cali_re() 1706 aw_cali_svc_run_mute(aw_dev, aw_dev->cali_desc.cali_result); in aw_cali_svc_get_smooth_cali_re() 2043 if (aw_dev->status && aw_dev->cali_desc.cali_switch) in aw88399_calib_set() 2061 aw_dev->prof_cur = aw_dev->prof_info.prof_desc[0].id; in aw88399_dev_init() 2062 aw_dev->prof_index = aw_dev->prof_info.prof_desc[0].id; in aw88399_dev_init() [all …]
|
| A D | aw88166.c | 724 dev_err(aw_dev->dev, "unknown dsp cfg=%d", aw_dev->dsp_cfg); in aw_dev_dsp_check() 768 usleep_range(aw_dev->fade_in_time, aw_dev->fade_in_time + 10); in aw_dev_fade_in() 788 usleep_range(aw_dev->fade_out_time, aw_dev->fade_out_time + 10); in aw_dev_fade_out() 793 usleep_range(aw_dev->fade_out_time, aw_dev->fade_out_time + 10); in aw_dev_fade_out() 1123 if (aw_dev->prof_cur != aw_dev->prof_index) in aw_dev_update_reg_container() 1188 if ((aw_dev->prof_cur == aw_dev->prof_index) && in aw88166_dev_fw_update() 1255 aw_dev->prof_cur = aw_dev->prof_index; in aw88166_dev_fw_update() 1661 aw_dev->prof_cur = aw_dev->prof_info.prof_desc[0].id; in aw88166_dev_init() 1662 aw_dev->prof_index = aw_dev->prof_info.prof_desc[0].id; in aw88166_dev_init() 1849 aw_dev = devm_kzalloc(&i2c->dev, sizeof(*aw_dev), GFP_KERNEL); in aw88166_init() [all …]
|
| A D | aw88081.c | 283 usleep_range(aw_dev->fade_in_time, aw_dev->fade_in_time + 10); in aw88081_dev_fade_in() 303 usleep_range(aw_dev->fade_out_time, aw_dev->fade_out_time + 10); in aw88081_dev_fade_out() 450 if (aw_dev->prof_cur != aw_dev->prof_index) in aw88081_dev_reg_update() 499 ret = aw88081_dev_get_prof_name(aw_dev, aw_dev->prof_index, &prof_name); in aw88081_dev_fw_update() 520 aw_dev->prof_cur = aw_dev->prof_index; in aw88081_dev_fw_update() 728 if (aw_dev->prof_cur != aw_dev->prof_index) { in aw88081_reg_update() 735 aw_dev->prof_cur = aw_dev->prof_index; in aw88081_reg_update() 1086 aw_dev = devm_kzalloc(&i2c->dev, sizeof(*aw_dev), GFP_KERNEL); in aw88081_init() 1087 if (!aw_dev) in aw88081_init() 1091 aw_dev->i2c = i2c; in aw88081_init() [all …]
|
| A D | aw88261.c | 80 usleep_range(aw_dev->fade_out_time, aw_dev->fade_out_time + 10); in aw88261_dev_fade_out() 85 usleep_range(aw_dev->fade_out_time, aw_dev->fade_out_time + 10); in aw88261_dev_fade_out() 470 if (aw_dev->prof_cur != aw_dev->prof_index) in aw88261_dev_reg_update() 519 ret = aw88261_dev_get_prof_name(aw_dev, aw_dev->prof_index, &prof_name); in aw88261_dev_fw_update() 540 aw_dev->prof_cur = aw_dev->prof_index; in aw88261_dev_fw_update() 652 if (aw_dev->prof_cur != aw_dev->prof_index) { in aw88261_reg_update() 661 aw_dev->prof_cur = aw_dev->prof_index; in aw88261_reg_update() 1206 aw_dev = devm_kzalloc(&i2c->dev, sizeof(*aw_dev), GFP_KERNEL); in aw88261_init() 1207 if (!aw_dev) in aw88261_init() 1211 aw_dev->i2c = i2c; in aw88261_init() [all …]
|
| A D | aw87390.c | 89 ret = aw87390_dev_get_prof_name(aw_dev, aw_dev->prof_index, &prof_name); in aw87390_dev_fw_update() 97 ret = aw87390_dev_get_prof_data(aw_dev, aw_dev->prof_index, &prof_index_desc); in aw87390_dev_fw_update() 112 aw_dev->prof_cur = aw_dev->prof_index; in aw87390_dev_fw_update() 143 if (!aw_dev->fw_status) { in aw87390_power_on() 365 struct aw_device *aw_dev; in aw87390_init() local 383 aw_dev = devm_kzalloc(&i2c->dev, sizeof(*aw_dev), GFP_KERNEL); in aw87390_init() 384 if (!aw_dev) in aw87390_init() 388 aw_dev->i2c = i2c; in aw87390_init() 389 aw_dev->regmap = regmap; in aw87390_init() 390 aw_dev->dev = &i2c->dev; in aw87390_init() [all …]
|
Completed in 55 milliseconds