Lines Matching refs:tas5720
147 struct tas5720_data *tas5720 = snd_soc_component_get_drvdata(component); in tas5720_set_dai_tdm_slot() local
182 switch (tas5720->devtype) { in tas5720_set_dai_tdm_slot()
219 struct tas5720_data *tas5720 = container_of(work, struct tas5720_data, in tas5720_fault_check_work() local
221 struct device *dev = tas5720->component->dev; in tas5720_fault_check_work()
225 ret = regmap_read(tas5720->regmap, TAS5720_FAULT_REG, &curr_fault); in tas5720_fault_check_work()
240 if ((curr_fault & TAS5720_OCE) && !(tas5720->last_fault & TAS5720_OCE)) in tas5720_fault_check_work()
243 if ((curr_fault & TAS5720_DCE) && !(tas5720->last_fault & TAS5720_DCE)) in tas5720_fault_check_work()
246 if ((curr_fault & TAS5720_OTE) && !(tas5720->last_fault & TAS5720_OTE)) in tas5720_fault_check_work()
250 tas5720->last_fault = curr_fault; in tas5720_fault_check_work()
261 ret = regmap_write_bits(tas5720->regmap, TAS5720_POWER_CTRL_REG, in tas5720_fault_check_work()
266 ret = regmap_write_bits(tas5720->regmap, TAS5720_POWER_CTRL_REG, in tas5720_fault_check_work()
273 schedule_delayed_work(&tas5720->fault_check_work, in tas5720_fault_check_work()
279 struct tas5720_data *tas5720 = snd_soc_component_get_drvdata(component); in tas5720_codec_probe() local
283 tas5720->component = component; in tas5720_codec_probe()
285 ret = regulator_bulk_enable(ARRAY_SIZE(tas5720->supplies), in tas5720_codec_probe()
286 tas5720->supplies); in tas5720_codec_probe()
297 ret = regmap_read(tas5720->regmap, TAS5720_DEVICE_ID_REG, &device_id); in tas5720_codec_probe()
304 switch (tas5720->devtype) { in tas5720_codec_probe()
337 INIT_DELAYED_WORK(&tas5720->fault_check_work, tas5720_fault_check_work); in tas5720_codec_probe()
345 regulator_bulk_disable(ARRAY_SIZE(tas5720->supplies), in tas5720_codec_probe()
346 tas5720->supplies); in tas5720_codec_probe()
352 struct tas5720_data *tas5720 = snd_soc_component_get_drvdata(component); in tas5720_codec_remove() local
355 cancel_delayed_work_sync(&tas5720->fault_check_work); in tas5720_codec_remove()
357 ret = regulator_bulk_disable(ARRAY_SIZE(tas5720->supplies), in tas5720_codec_remove()
358 tas5720->supplies); in tas5720_codec_remove()
367 struct tas5720_data *tas5720 = snd_soc_component_get_drvdata(component); in tas5720_dac_event() local
390 tas5720->last_fault = 0; in tas5720_dac_event()
391 schedule_delayed_work(&tas5720->fault_check_work, in tas5720_dac_event()
395 cancel_delayed_work_sync(&tas5720->fault_check_work); in tas5720_dac_event()
413 struct tas5720_data *tas5720 = snd_soc_component_get_drvdata(component); in tas5720_suspend() local
416 regcache_cache_only(tas5720->regmap, true); in tas5720_suspend()
417 regcache_mark_dirty(tas5720->regmap); in tas5720_suspend()
419 ret = regulator_bulk_disable(ARRAY_SIZE(tas5720->supplies), in tas5720_suspend()
420 tas5720->supplies); in tas5720_suspend()
429 struct tas5720_data *tas5720 = snd_soc_component_get_drvdata(component); in tas5720_resume() local
432 ret = regulator_bulk_enable(ARRAY_SIZE(tas5720->supplies), in tas5720_resume()
433 tas5720->supplies); in tas5720_resume()
439 regcache_cache_only(tas5720->regmap, false); in tas5720_resume()
441 ret = regcache_sync(tas5720->regmap); in tas5720_resume()