Home
last modified time | relevance | path

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

/linux/sound/soc/codecs/aw88395/
H A Daw88395_device.c18 static int aw_dev_dsp_write_16bit(struct aw_device *aw_dev, in aw_dev_dsp_write_16bit() argument
23 ret = regmap_write(aw_dev->regmap, AW88395_DSPMADD_REG, dsp_addr); in aw_dev_dsp_write_16bit()
25 dev_err(aw_dev->dev, "%s write addr error, ret=%d", __func__, ret); in aw_dev_dsp_write_16bit()
29 ret = regmap_write(aw_dev->regmap, AW88395_DSPMDAT_REG, (u16)dsp_data); in aw_dev_dsp_write_16bit()
31 dev_err(aw_dev->dev, "%s write data error, ret=%d", __func__, ret); in aw_dev_dsp_write_16bit()
38 static int aw_dev_dsp_write_32bit(struct aw_device *aw_dev, in aw_dev_dsp_write_32bit() argument
44 ret = regmap_write(aw_dev->regmap, AW88395_DSPMADD_REG, dsp_addr); in aw_dev_dsp_write_32bit()
46 dev_err(aw_dev->dev, "%s write addr error, ret=%d", __func__, ret); in aw_dev_dsp_write_32bit()
51 ret = regmap_write(aw_dev->regmap, AW88395_DSPMDAT_REG, (u16)temp_data); in aw_dev_dsp_write_32bit()
53 dev_err(aw_dev->dev, "%s write datal error, ret=%d", __func__, ret); in aw_dev_dsp_write_32bit()
[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, struct aw_bin *bin, int bin_num) in aw_check_dsp_reg_num() argument
[all …]
H A Daw88395_device.h197 int aw88395_init(struct aw_device **aw_dev, struct i2c_client *i2c, struct regmap *regmap);
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);
201 int aw88395_dev_fw_update(struct aw_device *aw_dev, bool up_dsp_fw_en, bool force_up_en);
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);
[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->fade_out_time = time; in aw88395_set_fade_out_time()
[all …]
/linux/sound/soc/codecs/
H A Daw88399.c29 static void aw_dev_pwd(struct aw_device *aw_dev, bool pwd) in aw_dev_pwd() argument
34 ret = regmap_update_bits(aw_dev->regmap, AW88399_SYSCTRL_REG, in aw_dev_pwd()
37 ret = regmap_update_bits(aw_dev->regmap, AW88399_SYSCTRL_REG, in aw_dev_pwd()
41 dev_dbg(aw_dev->dev, "%s failed", __func__); in aw_dev_pwd()
44 static void aw_dev_get_int_status(struct aw_device *aw_dev, unsigned short *int_status) in aw_dev_get_int_status() argument
49 ret = regmap_read(aw_dev->regmap, AW88399_SYSINT_REG, &reg_val); in aw_dev_get_int_status()
51 dev_err(aw_dev->dev, "read interrupt reg fail, ret=%d", ret); in aw_dev_get_int_status()
55 dev_dbg(aw_dev->dev, "read interrupt reg=0x%04x", *int_status); in aw_dev_get_int_status()
58 static void aw_dev_clear_int_status(struct aw_device *aw_dev) in aw_dev_clear_int_status() argument
63 aw_dev_get_int_status(aw_dev, &int_status); in aw_dev_clear_int_status()
[all …]
H A Daw88166.c44 static void aw_dev_pwd(struct aw_device *aw_dev, bool pwd) in aw_dev_pwd() argument
49 ret = regmap_update_bits(aw_dev->regmap, AW88166_SYSCTRL_REG, in aw_dev_pwd()
52 ret = regmap_update_bits(aw_dev->regmap, AW88166_SYSCTRL_REG, in aw_dev_pwd()
56 dev_dbg(aw_dev->dev, "%s failed", __func__); in aw_dev_pwd()
59 static void aw_dev_get_int_status(struct aw_device *aw_dev, unsigned short *int_status) in aw_dev_get_int_status() argument
64 ret = regmap_read(aw_dev->regmap, AW88166_SYSINT_REG, &reg_val); in aw_dev_get_int_status()
66 dev_err(aw_dev->dev, "read interrupt reg fail, ret=%d", ret); in aw_dev_get_int_status()
70 dev_dbg(aw_dev->dev, "read interrupt reg=0x%04x", *int_status); in aw_dev_get_int_status()
73 static void aw_dev_clear_int_status(struct aw_device *aw_dev) in aw_dev_clear_int_status() argument
78 aw_dev_get_int_status(aw_dev, &int_status); in aw_dev_clear_int_status()
[all …]
H A Daw88081.c48 static int aw88081_dev_get_iis_status(struct aw_device *aw_dev) in aw88081_dev_get_iis_status() argument
53 ret = regmap_read(aw_dev->regmap, AW88081_SYSST_REG, &reg_val); in aw88081_dev_get_iis_status()
57 dev_err(aw_dev->dev, "check pll lock fail,reg_val:0x%04x", reg_val); in aw88081_dev_get_iis_status()
64 static int aw88081_dev_check_mode1_pll(struct aw_device *aw_dev) in aw88081_dev_check_mode1_pll() argument
69 ret = aw88081_dev_get_iis_status(aw_dev); in aw88081_dev_check_mode1_pll()
71 dev_err(aw_dev->dev, "mode1 iis signal check error"); in aw88081_dev_check_mode1_pll()
81 static int aw88081_dev_check_mode2_pll(struct aw_device *aw_dev) in aw88081_dev_check_mode2_pll() argument
86 ret = regmap_read(aw_dev->regmap, AW88081_PLLCTRL1_REG, &reg_val); in aw88081_dev_check_mode2_pll()
92 dev_dbg(aw_dev->dev, "CCO_MUX is already divider"); in aw88081_dev_check_mode2_pll()
97 ret = regmap_update_bits(aw_dev->regmap, AW88081_PLLCTRL1_REG, in aw88081_dev_check_mode2_pll()
[all …]
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_vol); in aw88261_dev_fade_in()
[all …]
H A Daw87390.c26 static int aw87390_dev_reg_update(struct aw_device *aw_dev, in aw87390_dev_reg_update() argument
32 dev_err(aw_dev->dev, "data is NULL\n"); in aw87390_dev_reg_update()
42 ret = regmap_write(aw_dev->regmap, data[i], data[i + 1]); in aw87390_dev_reg_update()
50 static int aw87390_dev_get_prof_name(struct aw_device *aw_dev, int index, char **prof_name) in aw87390_dev_get_prof_name() argument
52 struct aw_prof_info *prof_info = &aw_dev->prof_info; in aw87390_dev_get_prof_name()
55 if ((index >= aw_dev->prof_info.count) || (index < 0)) { in aw87390_dev_get_prof_name()
56 dev_err(aw_dev->dev, "index[%d] overflow count[%d]\n", in aw87390_dev_get_prof_name()
57 index, aw_dev->prof_info.count); in aw87390_dev_get_prof_name()
61 prof_desc = &aw_dev->prof_info.prof_desc[index]; in aw87390_dev_get_prof_name()
68 static int aw87390_dev_get_prof_data(struct aw_device *aw_dev, in argument
82 aw87390_dev_fw_update(struct aw_device * aw_dev) aw87390_dev_fw_update() argument
117 aw87390_power_off(struct aw_device * aw_dev) aw87390_power_off() argument
134 aw87390_power_on(struct aw_device * aw_dev) aw87390_power_on() argument
162 aw87390_dev_set_profile_index(struct aw_device * aw_dev,int index) aw87390_dev_set_profile_index() argument
299 struct aw_device *aw_dev = aw87390->aw_pa; aw87390_drv_event() local
354 struct aw_device *aw_dev = aw87390->aw_pa; aw87390_parse_channel_dt() local
365 struct aw_device *aw_dev; aw87390_init() local
[all...]