Home
last modified time | relevance | path

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

/Linux-v6.6/sound/pci/hda/
Dtas2781_hda_i2c.c70 struct tasdevice_priv *tas_priv = data; in tas2781_get_i2c_res() local
74 if (tas_priv->ndev < TASDEVICE_MAX_CHANNELS && in tas2781_get_i2c_res()
76 tas_priv->tasdevice[tas_priv->ndev].dev_addr = in tas2781_get_i2c_res()
78 tas_priv->ndev++; in tas2781_get_i2c_res()
128 struct tasdevice_priv *tas_priv = dev_get_drvdata(dev); in tas2781_hda_playback_hook() local
130 dev_dbg(tas_priv->dev, "%s: action = %d\n", __func__, action); in tas2781_hda_playback_hook()
134 mutex_lock(&tas_priv->codec_lock); in tas2781_hda_playback_hook()
135 tasdevice_tuning_switch(tas_priv, 0); in tas2781_hda_playback_hook()
136 mutex_unlock(&tas_priv->codec_lock); in tas2781_hda_playback_hook()
139 mutex_lock(&tas_priv->codec_lock); in tas2781_hda_playback_hook()
[all …]
/Linux-v6.6/sound/soc/codecs/
Dtas2781-i2c.c63 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 …]
Dtas2781-comlib.c48 static int tasdevice_change_chn_book(struct tasdevice_priv *tas_priv, in tasdevice_change_chn_book() argument
51 struct i2c_client *client = (struct i2c_client *)tas_priv->client; in tasdevice_change_chn_book()
54 if (chn < tas_priv->ndev) { in tasdevice_change_chn_book()
55 struct tasdevice *tasdev = &tas_priv->tasdevice[chn]; in tasdevice_change_chn_book()
56 struct regmap *map = tas_priv->regmap; in tasdevice_change_chn_book()
67 dev_err(tas_priv->dev, "%s, E=%d\n", in tasdevice_change_chn_book()
76 dev_err(tas_priv->dev, "%s, E=%d\n", in tasdevice_change_chn_book()
84 dev_err(tas_priv->dev, "%s, no such channel(%d)\n", __func__, in tasdevice_change_chn_book()
92 int tasdevice_dev_read(struct tasdevice_priv *tas_priv, in tasdevice_dev_read() argument
97 if (chn < tas_priv->ndev) { in tasdevice_dev_read()
[all …]
Dtas2781-fmwlib.c88 struct tasdevice_priv *tas_priv, unsigned char *config_data, in tasdevice_add_config() argument
110 if (tas_priv->rcabin.fw_hdr.binary_version_num >= 0x105) { in tasdevice_add_config()
113 dev_err(tas_priv->dev, "add conf: Out of boundary\n"); in tasdevice_add_config()
121 dev_err(tas_priv->dev, "add config: Out of boundary\n"); in tasdevice_add_config()
146 dev_err(tas_priv->dev, in tasdevice_add_config()
166 (1 << tas_priv->ndev) - 1; in tasdevice_add_config()
186 dev_err(tas_priv->dev, in tasdevice_add_config()
209 struct tasdevice_priv *tas_priv = context; in tasdevice_rca_parser() local
219 rca = &(tas_priv->rcabin); in tasdevice_rca_parser()
222 dev_err(tas_priv->dev, "Failed to read %s\n", in tasdevice_rca_parser()
[all …]
/Linux-v6.6/include/sound/
Dtas2781.h124 int (*fw_parse_variable_header)(struct tasdevice_priv *tas_priv,
126 int (*fw_parse_program_data)(struct tasdevice_priv *tas_priv,
129 int (*fw_parse_configuration_data)(struct tasdevice_priv *tas_priv,
132 int (*tasdevice_load_block)(struct tasdevice_priv *tas_priv,
137 int tascodec_init(struct tasdevice_priv *tas_priv, void *codec,
140 int tasdevice_init(struct tasdevice_priv *tas_priv);
141 void tasdevice_remove(struct tasdevice_priv *tas_priv);
142 int tasdevice_dev_read(struct tasdevice_priv *tas_priv,
144 int tasdevice_dev_write(struct tasdevice_priv *tas_priv,
147 struct tasdevice_priv *tas_priv, unsigned short chn,
[all …]