Home
last modified time | relevance | path

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

/linux/sound/hda/codecs/side-codecs/
H A Dtas2781_hda_spi.c77 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
142 ret = tasdevice_dev_bulk_read(tas_priv, ch in tasdevice_spi_dev_update_bits()
196 tascodec_spi_init(struct tasdevice_priv * tas_priv,void * codec,struct module * module,void (* cont)(const struct firmware * fw,void * context)) tascodec_spi_init() argument
223 tasdevice_spi_init(struct tasdevice_priv * tas_priv) tasdevice_spi_init() argument
239 tasdevice_spi_amp_putvol(struct tasdevice_priv * tas_priv,struct snd_ctl_elem_value * ucontrol,struct soc_mixer_control * mc) tasdevice_spi_amp_putvol() argument
261 tasdevice_spi_amp_getvol(struct tasdevice_priv * tas_priv,struct snd_ctl_elem_value * ucontrol,struct soc_mixer_control * mc) tasdevice_spi_amp_getvol() argument
389 struct tasdevice_priv *tas_priv = tas_hda->priv; tas2781_hda_playback_hook() local
421 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tas2781_digital_getvol() local
432 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tas2781_amp_getvol() local
443 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tas2781_digital_putvol() local
454 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tas2781_amp_putvol() local
465 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tas2781_force_fwload_get() local
477 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tas2781_force_fwload_put() local
631 struct tasdevice_priv *tas_priv = context; tasdev_fw_ready() local
735 struct tasdevice_priv *tas_priv = tas_hda->priv; tas2781_hda_unbind() local
761 struct tasdevice_priv *tas_priv; tas2781_hda_spi_probe() local
834 struct tasdevice_priv *tas_priv = tas_hda->priv; tas2781_runtime_suspend() local
851 struct tasdevice_priv *tas_priv = tas_hda->priv; tas2781_runtime_resume() local
865 struct tasdevice_priv *tas_priv = tas_hda->priv; tas2781_system_suspend() local
883 struct tasdevice_priv *tas_priv = tas_hda->priv; tas2781_system_resume() local
[all...]
H A Dtas2781_hda.c263 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 Dtas2781_hda_i2c.c67 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 in tas2781_amp_getvol()
215 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tas2781_amp_putvol() local
231 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tas2781_force_fwload_get() local
245 struct tasdevice_priv *tas_priv = snd_kcontrol_chip(kcontrol); tas2781_force_fwload_put() local
412 tasdev_add_kcontrols(struct tasdevice_priv * tas_priv,struct snd_kcontrol ** ctls,struct hda_codec * codec,const struct snd_kcontrol_new * tas_snd_ctrls,int num_ctls) tasdev_add_kcontrols() argument
433 struct tasdevice_priv *tas_priv = context; tasdevice_dspfw_init() local
486 struct tasdevice_priv *tas_priv = context; tasdev_fw_ready() local
[all...]
/linux/sound/soc/codecs/
H A Dtas2781-fmwlib.c173 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 in tasdevice_add_config()
303 struct tasdevice_priv *tas_priv = context; tasdevice_rca_parser() local
542 fw_parse_tas5825_program_data_kernel(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_tas5825_program_data_kernel() argument
566 fw_parse_tas5825_configuration_data_kernel(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_tas5825_configuration_data_kernel() argument
592 fw_parse_program_data_kernel(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_program_data_kernel() argument
619 fw_parse_configuration_data_kernel(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_configuration_data_kernel() argument
743 fw_parse_fct_param_address(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_fct_param_address() argument
766 fw_parse_variable_header_kernel(struct tasdevice_priv * tas_priv,const struct firmware * fmw,int offset) fw_parse_variable_header_kernel() argument
879 struct tasdevice_priv *tas_priv = (struct tasdevice_priv *)context; tasdevice_process_block() local
1020 struct tasdevice_priv *tas_priv = (struct tasdevice_priv *) pContext; tasdevice_select_cfg_blk() local
1102 fw_parse_variable_hdr(struct tasdevice_priv * tas_priv,struct tasdevice_dspfw_hdr * fw_hdr,const struct firmware * fmw,int offset) fw_parse_variable_hdr() argument
1141 fw_parse_variable_header_git(struct tasdevice_priv * tas_priv,const struct firmware * fmw,int offset) fw_parse_variable_header_git() argument
1272 fw_parse_program_data(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_program_data() argument
1336 fw_parse_configuration_data(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_configuration_data() argument
1631 tasdev_bytes_chksum(struct tasdevice_priv * tas_priv,struct tasdev_blk * block,int chn,unsigned char book,unsigned char page,unsigned char reg,unsigned int len,unsigned char val,unsigned char * crc_chksum) tasdev_bytes_chksum() argument
1663 tasdev_multibytes_wr(struct tasdevice_priv * tas_priv,struct tasdev_blk * block,int chn,unsigned char book,unsigned char page,unsigned char reg,unsigned char * data,unsigned int len,unsigned int * nr_cmds,unsigned char * crc_chksum) tasdev_multibytes_wr() argument
1699 tasdev_block_chksum(struct tasdevice_priv * tas_priv,struct tasdev_blk * block,int chn) tasdev_block_chksum() argument
1732 tasdev_load_blk(struct tasdevice_priv * tas_priv,struct tasdev_blk * block,int chn) tasdev_load_blk() argument
1838 tasdevice_load_block(struct tasdevice_priv * tas_priv,struct tasdev_blk * block) tasdevice_load_block() argument
1895 dspbin_type_check(struct tasdevice_priv * tas_priv,unsigned int ppcver) dspbin_type_check() argument
1912 dspfw_default_callback(struct tasdevice_priv * tas_priv,unsigned int drv_ver,unsigned int ppcver) dspfw_default_callback() argument
1970 fw_parse_header(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_header() argument
2011 fw_parse_variable_hdr_cal(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_variable_hdr_cal() argument
2131 fw_parse_calibration_data(struct tasdevice_priv * tas_priv,struct tasdevice_fw * tas_fmw,const struct firmware * fmw,int offset) fw_parse_calibration_data() argument
2192 struct tasdevice_priv *tas_priv = (struct tasdevice_priv *)context; tas2781_load_calibration() local
2264 struct tasdevice_priv *tas_priv = (struct tasdevice_priv *) context; tasdevice_dspfw_ready() local
2349 struct tasdevice_priv *tas_priv = (struct tasdevice_priv *)context; tasdevice_dsp_parser() local
2406 struct tasdevice_priv *tas_priv = (struct tasdevice_priv *) context; tasdevice_calbin_remove() local
2425 struct tasdevice_priv *tas_priv = (struct tasdevice_priv *) context; tasdevice_config_info_remove() local
2450 tasdevice_load_data(struct tasdevice_priv * tas_priv,struct tasdevice_data * dev_data) tasdevice_load_data() argument
2602 struct tasdevice_priv *tas_priv = (struct tasdevice_priv *) context; tasdevice_select_tuningprm_cfg() local
2705 struct tasdevice_priv *tas_priv = (struct tasdevice_priv *) context; tasdevice_prmg_load() local
2750 struct tasdevice_priv *tas_priv = (struct tasdevice_priv *) context; tasdevice_tuning_switch() local
[all...]
H A Dtas2781-i2c.c168 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_digital_getvol()
172 return tasdevice_digital_getvol(tas_priv, ucontrol, mc);
179 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_digital_putvol()
183 return tasdevice_digital_putvol(tas_priv, ucontrol, mc);
190 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); in tas2781_amp_getvol()
194 return tasdevice_amp_getvol(tas_priv, ucontrol, mc);
201 struct tasdevice_priv *tas_priv = in tas2781_amp_putvol()
206 return tasdevice_amp_putvol(tas_priv, ucontrol, mc);
213 struct tasdevice_priv *tas_priv = in tasdev_force_fwload_get()
216 ucontrol->value.integer.value[0] = (int)tas_priv in tasdev_force_fwload_get()
166 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tas2781_digital_getvol() local
177 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tas2781_digital_putvol() local
188 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tas2781_amp_getvol() local
199 struct tasdevice_priv *tas_priv = tas2781_amp_putvol() local
211 struct tasdevice_priv *tas_priv = tasdev_force_fwload_get() local
225 struct tasdevice_priv *tas_priv = tasdev_force_fwload_put() local
363 calib_data_get(struct tasdevice_priv * tas_priv,int reg,unsigned char * dst) calib_data_get() argument
400 sngl_calib_start(struct tasdevice_priv * tas_priv,int i,int * reg,unsigned char * dat) sngl_calib_start() argument
553 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(comp); tas2563_calib_start_put() local
590 tas2563_calib_stop_put(struct tasdevice_priv * tas_priv) tas2563_calib_stop_put() argument
678 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(comp); tas2781_latch_reg_get() local
711 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(comp); tasdev_tf_data_get() local
738 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(comp); tasdev_re_data_get() local
764 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(comp); tasdev_r0_data_get() local
787 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(comp); tasdev_XMA1_data_get() local
807 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(comp); tasdev_XMA2_data_get() local
983 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_set_profile_id() local
1000 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_info_active_num() local
1025 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_info_programs() local
1040 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_info_configurations() local
1055 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_info_profile() local
1069 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_get_profile_id() local
1080 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_get_chip_id() local
1087 tasdevice_create_control(struct tasdevice_priv * tas_priv) tasdevice_create_control() argument
1126 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_program_get() local
1137 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_program_put() local
1154 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_configuration_get() local
1166 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_configuration_put() local
1182 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_active_num_get() local
1201 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_active_num_put() local
1211 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
1762 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_dapm_event() local
1796 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_startup() local
1810 struct tasdevice_priv *tas_priv = snd_soc_dai_get_drvdata(dai); tasdevice_hw_params() local
1852 struct tasdevice_priv *tas_priv = snd_soc_dai_get_drvdata(codec_dai); tasdevice_set_dai_sysclk() local
1890 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_codec_probe() local
1945 struct tasdevice_priv *tas_priv = (struct tasdevice_priv *) context; tasdevice_deinit() local
1960 struct tasdevice_priv *tas_priv = snd_soc_component_get_drvdata(codec); tasdevice_codec_remove() local
1977 tasdevice_parse_dt(struct tasdevice_priv * tas_priv) tasdevice_parse_dt() argument
2031 struct tasdevice_priv *tas_priv; tasdevice_i2c_probe() local
2083 struct tasdevice_priv *tas_priv = i2c_get_clientdata(client); tasdevice_i2c_remove() local
[all...]
H A Dtas2781-comlib.c22 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 Dtas2781.h241 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 Dtas2781-comlib-i2c.h19 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,