Home
last modified time | relevance | path

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

/linux/sound/soc/codecs/
H A Daw88261.c27 static void aw88261_dev_set_volume(struct aw_device *aw_dev, unsigned int value) in aw88261_dev_set_volume() argument
29 struct aw_volume_desc *vol_desc = &aw_dev->volume_desc; in aw88261_dev_set_volume()
36 regmap_read(aw_dev->regmap, AW88261_SYSCTRL2_REG, &reg_value); in aw88261_dev_set_volume()
40 dev_dbg(aw_dev->dev, "value 0x%x , real_value:0x%x", value, real_value); in aw88261_dev_set_volume()
42 regmap_write(aw_dev->regmap, AW88261_SYSCTRL2_REG, real_value); in aw88261_dev_set_volume()
45 static void aw88261_dev_fade_in(struct aw_device *aw_dev) in aw88261_dev_fade_in() argument
47 struct aw_volume_desc *desc = &aw_dev->volume_desc; in aw88261_dev_fade_in()
49 int fade_step = aw_dev->fade_step; in aw88261_dev_fade_in()
52 if (fade_step == 0 || aw_dev->fade_in_time == 0) { in aw88261_dev_fade_in()
53 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, int index, in aw87390_dev_get_prof_data() argument
[all …]
/linux/sound/soc/codecs/aw88395/
H A Daw88395_device.h176 int aw88395_init(struct aw_device **aw_dev, struct i2c_client *i2c, struct regmap *regmap);
177 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);
180 int aw88395_dev_fw_update(struct aw_device *aw_dev, bool up_dsp_fw_en, bool force_up_en);
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);
[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 …]