Home
last modified time | relevance | path

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

/linux/sound/soc/codecs/
H A Dtas2783-sdw.c563 static s32 tas2783_validate_calibdata(struct tas2783_prv *tas_dev, in tas2783_validate_calibdata() argument
574 dev_err(tas_dev->dev, "cal data magic number mismatch"); in tas2783_validate_calibdata()
580 dev_err(tas_dev->dev, "cal data spk_count too large"); in tas2783_validate_calibdata()
586 dev_dbg(tas_dev->dev, "cal data timestamp: %ld-%d-%d %d:%d:%d", in tas2783_validate_calibdata()
594 dev_err(tas_dev->dev, "cali data sz too large"); in tas2783_validate_calibdata()
597 dev_err(tas_dev->dev, "cali data size mismatch calc=%u vs %d\n", in tas2783_validate_calibdata()
606 dev_err(tas_dev->dev, in tas2783_validate_calibdata()
615 static void tas2783_set_calib_params_to_device(struct tas2783_prv *tas_dev, u32 *cali_data) in tas2783_set_calib_params_to_device() argument
625 if (cali_data[offset] != tas_dev->sdw_peripheral->id.unique_id) { in tas2783_set_calib_params_to_device()
637 regmap_bulk_write(tas_dev->regmap, tas2783_cali_reg[i], in tas2783_set_calib_params_to_device()
[all …]
H A Dtas2781-comlib.c196 struct tasdevice_priv *tas_dev = (struct tasdevice_priv *) context; in tasdevice_dsp_remove() local
197 struct tasdevice_fw *tas_fmw = tas_dev->fmw; in tasdevice_dsp_remove()
199 if (!tas_dev->fmw) in tasdevice_dsp_remove()
209 tas_dev->fmw = NULL; in tasdevice_dsp_remove()
H A Dtas2781-i2c.c838 struct tasdevice_priv *tas_dev = snd_soc_component_get_drvdata(codec); in tasdevice_digital_gain_get()
845 mutex_lock(&tas_dev->codec_lock); in tasdevice_digital_gain_get()
847 ret = tasdevice_dev_bulk_read(tas_dev, 0, reg, data, 4); in tasdevice_digital_gain_get()
849 dev_err(tas_dev->dev, "%s, get AMP vol error\n", __func__); in tasdevice_digital_gain_get()
857 ar_mid = get_unaligned_be32(tas_dev->dvc_tlv_table[mid]); in tasdevice_digital_gain_get()
864 ar_l = get_unaligned_be32(tas_dev->dvc_tlv_table[l]); in tasdevice_digital_gain_get()
865 ar_r = get_unaligned_be32(tas_dev->dvc_tlv_table[r]); in tasdevice_digital_gain_get()
871 mutex_unlock(&tas_dev->codec_lock); in tasdevice_digital_gain_get()
882 struct tasdevice_priv *tas_dev = snd_soc_component_get_drvdata(codec); in tasdevice_digital_gain_put()
891 mutex_lock(&tas_dev in tasdevice_digital_gain_put()
841 struct tasdevice_priv *tas_dev = snd_soc_component_get_drvdata(codec); tasdevice_digital_gain_get() local
885 struct tasdevice_priv *tas_dev = snd_soc_component_get_drvdata(codec); tasdevice_digital_gain_put() local
[all...]
/linux/sound/hda/codecs/side-codecs/
H A Dtas2781_hda_spi.c177 static void tas2781_spi_reset(struct tasdevice_priv *tas_dev) in tas2781_spi_reset() argument
181 if (tas_dev->reset) { in tas2781_spi_reset()
182 gpiod_set_value_cansleep(tas_dev->reset, 0); in tas2781_spi_reset()
184 gpiod_set_value_cansleep(tas_dev->reset, 1); in tas2781_spi_reset()
186 ret = tasdevice_dev_write(tas_dev, tas_dev->index, in tas2781_spi_reset()
189 dev_err(tas_dev->dev, "dev sw-reset fail, %d\n", ret); in tas2781_spi_reset()
/linux/include/sound/
H A Dtas2781-comlib-i2c.h18 void tasdevice_reset(struct tasdevice_priv *tas_dev);