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.c616 static s32 tas2783_validate_calibdata(struct tas2783_prv *tas_dev, in tas2783_validate_calibdata() argument
627 dev_err(tas_dev->dev, "cal data magic number mismatch"); in tas2783_validate_calibdata()
633 dev_err(tas_dev->dev, "cal data spk_count too large"); in tas2783_validate_calibdata()
639 dev_dbg(tas_dev->dev, "cal data timestamp: %ld-%d-%d %d:%d:%d", in tas2783_validate_calibdata()
647 dev_err(tas_dev->dev, "cali data sz too large"); in tas2783_validate_calibdata()
650 dev_err(tas_dev->dev, "cali data size mismatch calc=%u vs %d\n", in tas2783_validate_calibdata()
659 dev_err(tas_dev->dev, in tas2783_validate_calibdata()
668 static void tas2783_set_calib_params_to_device(struct tas2783_prv *tas_dev, u32 *cali_data) in tas2783_set_calib_params_to_device() argument
678 if (cali_data[offset] != tas_dev->sdw_peripheral->id.unique_id) { in tas2783_set_calib_params_to_device()
690 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.c849 struct tasdevice_priv *tas_dev = snd_soc_component_get_drvdata(codec); in tasdevice_digital_gain_get() local
856 guard(mutex)(&tas_dev->codec_lock); in tasdevice_digital_gain_get()
858 ret = tasdevice_dev_bulk_read(tas_dev, 0, reg, data, 4); in tasdevice_digital_gain_get()
860 dev_err(tas_dev->dev, "%s, get AMP vol error\n", __func__); in tasdevice_digital_gain_get()
868 ar_mid = get_unaligned_be32(tas_dev->dvc_tlv_table[mid]); in tasdevice_digital_gain_get()
875 ar_l = get_unaligned_be32(tas_dev->dvc_tlv_table[l]); in tasdevice_digital_gain_get()
876 ar_r = get_unaligned_be32(tas_dev->dvc_tlv_table[r]); in tasdevice_digital_gain_get()
892 struct tasdevice_priv *tas_dev = snd_soc_component_get_drvdata(codec); in tasdevice_digital_gain_put() local
901 guard(mutex)(&tas_dev->codec_lock); in tasdevice_digital_gain_put()
903 ret = tasdevice_dev_bulk_read(tas_dev, 0, reg, data, 4); in tasdevice_digital_gain_put()
[all …]
/linux/sound/hda/codecs/side-codecs/
H A Dtas2781_hda_spi.c184 static void tas2781_spi_reset(struct tasdevice_priv *tas_dev) in tas2781_spi_reset() argument
188 if (tas_dev->reset) { in tas2781_spi_reset()
189 gpiod_set_value_cansleep(tas_dev->reset, 0); in tas2781_spi_reset()
191 gpiod_set_value_cansleep(tas_dev->reset, 1); in tas2781_spi_reset()
194 ret = tasdevice_dev_write(tas_dev, tas_dev->index, in tas2781_spi_reset()
197 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);