Home
last modified time | relevance | path

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

/linux-6.12.1/sound/soc/codecs/
Dtas2781-comlib.c47 static int tasdevice_change_chn_book(struct tasdevice_priv *tas_priv, in tasdevice_change_chn_book() argument
50 struct i2c_client *client = (struct i2c_client *)tas_priv->client; in tasdevice_change_chn_book()
53 if (chn < tas_priv->ndev) { in tasdevice_change_chn_book()
54 struct tasdevice *tasdev = &tas_priv->tasdevice[chn]; in tasdevice_change_chn_book()
55 struct regmap *map = tas_priv->regmap; in tasdevice_change_chn_book()
66 dev_err(tas_priv->dev, "%s, E=%d channel:%d\n", in tasdevice_change_chn_book()
75 dev_err(tas_priv->dev, "%s, E=%d\n", in tasdevice_change_chn_book()
83 dev_err(tas_priv->dev, "%s, no such channel(%d)\n", __func__, in tasdevice_change_chn_book()
91 int tasdev_chn_switch(struct tasdevice_priv *tas_priv, in tasdev_chn_switch() argument
94 struct i2c_client *client = (struct i2c_client *)tas_priv->client; in tasdev_chn_switch()
[all …]
Dtas2781-i2c.c130 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_digital_getvol() local
134 return tasdevice_digital_getvol(tas_priv, ucontrol, mc); in tas2781_digital_getvol()
141 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_digital_putvol() local
145 return tasdevice_digital_putvol(tas_priv, ucontrol, mc); in tas2781_digital_putvol()
152 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_amp_getvol() local
156 return tasdevice_amp_getvol(tas_priv, ucontrol, mc); in tas2781_amp_getvol()
163 struct tasdevice_priv *tas_priv = in tas2781_amp_putvol() local
168 return tasdevice_amp_putvol(tas_priv, ucontrol, mc); in tas2781_amp_putvol()
176 struct tasdevice_priv *tas_priv = in tasdev_force_fwload_get() local
179 ucontrol->value.integer.value[0] = (int)tas_priv->force_fwload_status; in tasdev_force_fwload_get()
[all …]
Dtas2781-fmwlib.c149 struct tasdevice_priv *tas_priv, unsigned char *config_data, in tasdevice_add_config() argument
171 if (tas_priv->rcabin.fw_hdr.binary_version_num >= 0x105) { in tasdevice_add_config()
174 dev_err(tas_priv->dev, "add conf: Out of boundary\n"); in tasdevice_add_config()
182 dev_err(tas_priv->dev, "add config: Out of boundary\n"); in tasdevice_add_config()
206 dev_err(tas_priv->dev, in tasdevice_add_config()
226 (1 << tas_priv->ndev) - 1; in tasdevice_add_config()
246 dev_err(tas_priv->dev, in tasdevice_add_config()
269 struct tasdevice_priv *tas_priv = context; in tasdevice_rca_parser() local
279 rca = &(tas_priv->rcabin); in tasdevice_rca_parser()
282 dev_err(tas_priv->dev, "Failed to read %s\n", in tasdevice_rca_parser()
[all …]
/linux-6.12.1/sound/pci/hda/
Dtas2781_hda_i2c.c99 struct tasdevice_priv *tas_priv = data; in tas2781_get_i2c_res() local
103 if (tas_priv->ndev < TASDEVICE_MAX_CHANNELS && in tas2781_get_i2c_res()
104 sb->slave_address != tas_priv->global_addr) { in tas2781_get_i2c_res()
105 tas_priv->tasdevice[tas_priv->ndev].dev_addr = in tas2781_get_i2c_res()
107 tas_priv->ndev++; in tas2781_get_i2c_res()
173 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_info_profile() local
178 uinfo->value.integer.max = tas_priv->rcabin.ncfgs - 1; in tasdevice_info_profile()
186 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_get_profile_id() local
188 mutex_lock(&tas_priv->codec_lock); in tasdevice_get_profile_id()
190 ucontrol->value.integer.value[0] = tas_priv->rcabin.profile_cfg_id; in tasdevice_get_profile_id()
[all …]
/linux-6.12.1/include/sound/
Dtas2781.h190 int (*fw_parse_variable_header)(struct tasdevice_priv *tas_priv,
192 int (*fw_parse_program_data)(struct tasdevice_priv *tas_priv,
195 int (*fw_parse_configuration_data)(struct tasdevice_priv *tas_priv,
198 int (*tasdevice_load_block)(struct tasdevice_priv *tas_priv,
201 int (*save_calibration)(struct tasdevice_priv *tas_priv);
202 void (*apply_calibration)(struct tasdevice_priv *tas_priv);
206 int tascodec_init(struct tasdevice_priv *tas_priv, void *codec,
210 int tasdevice_init(struct tasdevice_priv *tas_priv);
211 void tasdevice_remove(struct tasdevice_priv *tas_priv);
212 int tasdevice_save_calibration(struct tasdevice_priv *tas_priv);
[all …]