Lines Matching refs:tas_dev
807 struct tasdevice_priv *tas_dev = snd_soc_component_get_drvdata(codec); in tas2563_digital_gain_get() local
814 mutex_lock(&tas_dev->codec_lock); in tas2563_digital_gain_get()
816 ret = tasdevice_dev_bulk_read(tas_dev, 0, reg, data, 4); in tas2563_digital_gain_get()
818 dev_err(tas_dev->dev, "%s, get AMP vol error\n", __func__); in tas2563_digital_gain_get()
840 mutex_unlock(&tas_dev->codec_lock); in tas2563_digital_gain_get()
851 struct tasdevice_priv *tas_dev = snd_soc_component_get_drvdata(codec); in tas2563_digital_gain_put() local
860 mutex_lock(&tas_dev->codec_lock); in tas2563_digital_gain_put()
862 ret = tasdevice_dev_bulk_read(tas_dev, 0, reg, data, 4); in tas2563_digital_gain_put()
864 dev_err(tas_dev->dev, "%s, get AMP vol error\n", __func__); in tas2563_digital_gain_put()
877 for (i = 0; i < tas_dev->ndev; i++) { in tas2563_digital_gain_put()
878 ret = tasdevice_dev_bulk_write(tas_dev, i, reg, in tas2563_digital_gain_put()
881 dev_err(tas_dev->dev, in tas2563_digital_gain_put()
891 mutex_unlock(&tas_dev->codec_lock); in tas2563_digital_gain_put()