| /linux/sound/soc/codecs/ |
| H A D | tas2781-comlib-i2c.c | 46 static int tasdevice_change_chn_book(struct tasdevice_priv *tas_priv, in tasdevice_change_chn_book() argument 49 struct i2c_client *client = (struct i2c_client *)tas_priv->client; in tasdevice_change_chn_book() 52 if (chn < tas_priv->ndev) { in tasdevice_change_chn_book() 53 struct tasdevice *tasdev = &tas_priv->tasdevice[chn]; in tasdevice_change_chn_book() 54 struct regmap *map = tas_priv->regmap; in tasdevice_change_chn_book() 65 dev_err(tas_priv->dev, "%s, E=%d channel:%d\n", in tasdevice_change_chn_book() 74 dev_err(tas_priv->dev, "%s, E=%d\n", in tasdevice_change_chn_book() 82 dev_err(tas_priv->dev, "%s, no such channel(%d)\n", __func__, in tasdevice_change_chn_book() 90 int tasdev_chn_switch(struct tasdevice_priv *tas_priv, in tasdev_chn_switch() argument 93 struct i2c_client *client = (struct i2c_client *)tas_priv->client; in tasdev_chn_switch() [all …]
|
| H A D | tas2781-fmwlib.c | 173 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 D | tas2781-i2c.c | 167 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_digital_getvol() local 171 return tasdevice_digital_getvol(tas_priv, ucontrol, mc); in tas2781_digital_getvol() 178 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_digital_putvol() local 182 return tasdevice_digital_putvol(tas_priv, ucontrol, mc); in tas2781_digital_putvol() 189 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_amp_getvol() local 193 return tasdevice_amp_getvol(tas_priv, ucontrol, mc); in tas2781_amp_getvol() 200 struct tasdevice_priv *tas_priv = in tas2781_amp_putvol() local 205 return tasdevice_amp_putvol(tas_priv, ucontrol, mc); in tas2781_amp_putvol() 212 struct tasdevice_priv *tas_priv = in tasdev_force_fwload_get() local 215 ucontrol->value.integer.value[0] = (int)tas_priv in tasdev_force_fwload_get() 226 struct tasdevice_priv *tas_priv = tasdev_force_fwload_put() local 366 calib_data_get(struct tasdevice_priv * tas_priv,int reg,unsigned char * dst) calib_data_get() argument 403 sngl_calib_start(struct tasdevice_priv * tas_priv,int i,int * reg,unsigned char * dat) sngl_calib_start() argument 556 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(comp); tas2563_calib_start_put() local 593 tas2563_calib_stop_put(struct tasdevice_priv * tas_priv) tas2563_calib_stop_put() argument 682 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(comp); tas2781_latch_reg_get() local 715 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(comp); tasdev_tf_data_get() local 742 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(comp); tasdev_re_data_get() local 768 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(comp); tasdev_r0_data_get() local 791 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(comp); tasdev_XMA1_data_get() local 811 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(comp); tasdev_XMA2_data_get() local 987 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_set_profile_id() local 1004 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_info_active_num() local 1029 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_info_programs() local 1044 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_info_configurations() local 1059 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_info_profile() local 1073 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_get_profile_id() local 1084 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_get_chip_id() local 1091 tasdevice_create_control(struct tasdevice_priv * tas_priv) tasdevice_create_control() argument 1130 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_program_get() local 1141 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_program_put() local 1158 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_configuration_get() local 1170 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_configuration_put() local 1186 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_active_num_get() local 1205 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_active_num_put() local 1215 tasdevice_dsp_create_ctrls(struct tasdevice_priv * tas_priv) tasdevice_dsp_create_ctrls() argument 1509 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(comp); acoustic_ctl_read() local 1624 struct tasdevice_priv *tas_priv = context; tasdevice_fw_ready() local 1761 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_dapm_event() local 1795 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_startup() local 1809 struct tasdevice_priv *tas_priv = snd_soc_dai_get_drvdata(dai); tasdevice_hw_params() local 1851 struct tasdevice_priv *tas_priv = snd_soc_dai_get_drvdata(codec_dai); tasdevice_set_dai_sysclk() local 1889 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_codec_probe() local 1943 struct tasdevice_priv *tas_priv = (struct tasdevice_priv *) context; tasdevice_deinit() local 1958 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_codec_remove() local 1975 tasdevice_parse_dt(struct tasdevice_priv * tas_priv) tasdevice_parse_dt() argument 2033 struct tasdevice_priv *tas_priv; tasdevice_i2c_probe() local 2081 struct tasdevice_priv *tas_priv = i2c_get_clientdata(client); tasdevice_i2c_remove() local [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/sound/hda/codecs/side-codecs/ |
| H A D | tas2781_hda_spi.c | 77 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 138 ret = tasdevice_dev_read(tas_priv, chn, reg, &val); 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 | 67 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/include/sound/ |
| H A D | tas2781.h | 239 int (*fw_parse_variable_header)(struct tasdevice_priv *tas_priv, 241 int (*fw_parse_program_data)(struct tasdevice_priv *tas_priv, 244 int (*fw_parse_configuration_data)(struct tasdevice_priv *tas_priv, 247 int (*fw_parse_fct_param_address)(struct tasdevice_priv *tas_priv, 250 int (*tasdevice_load_block)(struct tasdevice_priv *tas_priv, 253 int (*change_chn_book)(struct tasdevice_priv *tas_priv, 255 int (*update_bits)(struct tasdevice_priv *tas_priv, 258 int (*dev_read)(struct tasdevice_priv *tas_priv, 260 int (*dev_bulk_read)(struct tasdevice_priv *tas_priv, 265 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,
|