Home
last modified time | relevance | path

Searched refs:tas_priv (Results 1 – 8 of 8) sorted by relevance

/linux/sound/hda/codecs/side-codecs/
H A Dtas2781_hda_spi.c77 static int tasdevice_spi_dev_read(struct tasdevice_priv *tas_priv, in tasdevice_spi_dev_read() argument
90 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, in tasdevice_spi_dev_read()
94 ret = tasdevice_dev_read(tas_priv, chn, reg, val); in tasdevice_spi_dev_read()
97 dev_err(tas_priv->dev, "%s, E=%d\n", __func__, ret); in tasdevice_spi_dev_read()
102 static int tasdevice_spi_dev_bulk_read(struct tasdevice_priv *tas_priv, in tasdevice_spi_dev_bulk_read() argument
116 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, in tasdevice_spi_dev_bulk_read()
120 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, data, len); in tasdevice_spi_dev_bulk_read()
123 dev_err(tas_priv->dev, "%s, E=%d\n", __func__, ret); in tasdevice_spi_dev_bulk_read()
128 static int tasdevice_spi_dev_update_bits(struct tasdevice_priv *tas_priv, in tasdevice_spi_dev_update_bits() argument
142 ret = tasdevice_dev_bulk_read(tas_priv, ch in tasdevice_spi_dev_update_bits()
196 tascodec_spi_init(struct tasdevice_priv * tas_priv,void * codec,struct module * module,void (* cont)(const struct firmware * fw,void * context)) tascodec_spi_init() argument
223 tasdevice_spi_init(struct tasdevice_priv * tas_priv) tasdevice_spi_init() argument
239 tasdevice_spi_amp_putvol(struct tasdevice_priv * tas_priv,struct snd_ctl_elem_value * ucontrol,struct soc_mixer_control * mc) tasdevice_spi_amp_putvol() argument
261 tasdevice_spi_amp_getvol(struct tasdevice_priv * tas_priv,struct snd_ctl_elem_value * ucontrol,struct soc_mixer_control * mc) tasdevice_spi_amp_getvol() argument
389 struct tasdevice_priv *tas_priv = tas_hda->priv; tas2781_hda_playback_hook() local
421 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tas2781_digital_getvol() local
432 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tas2781_amp_getvol() local
443 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tas2781_digital_putvol() local
454 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tas2781_amp_putvol() local
465 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tas2781_force_fwload_get() local
477 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tas2781_force_fwload_put() local
631 struct tasdevice_priv *tas_priv = context; tasdev_fw_ready() local
735 struct tasdevice_priv *tas_priv = tas_hda->priv; tas2781_hda_unbind() local
761 struct tasdevice_priv *tas_priv; tas2781_hda_spi_probe() local
834 struct tasdevice_priv *tas_priv = tas_hda->priv; tas2781_runtime_suspend() local
851 struct tasdevice_priv *tas_priv = tas_hda->priv; tas2781_runtime_resume() local
865 struct tasdevice_priv *tas_priv = tas_hda->priv; tas2781_system_suspend() local
883 struct tasdevice_priv *tas_priv = tas_hda->priv; tas2781_system_resume() local
[all...]
H A Dtas2781_hda.c263 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_info_profile()
268 uinfo->value.integer.max = tas_priv->rcabin.ncfgs - 1;
277 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_info_programs()
282 uinfo->value.integer.max = tas_priv->fmw->nr_programs - 1;
291 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_info_config()
292 struct tasdevice_fw *tas_fw = tas_priv->fmw; in tasdevice_info_config()
306 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_get_profile_id()
308 ucontrol->value.integer.value[0] = tas_priv->rcabin.profile_cfg_id; in tasdevice_get_profile_id()
310 dev_dbg(tas_priv->dev, "%s: kcontrol %s: %d\n", __func__,
311 kcontrol->id.name, tas_priv
258 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tasdevice_info_profile() local
272 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tasdevice_info_programs() local
286 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tasdevice_info_config() local
301 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tasdevice_get_profile_id() local
315 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tasdevice_set_profile_id() local
339 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tasdevice_program_get() local
353 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tasdevice_program_put() local
378 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tasdevice_config_get() local
392 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tasdevice_config_put() local
[all...]
H A Dtas2781_hda_i2c.c67 struct tasdevice_priv *tas_priv = data; in tas2781_get_i2c_res() local
71 if (tas_priv->ndev < TASDEVICE_MAX_CHANNELS && in tas2781_get_i2c_res()
72 sb->slave_address != tas_priv->global_addr) { in tas2781_get_i2c_res()
73 tas_priv->tasdevice[tas_priv->ndev].dev_addr = in tas2781_get_i2c_res()
75 tas_priv->ndev++; in tas2781_get_i2c_res()
197 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tas2781_amp_getvol() local
202 guard(mutex)(&tas_priv->codec_lock); in tas2781_amp_getvol()
204 ret = tasdevice_amp_getvol(tas_priv, ucontrol, mc); in tas2781_amp_getvol()
206 dev_dbg(tas_priv->dev, "%s: kcontrol %s: %ld\n", in tas2781_amp_getvol()
215 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tas2781_amp_putvol() local
[all …]
/linux/sound/soc/codecs/
H A Dtas2781-fmwlib.c173 struct tasdevice_priv *tas_priv, unsigned char *config_data, in tasdevice_add_config() argument
195 if (tas_priv->rcabin.fw_hdr.binary_version_num >= 0x105) { in tasdevice_add_config()
198 dev_err(tas_priv->dev, "add conf: Out of boundary\n"); in tasdevice_add_config()
206 tas_priv->rcabin.init_profile_id = in tasdevice_add_config()
207 tas_priv->rcabin.ncfgs - 1; in tasdevice_add_config()
208 dev_dbg(tas_priv->dev, "%s: init profile id = %d\n", in tasdevice_add_config()
209 __func__, tas_priv->rcabin.init_profile_id); in tasdevice_add_config()
216 dev_err(tas_priv->dev, "add config: Out of boundary\n"); in tasdevice_add_config()
240 dev_err(tas_priv->dev, in tasdevice_add_config()
260 (1 << tas_priv->ndev) - 1; in tasdevice_add_config()
[all …]
H A Dtas2781-i2c.c166 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_digital_getvol() local
170 return tasdevice_digital_getvol(tas_priv, ucontrol, mc); in tas2781_digital_getvol()
177 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_digital_putvol() local
181 return tasdevice_digital_putvol(tas_priv, ucontrol, mc); in tas2781_digital_putvol()
188 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_amp_getvol() local
192 return tasdevice_amp_getvol(tas_priv, ucontrol, mc); in tas2781_amp_getvol()
199 struct tasdevice_priv *tas_priv = in tas2781_amp_putvol() local
204 return tasdevice_amp_putvol(tas_priv, ucontrol, mc); in tas2781_amp_putvol()
211 struct tasdevice_priv *tas_priv = in tasdev_force_fwload_get() local
214 ucontrol->value.integer.value[0] = (int)tas_priv->force_fwload_status; in tasdev_force_fwload_get()
[all …]
H A Dtas2781-comlib.c22 int tasdevice_dev_read(struct tasdevice_priv *tas_priv, in tasdevice_dev_read() argument
27 if (chn < tas_priv->ndev) { in tasdevice_dev_read()
28 struct regmap *map = tas_priv->regmap; in tasdevice_dev_read()
30 ret = tas_priv->change_chn_book(tas_priv, chn, in tasdevice_dev_read()
37 dev_err(tas_priv->dev, "%s, E=%d\n", __func__, ret); in tasdevice_dev_read()
40 dev_err(tas_priv->dev, "%s, no such channel(%d)\n", __func__, in tasdevice_dev_read()
49 int tasdevice_dev_bulk_read(struct tasdevice_priv *tas_priv, in tasdevice_dev_bulk_read() argument
55 if (chn < tas_priv->ndev) { in tasdevice_dev_bulk_read()
56 struct regmap *map = tas_priv->regmap; in tasdevice_dev_bulk_read()
58 ret = tas_priv->change_chn_book(tas_priv, chn, in tasdevice_dev_bulk_read()
[all …]
/linux/include/sound/
H A Dtas2781.h240 int (*fw_parse_variable_header)(struct tasdevice_priv *tas_priv,
242 int (*fw_parse_program_data)(struct tasdevice_priv *tas_priv,
245 int (*fw_parse_configuration_data)(struct tasdevice_priv *tas_priv,
248 int (*fw_parse_fct_param_address)(struct tasdevice_priv *tas_priv,
251 int (*tasdevice_load_block)(struct tasdevice_priv *tas_priv,
254 int (*change_chn_book)(struct tasdevice_priv *tas_priv,
256 int (*update_bits)(struct tasdevice_priv *tas_priv,
259 int (*dev_read)(struct tasdevice_priv *tas_priv,
261 int (*dev_bulk_read)(struct tasdevice_priv *tas_priv,
266 int tasdevice_dev_read(struct tasdevice_priv *tas_priv,
[all …]
H A Dtas2781-comlib-i2c.h19 int tascodec_init(struct tasdevice_priv *tas_priv, void *codec,
23 int tasdevice_init(struct tasdevice_priv *tas_priv);
24 int tasdev_chn_switch(struct tasdevice_priv *tas_priv,
29 int tasdevice_amp_putvol(struct tasdevice_priv *tas_priv,
31 int tasdevice_amp_getvol(struct tasdevice_priv *tas_priv,
33 int tasdevice_digital_getvol(struct tasdevice_priv *tas_priv,
35 int tasdevice_digital_putvol(struct tasdevice_priv *tas_priv,