Home
last modified time | relevance | path

Searched refs:aw_dev (Results 1 – 9 of 9) sorted by relevance

/linux-6.15/sound/soc/codecs/aw88395/
H A Daw88395_device.c307 usleep_range(aw_dev->fade_in_time, aw_dev->fade_in_time + 10); in aw_dev_fade_in()
327 usleep_range(aw_dev->fade_out_time, aw_dev->fade_out_time + 10); in aw_dev_fade_out()
1051 if (aw_dev->prof_cur != aw_dev->prof_index) { in aw_dev_update_reg_container()
1059 aw_dev_get_dsp_config(aw_dev, &aw_dev->dsp_cfg); in aw_dev_update_reg_container()
1221 ret = aw_dev_get_vmax(aw_dev, &aw_dev->vmax_desc.init_vmax); in aw_dev_dsp_update_cfg()
1288 if ((aw_dev->prof_cur == aw_dev->prof_index) && in aw88395_dev_fw_update()
1352 aw_dev->prof_cur = aw_dev->prof_index; in aw88395_dev_fw_update()
1384 dev_err(aw_dev->dev, "unknown dsp cfg=%d", aw_dev->dsp_cfg); in aw_dev_dsp_check()
1555 aw_dev->prof_cur = aw_dev->prof_info.prof_desc[0].id; in aw88395_dev_init()
1556 aw_dev->prof_index = aw_dev->prof_info.prof_desc[0].id; in aw88395_dev_init()
[all …]
H A Daw88395_lib.c187 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 …]
H A Daw88395_device.h177 int aw88395_dev_init(struct aw_device *aw_dev, struct aw_container *aw_cfg);
178 int aw88395_dev_start(struct aw_device *aw_dev);
179 int aw88395_dev_stop(struct aw_device *aw_dev);
182 void aw88395_dev_set_volume(struct aw_device *aw_dev, unsigned short set_vol);
183 int aw88395_dev_get_prof_data(struct aw_device *aw_dev, int index,
185 int aw88395_dev_get_prof_name(struct aw_device *aw_dev, int index, char **prof_name);
186 int aw88395_dev_set_profile_index(struct aw_device *aw_dev, int index);
187 int aw88395_dev_get_profile_index(struct aw_device *aw_dev);
188 int aw88395_dev_get_profile_count(struct aw_device *aw_dev);
190 int aw88395_dev_cfg_load(struct aw_device *aw_dev, struct aw_container *aw_cfg);
[all …]
H A Daw88395.c109 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()
320 struct aw_device *aw_dev = aw88395->aw_pa; in aw88395_re_get() local
341 if (aw_dev->cali_desc.cali_re != value) { in aw88395_re_set()
[all …]
/linux-6.15/sound/soc/codecs/
H A Daw88399.c686 dev_err(aw_dev->dev, "unknown dsp cfg=%d", aw_dev->dsp_cfg); in aw_dev_dsp_check()
730 usleep_range(aw_dev->fade_in_time, aw_dev->fade_in_time + 10); in aw_dev_fade_in()
750 usleep_range(aw_dev->fade_out_time, aw_dev->fade_out_time + 10); in aw_dev_fade_out()
755 usleep_range(aw_dev->fade_out_time, aw_dev->fade_out_time + 10); in aw_dev_fade_out()
1098 if (aw_dev->prof_cur != aw_dev->prof_index) in aw_dev_update_reg_container()
1163 if ((aw_dev->prof_cur == aw_dev->prof_index) && in aw88399_dev_fw_update()
1226 aw_dev->prof_cur = aw_dev->prof_index; in aw88399_dev_fw_update()
1634 aw_dev->prof_cur = aw_dev->prof_info.prof_desc[0].id; in aw88399_dev_init()
1635 aw_dev->prof_index = aw_dev->prof_info.prof_desc[0].id; in aw88399_dev_init()
1827 aw_dev = devm_kzalloc(&i2c->dev, sizeof(*aw_dev), GFP_KERNEL); in aw88399_init()
[all …]
H A Daw88166.c723 dev_err(aw_dev->dev, "unknown dsp cfg=%d", aw_dev->dsp_cfg); in aw_dev_dsp_check()
767 usleep_range(aw_dev->fade_in_time, aw_dev->fade_in_time + 10); in aw_dev_fade_in()
787 usleep_range(aw_dev->fade_out_time, aw_dev->fade_out_time + 10); in aw_dev_fade_out()
792 usleep_range(aw_dev->fade_out_time, aw_dev->fade_out_time + 10); in aw_dev_fade_out()
1126 if (aw_dev->prof_cur != aw_dev->prof_index) in aw_dev_update_reg_container()
1191 if ((aw_dev->prof_cur == aw_dev->prof_index) && in aw88166_dev_fw_update()
1258 aw_dev->prof_cur = aw_dev->prof_index; in aw88166_dev_fw_update()
1666 aw_dev->prof_cur = aw_dev->prof_info.prof_desc[0].id; in aw88166_dev_init()
1667 aw_dev->prof_index = aw_dev->prof_info.prof_desc[0].id; in aw88166_dev_init()
1854 aw_dev = devm_kzalloc(&i2c->dev, sizeof(*aw_dev), GFP_KERNEL); in aw88166_init()
[all …]
H A Daw88081.c283 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()
1087 aw_dev = devm_kzalloc(&i2c->dev, sizeof(*aw_dev), GFP_KERNEL); in aw88081_init()
1088 if (!aw_dev) in aw88081_init()
1092 aw_dev->i2c = i2c; in aw88081_init()
[all …]
H A Daw88261.c80 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()
1208 aw_dev = devm_kzalloc(&i2c->dev, sizeof(*aw_dev), GFP_KERNEL); in aw88261_init()
1209 if (!aw_dev) in aw88261_init()
1213 aw_dev->i2c = i2c; in aw88261_init()
[all …]
H A Daw87390.c89 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()
367 struct aw_device *aw_dev; in aw87390_init() local
385 aw_dev = devm_kzalloc(&i2c->dev, sizeof(*aw_dev), GFP_KERNEL); in aw87390_init()
386 if (!aw_dev) in aw87390_init()
390 aw_dev->i2c = i2c; in aw87390_init()
391 aw_dev->regmap = regmap; in aw87390_init()
392 aw_dev->dev = &i2c->dev; in aw87390_init()
[all …]