Home
last modified time | relevance | path

Searched refs:rt715 (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/sound/soc/codecs/
Drt715.c104 static void rt715_get_gain(struct rt715_priv *rt715, unsigned int addr_h, in rt715_get_gain() argument
111 ret = regmap_read(rt715->regmap, addr_l, r_val); in rt715_get_gain()
118 ret = regmap_read(rt715->regmap, addr_h, l_val); in rt715_get_gain()
132 struct rt715_priv *rt715 = snd_soc_component_get_drvdata(component); in rt715_set_amp_gain_put() local
138 if (ucontrol->value.integer.value[i] != rt715->kctl_2ch_vol_ori[i]) { in rt715_set_amp_gain_put()
153 rt715_get_gain(rt715, addr_h, addr_l, val_h, &read_rl, &read_ll); in rt715_set_amp_gain_put()
156 regmap_write(rt715->regmap, in rt715_set_amp_gain_put()
160 rt715->kctl_2ch_vol_ori[0] = ucontrol->value.integer.value[0]; in rt715_set_amp_gain_put()
169 rt715->kctl_2ch_vol_ori[1] = ucontrol->value.integer.value[1]; in rt715_set_amp_gain_put()
182 regmap_write(rt715->regmap, addr_h, in rt715_set_amp_gain_put()
[all …]
Drt715-sdw.c151 struct rt715_priv *rt715 = dev_get_drvdata(dev); in rt715_sdw_read() local
166 ret = regmap_write(rt715->sdw_regmap, reg, 0); in rt715_sdw_read()
171 ret = regmap_write(rt715->sdw_regmap, reg2, val2); in rt715_sdw_read()
176 ret = regmap_write(rt715->sdw_regmap, reg3, in rt715_sdw_read()
182 ret = regmap_write(rt715->sdw_regmap, reg4, (*val & 0xff)); in rt715_sdw_read()
187 ret = regmap_write(rt715->sdw_regmap, reg, *val); in rt715_sdw_read()
193 ret = regmap_write(rt715->sdw_regmap, reg, in rt715_sdw_read()
199 ret = regmap_write(rt715->sdw_regmap, reg2, (*val & 0xff)); in rt715_sdw_read()
205 ret = regmap_write(rt715->sdw_regmap, reg2, in rt715_sdw_read()
209 ret = regmap_write(rt715->sdw_regmap, reg, (*val & 0xff)); in rt715_sdw_read()
[all …]
Drt715-sdca.c32 static int rt715_sdca_index_write(struct rt715_sdca_priv *rt715, in rt715_sdca_index_write() argument
35 struct regmap *regmap = rt715->mbq_regmap; in rt715_sdca_index_write()
43 dev_err(&rt715->slave->dev, in rt715_sdca_index_write()
50 static int rt715_sdca_index_read(struct rt715_sdca_priv *rt715, in rt715_sdca_index_read() argument
53 struct regmap *regmap = rt715->mbq_regmap; in rt715_sdca_index_read()
61 dev_err(&rt715->slave->dev, in rt715_sdca_index_read()
68 static int rt715_sdca_index_update_bits(struct rt715_sdca_priv *rt715, in rt715_sdca_index_update_bits() argument
74 ret = rt715_sdca_index_read(rt715, nid, reg, &tmp); in rt715_sdca_index_update_bits()
80 return rt715_sdca_index_write(rt715, nid, reg, tmp); in rt715_sdca_index_update_bits()
137 struct rt715_sdca_priv *rt715 = snd_soc_component_get_drvdata(component); in rt715_sdca_set_amp_gain_put() local
[all …]
Drt715-sdca-sdw.c122 struct rt715_sdca_priv *rt715 = dev_get_drvdata(&slave->dev); in rt715_sdca_update_status() local
128 if (rt715->hw_init || status != SDW_SLAVE_ATTACHED) in rt715_sdca_update_status()
210 struct rt715_sdca_priv *rt715 = dev_get_drvdata(dev); in rt715_dev_suspend() local
212 if (!rt715->hw_init) in rt715_dev_suspend()
215 regcache_cache_only(rt715->regmap, true); in rt715_dev_suspend()
216 regcache_mark_dirty(rt715->regmap); in rt715_dev_suspend()
217 regcache_cache_only(rt715->mbq_regmap, true); in rt715_dev_suspend()
218 regcache_mark_dirty(rt715->mbq_regmap); in rt715_dev_suspend()
228 struct rt715_sdca_priv *rt715 = dev_get_drvdata(dev); in rt715_dev_resume() local
231 if (!rt715->first_hw_init) in rt715_dev_resume()
[all …]
DMakefile260 snd-soc-rt715-y := rt715.o rt715-sdw.o
261 snd-soc-rt715-sdca-y := rt715-sdca.o rt715-sdca-sdw.o
663 obj-$(CONFIG_SND_SOC_RT715) += snd-soc-rt715.o
664 obj-$(CONFIG_SND_SOC_RT715_SDCA_SDW) += snd-soc-rt715-sdca.o