Lines Matching defs:tas_dev
825 struct tasdevice_priv *tas_dev = snd_soc_component_get_drvdata(codec);
832 mutex_lock(&tas_dev->codec_lock);
834 ret = tasdevice_dev_bulk_read(tas_dev, 0, reg, data, 4);
836 dev_err(tas_dev->dev, "%s, get AMP vol error\n", __func__);
844 ar_mid = get_unaligned_be32(tas_dev->dvc_tlv_table[mid]);
851 ar_l = get_unaligned_be32(tas_dev->dvc_tlv_table[l]);
852 ar_r = get_unaligned_be32(tas_dev->dvc_tlv_table[r]);
858 mutex_unlock(&tas_dev->codec_lock);
869 struct tasdevice_priv *tas_dev = snd_soc_component_get_drvdata(codec);
878 mutex_lock(&tas_dev->codec_lock);
880 ret = tasdevice_dev_bulk_read(tas_dev, 0, reg, data, 4);
882 dev_err(tas_dev->dev, "%s, get AMP vol error\n", __func__);
888 volwr = get_unaligned_be32(tas_dev->dvc_tlv_table[vol]);
895 for (i = 0; i < tas_dev->ndev; i++) {
896 ret = tasdevice_dev_bulk_write(tas_dev, i, reg,
897 (unsigned char *)tas_dev->dvc_tlv_table[vol], 4);
899 dev_err(tas_dev->dev,
909 mutex_unlock(&tas_dev->codec_lock);