Lines Matching full:dac
17 /* DAC definitions */
19 /* stih407 DAC registers */
22 /* sysconf 5042: Audio-DAC-Control */
25 /* DAC definitions */
68 const struct snd_soc_dai_ops *dac_ops; /* DAC function callbacks */
79 struct sti_dac_audio dac; member
91 status = regmap_read(drvdata->dac.regmap, reg, &val); in sti_sas_read_reg()
104 status = regmap_write(drvdata->dac.regmap, reg, value); in sti_sas_write_reg()
114 * DAC and SPDIF are activated by default in sti_sas_init_sas_registers()
131 /* Init DAC configuration */ in sti_sas_init_sas_registers()
147 dev_err(component->dev, "Failed to update DAC registers\n"); in sti_sas_init_sas_registers()
155 * DAC
171 SND_SOC_DAPM_OUT_DRV("DAC standby ana", STIH407_AUDIO_DAC_CTRL,
173 SND_SOC_DAPM_DAC("DAC standby", "dac_p", STIH407_AUDIO_DAC_CTRL,
175 SND_SOC_DAPM_OUTPUT("DAC Output"),
179 {"DAC Output", NULL, "DAC standby ana"},
180 {"DAC standby ana", NULL, "DAC standby"},
278 drvdata->dac.mclk = freq; in sti_sas_set_sysclk()
300 if ((drvdata->dac.mclk / runtime->rate) != 256) { in sti_sas_prepare()
364 .name = "sas-dai-dac",
439 /* Request the DAC & SPDIF registers memory region */ in sti_sas_driver_probe()
440 drvdata->dac.virt_regmap = devm_regmap_init(&pdev->dev, NULL, drvdata, in sti_sas_driver_probe()
442 if (IS_ERR(drvdata->dac.virt_regmap)) { in sti_sas_driver_probe()
444 return PTR_ERR(drvdata->dac.virt_regmap); in sti_sas_driver_probe()
448 drvdata->dac.regmap = in sti_sas_driver_probe()
450 if (IS_ERR(drvdata->dac.regmap)) { in sti_sas_driver_probe()
452 return PTR_ERR(drvdata->dac.regmap); in sti_sas_driver_probe()
454 drvdata->spdif.regmap = drvdata->dac.regmap; in sti_sas_driver_probe()