Searched refs:tas_dev (Results 1 – 4 of 4) sorted by relevance
/linux/sound/soc/codecs/ |
H A D | tas2781-comlib.c | 271 void tasdevice_reset(struct tasdevice_priv *tas_dev) in tasdevice_reset() argument 275 if (tas_dev->reset) { in tasdevice_reset() 276 gpiod_set_value_cansleep(tas_dev->reset, 0); in tasdevice_reset() 278 gpiod_set_value_cansleep(tas_dev->reset, 1); in tasdevice_reset() 280 for (i = 0; i < tas_dev->ndev; i++) { in tasdevice_reset() 281 ret = tasdevice_dev_write(tas_dev, i, in tasdevice_reset() 285 dev_err(tas_dev->dev, in tasdevice_reset() 420 struct tasdevice_priv *tas_dev = (struct tasdevice_priv *) context; in tasdevice_dsp_remove() local 421 struct tasdevice_fw *tas_fmw = tas_dev->fmw; in tasdevice_dsp_remove() 423 if (!tas_dev->fmw) in tasdevice_dsp_remove() [all …]
|
H A D | tas2781-i2c.c | 747 struct tasdevice_priv *tas_dev = snd_soc_component_get_drvdata(codec); in tas2563_digital_gain_get() local 754 mutex_lock(&tas_dev->codec_lock); in tas2563_digital_gain_get() 756 ret = tasdevice_dev_bulk_read(tas_dev, 0, reg, data, 4); in tas2563_digital_gain_get() 758 dev_err(tas_dev->dev, "%s, get AMP vol error\n", __func__); in tas2563_digital_gain_get() 780 mutex_unlock(&tas_dev->codec_lock); in tas2563_digital_gain_get() 791 struct tasdevice_priv *tas_dev = snd_soc_component_get_drvdata(codec); in tas2563_digital_gain_put() local 800 mutex_lock(&tas_dev->codec_lock); in tas2563_digital_gain_put() 802 ret = tasdevice_dev_bulk_read(tas_dev, 0, reg, data, 4); in tas2563_digital_gain_put() 804 dev_err(tas_dev->dev, "%s, get AMP vol error\n", __func__); in tas2563_digital_gain_put() 817 for (i = 0; i < tas_dev->ndev; i++) { in tas2563_digital_gain_put() [all …]
|
/linux/sound/pci/hda/ |
H A D | tas2781_spi_fwlib.c | 1848 struct tasdevice_priv *tas_dev = context; in tasdevice_spi_dsp_remove() local 1850 if (!tas_dev->fmw) in tasdevice_spi_dsp_remove() 1853 if (tas_dev->fmw->programs) in tasdevice_spi_dsp_remove() 1854 tasdev_dsp_prog_remove(tas_dev->fmw->programs, in tasdevice_spi_dsp_remove() 1855 tas_dev->fmw->nr_programs); in tasdevice_spi_dsp_remove() 1856 if (tas_dev->fmw->configs) in tasdevice_spi_dsp_remove() 1857 tasdev_dsp_cfg_remove(tas_dev->fmw->configs, in tasdevice_spi_dsp_remove() 1858 tas_dev->fmw->nr_configurations); in tasdevice_spi_dsp_remove() 1859 kfree(tas_dev->fmw); in tasdevice_spi_dsp_remove() 1860 tas_dev->fmw = NULL; in tasdevice_spi_dsp_remove()
|
H A D | tas2781_hda_spi.c | 249 static void tas2781_spi_reset(struct tasdevice_priv *tas_dev) in tas2781_spi_reset() argument 253 if (tas_dev->reset) { in tas2781_spi_reset() 254 gpiod_set_value_cansleep(tas_dev->reset, 0); in tas2781_spi_reset() 256 gpiod_set_value_cansleep(tas_dev->reset, 1); in tas2781_spi_reset() 258 ret = tasdevice_spi_dev_write(tas_dev, TAS2781_REG_SWRESET, in tas2781_spi_reset() 261 dev_err(tas_dev->dev, "dev sw-reset fail, %d\n", ret); in tas2781_spi_reset()
|