Searched refs:tas_priv (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/sound/soc/codecs/ |
H A D | tas2781-i2c.c | 63 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_digital_getvol() local 67 return tasdevice_digital_getvol(tas_priv, ucontrol, mc); in tas2781_digital_getvol() 74 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_digital_putvol() local 78 return tasdevice_digital_putvol(tas_priv, ucontrol, mc); in tas2781_digital_putvol() 85 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_amp_getvol() local 89 return tasdevice_amp_getvol(tas_priv, ucontrol, mc); in tas2781_amp_getvol() 96 struct tasdevice_priv *tas_priv = in tas2781_amp_putvol() local 101 return tasdevice_amp_putvol(tas_priv, ucontrol, mc); in tas2781_amp_putvol() 109 struct tasdevice_priv *tas_priv = in tas2781_force_fwload_get() local 112 ucontrol->value.integer.value[0] = (int)tas_priv->force_fwload_status; in tas2781_force_fwload_get() [all …]
|
H A D | tas2781-comlib.c | 47 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\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 tasdevice_dev_read(struct tasdevice_priv *tas_priv, in tasdevice_dev_read() argument 96 if (chn < tas_priv->ndev) { in tasdevice_dev_read() [all …]
|
H A D | tas2781-fmwlib.c | 87 struct tasdevice_priv *tas_priv, unsigned char *config_data, in tasdevice_add_config() argument 109 if (tas_priv->rcabin.fw_hdr.binary_version_num >= 0x105) { in tasdevice_add_config() 112 dev_err(tas_priv->dev, "add conf: Out of boundary\n"); in tasdevice_add_config() 120 dev_err(tas_priv->dev, "add config: Out of boundary\n"); in tasdevice_add_config() 144 dev_err(tas_priv->dev, in tasdevice_add_config() 164 (1 << tas_priv->ndev) - 1; in tasdevice_add_config() 184 dev_err(tas_priv->dev, in tasdevice_add_config() 207 struct tasdevice_priv *tas_priv = context; in tasdevice_rca_parser() local 217 rca = &(tas_priv->rcabin); in tasdevice_rca_parser() 220 dev_err(tas_priv->dev, "Failed to read %s\n", in tasdevice_rca_parser() [all …]
|
/openbmc/linux/sound/pci/hda/ |
H A D | tas2781_hda_i2c.c | 81 struct tasdevice_priv *tas_priv = data; in tas2781_get_i2c_res() local 85 if (tas_priv->ndev < TASDEVICE_MAX_CHANNELS && in tas2781_get_i2c_res() 87 tas_priv->tasdevice[tas_priv->ndev].dev_addr = in tas2781_get_i2c_res() 89 tas_priv->ndev++; in tas2781_get_i2c_res() 157 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_info_profile() local 162 uinfo->value.integer.max = tas_priv->rcabin.ncfgs - 1; in tasdevice_info_profile() 170 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); in tasdevice_get_profile_id() local 172 mutex_lock(&tas_priv->codec_lock); in tasdevice_get_profile_id() 174 ucontrol->value.integer.value[0] = tas_priv->rcabin.profile_cfg_id; in tasdevice_get_profile_id() 176 mutex_unlock(&tas_priv->codec_lock); in tasdevice_get_profile_id() [all …]
|
/openbmc/linux/include/sound/ |
H A D | tas2781.h | 118 int (*fw_parse_variable_header)(struct tasdevice_priv *tas_priv, 120 int (*fw_parse_program_data)(struct tasdevice_priv *tas_priv, 123 int (*fw_parse_configuration_data)(struct tasdevice_priv *tas_priv, 126 int (*tasdevice_load_block)(struct tasdevice_priv *tas_priv, 129 int (*save_calibration)(struct tasdevice_priv *tas_priv); 130 void (*apply_calibration)(struct tasdevice_priv *tas_priv); 134 int tascodec_init(struct tasdevice_priv *tas_priv, void *codec, 138 int tasdevice_init(struct tasdevice_priv *tas_priv); 139 void tasdevice_remove(struct tasdevice_priv *tas_priv); 140 int tasdevice_save_calibration(struct tasdevice_priv *tas_priv); [all …]
|