| /linux/sound/hda/codecs/side-codecs/ |
| H A D | tas2781_hda_spi.c | 76 static int tasdevice_spi_dev_read(struct tasdevice_priv *tas_priv, in tasdevice_spi_dev_read() argument 89 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, in tasdevice_spi_dev_read() 93 ret = tasdevice_dev_read(tas_priv, chn, reg, val); in tasdevice_spi_dev_read() 96 dev_err(tas_priv->dev, "%s, E=%d\n", __func__, ret); in tasdevice_spi_dev_read() 101 static int tasdevice_spi_dev_bulk_read(struct tasdevice_priv *tas_priv, in tasdevice_spi_dev_bulk_read() argument 115 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, in tasdevice_spi_dev_bulk_read() 119 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, data, len); in tasdevice_spi_dev_bulk_read() 122 dev_err(tas_priv->dev, "%s, E=%d\n", __func__, ret); in tasdevice_spi_dev_bulk_read() 127 static int tasdevice_spi_dev_update_bits(struct tasdevice_priv *tas_priv, in tasdevice_spi_dev_update_bits() argument 141 ret = tasdevice_dev_bulk_read(tas_priv, chn, reg, buf, 2); in tasdevice_spi_dev_update_bits() [all …]
|
| H A D | tas2781_hda.c | 263 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 D | tas2781_hda_i2c.c | 66 struct tasdevice_priv *tas_priv = data; in tas2781_get_i2c_res() local 70 if (tas_priv->ndev < TASDEVICE_MAX_CHANNELS && in tas2781_get_i2c_res() 71 sb->slave_address != tas_priv->global_addr) { in tas2781_get_i2c_res() 72 tas_priv->tasdevice[tas_priv->ndev].dev_addr = in tas2781_get_i2c_res() 74 tas_priv->ndev++; in tas2781_get_i2c_res() 194 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tas2781_amp_getvol() local 199 guard(mutex)(&tas_priv->codec_lock); in tas2781_amp_getvol() 201 ret = tasdevice_amp_getvol(tas_priv, ucontrol, mc); in tas2781_amp_getvol() 203 dev_dbg(tas_priv->dev, "%s: kcontrol %s: %ld\n", in tas2781_amp_getvol() 212 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tas2781_amp_putvol() local [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | tas2781-fmwlib.c | 174 struct tasdevice_priv *tas_priv, unsigned char *config_data, in tasdevice_add_config() argument 196 if (tas_priv->rcabin.fw_hdr.binary_version_num >= 0x105) { in tasdevice_add_config() 199 dev_err(tas_priv->dev, "add conf: Out of boundary\n"); in tasdevice_add_config() 207 tas_priv->rcabin.init_profile_id = in tasdevice_add_config() 208 tas_priv->rcabin.ncfgs - 1; in tasdevice_add_config() 209 dev_dbg(tas_priv->dev, "%s: init profile id = %d\n", in tasdevice_add_config() 210 __func__, tas_priv->rcabin.init_profile_id); in tasdevice_add_config() 217 dev_err(tas_priv->dev, "add config: Out of boundary\n"); in tasdevice_add_config() 241 dev_err(tas_priv->dev, in tasdevice_add_config() 261 (1 << tas_priv->ndev) - 1; in tasdevice_add_config() [all …]
|
| H A D | tas2781-i2c.c | 169 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_digital_getvol() local 173 return tasdevice_digital_getvol(tas_priv, ucontrol, mc); in tas2781_digital_getvol() 180 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_digital_putvol() local 184 return tasdevice_digital_putvol(tas_priv, ucontrol, mc); in tas2781_digital_putvol() 191 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_amp_getvol() local 195 return tasdevice_amp_getvol(tas_priv, ucontrol, mc); in tas2781_amp_getvol() 202 struct tasdevice_priv *tas_priv = in tas2781_amp_putvol() local 207 return tasdevice_amp_putvol(tas_priv, ucontrol, mc); in tas2781_amp_putvol() 214 struct tasdevice_priv *tas_priv = in tasdev_force_fwload_get() local 217 ucontrol->value.integer.value[0] = (int)tas_priv->force_fwload_status; in tasdev_force_fwload_get() [all …]
|
| H A D | tas2781-comlib.c | 22 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 D | tas2781.h | 241 int (*fw_parse_variable_header)(struct tasdevice_priv *tas_priv, 243 int (*fw_parse_program_data)(struct tasdevice_priv *tas_priv, 246 int (*fw_parse_configuration_data)(struct tasdevice_priv *tas_priv, 249 int (*fw_parse_fct_param_address)(struct tasdevice_priv *tas_priv, 252 int (*tasdevice_load_block)(struct tasdevice_priv *tas_priv, 255 int (*change_chn_book)(struct tasdevice_priv *tas_priv, 257 int (*update_bits)(struct tasdevice_priv *tas_priv, 260 int (*dev_read)(struct tasdevice_priv *tas_priv, 262 int (*dev_bulk_read)(struct tasdevice_priv *tas_priv, 267 int tasdevice_dev_read(struct tasdevice_priv *tas_priv, [all …]
|
| H A D | tas2781-comlib-i2c.h | 19 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,
|