Lines Matching refs:tas_dev
765 struct tasdevice_priv *tas_dev = snd_soc_component_get_drvdata(codec); in tas2563_digital_gain_get() local
772 mutex_lock(&tas_dev->codec_lock); in tas2563_digital_gain_get()
774 ret = tasdevice_dev_bulk_read(tas_dev, 0, reg, data, 4); in tas2563_digital_gain_get()
776 dev_err(tas_dev->dev, "%s, get AMP vol error\n", __func__); in tas2563_digital_gain_get()
798 mutex_unlock(&tas_dev->codec_lock); in tas2563_digital_gain_get()
809 struct tasdevice_priv *tas_dev = snd_soc_component_get_drvdata(codec); in tas2563_digital_gain_put() local
818 mutex_lock(&tas_dev->codec_lock); in tas2563_digital_gain_put()
820 ret = tasdevice_dev_bulk_read(tas_dev, 0, reg, data, 4); in tas2563_digital_gain_put()
822 dev_err(tas_dev->dev, "%s, get AMP vol error\n", __func__); in tas2563_digital_gain_put()
835 for (i = 0; i < tas_dev->ndev; i++) { in tas2563_digital_gain_put()
836 ret = tasdevice_dev_bulk_write(tas_dev, i, reg, in tas2563_digital_gain_put()
839 dev_err(tas_dev->dev, in tas2563_digital_gain_put()
849 mutex_unlock(&tas_dev->codec_lock); in tas2563_digital_gain_put()