Lines Matching refs:tas5720
147 struct tas5720_data *tas5720 = snd_soc_component_get_drvdata(component); in tas5720_set_dai_tdm_slot() local
173 switch (tas5720->devtype) { in tas5720_set_dai_tdm_slot()
191 switch (tas5720->devtype) { in tas5720_set_dai_tdm_slot()
213 struct tas5720_data *tas5720 = snd_soc_component_get_drvdata(component); in tas5720_mute_soc_component() local
217 switch (tas5720->devtype) { in tas5720_mute_soc_component()
244 struct tas5720_data *tas5720 = container_of(work, struct tas5720_data, in tas5720_fault_check_work() local
246 struct device *dev = tas5720->component->dev; in tas5720_fault_check_work()
250 ret = regmap_read(tas5720->regmap, TAS5720_FAULT_REG, &curr_fault); in tas5720_fault_check_work()
265 if ((curr_fault & TAS5720_OCE) && !(tas5720->last_fault & TAS5720_OCE)) in tas5720_fault_check_work()
268 if ((curr_fault & TAS5720_DCE) && !(tas5720->last_fault & TAS5720_DCE)) in tas5720_fault_check_work()
271 if ((curr_fault & TAS5720_OTE) && !(tas5720->last_fault & TAS5720_OTE)) in tas5720_fault_check_work()
275 tas5720->last_fault = curr_fault; in tas5720_fault_check_work()
286 ret = regmap_write_bits(tas5720->regmap, TAS5720_POWER_CTRL_REG, in tas5720_fault_check_work()
291 ret = regmap_write_bits(tas5720->regmap, TAS5720_POWER_CTRL_REG, in tas5720_fault_check_work()
298 schedule_delayed_work(&tas5720->fault_check_work, in tas5720_fault_check_work()
304 struct tas5720_data *tas5720 = snd_soc_component_get_drvdata(component); in tas5720_codec_probe() local
308 tas5720->component = component; in tas5720_codec_probe()
310 ret = regulator_bulk_enable(ARRAY_SIZE(tas5720->supplies), in tas5720_codec_probe()
311 tas5720->supplies); in tas5720_codec_probe()
322 ret = regmap_read(tas5720->regmap, TAS5720_DEVICE_ID_REG, &device_id); in tas5720_codec_probe()
329 switch (tas5720->devtype) { in tas5720_codec_probe()
355 switch (tas5720->devtype) { in tas5720_codec_probe()
378 INIT_DELAYED_WORK(&tas5720->fault_check_work, tas5720_fault_check_work); in tas5720_codec_probe()
386 regulator_bulk_disable(ARRAY_SIZE(tas5720->supplies), in tas5720_codec_probe()
387 tas5720->supplies); in tas5720_codec_probe()
393 struct tas5720_data *tas5720 = snd_soc_component_get_drvdata(component); in tas5720_codec_remove() local
396 cancel_delayed_work_sync(&tas5720->fault_check_work); in tas5720_codec_remove()
398 ret = regulator_bulk_disable(ARRAY_SIZE(tas5720->supplies), in tas5720_codec_remove()
399 tas5720->supplies); in tas5720_codec_remove()
408 struct tas5720_data *tas5720 = snd_soc_component_get_drvdata(component); in tas5720_dac_event() local
431 tas5720->last_fault = 0; in tas5720_dac_event()
432 schedule_delayed_work(&tas5720->fault_check_work, in tas5720_dac_event()
436 cancel_delayed_work_sync(&tas5720->fault_check_work); in tas5720_dac_event()
454 struct tas5720_data *tas5720 = snd_soc_component_get_drvdata(component); in tas5720_suspend() local
457 regcache_cache_only(tas5720->regmap, true); in tas5720_suspend()
458 regcache_mark_dirty(tas5720->regmap); in tas5720_suspend()
460 ret = regulator_bulk_disable(ARRAY_SIZE(tas5720->supplies), in tas5720_suspend()
461 tas5720->supplies); in tas5720_suspend()
470 struct tas5720_data *tas5720 = snd_soc_component_get_drvdata(component); in tas5720_resume() local
473 ret = regulator_bulk_enable(ARRAY_SIZE(tas5720->supplies), in tas5720_resume()
474 tas5720->supplies); in tas5720_resume()
480 regcache_cache_only(tas5720->regmap, false); in tas5720_resume()
482 ret = regcache_sync(tas5720->regmap); in tas5720_resume()