Lines Matching full:cs47l24
3 * cs47l24.h -- ALSA SoC Audio driver for Cirrus Logic CS47L24
31 #include "cs47l24.h"
33 #define DRV_NAME "cs47l24-codec"
937 struct cs47l24_priv *cs47l24 = snd_soc_component_get_drvdata(component); in cs47l24_set_fll() local
941 return arizona_set_fll(&cs47l24->fll[0], source, Fref, Fout); in cs47l24_set_fll()
943 return arizona_set_fll(&cs47l24->fll[1], source, Fref, Fout); in cs47l24_set_fll()
945 return arizona_set_fll_refclk(&cs47l24->fll[0], source, Fref, in cs47l24_set_fll()
948 return arizona_set_fll_refclk(&cs47l24->fll[1], source, Fref, in cs47l24_set_fll()
966 .name = "cs47l24-aif1",
988 .name = "cs47l24-aif2",
1010 .name = "cs47l24-aif3",
1032 .name = "cs47l24-cpu-voicectrl",
1043 .name = "cs47l24-dsp-voicectrl",
1053 .name = "cs47l24-cpu-trace",
1064 .name = "cs47l24-dsp-trace",
1083 if (strcmp(snd_soc_rtd_to_codec(rtd, 0)->name, "cs47l24-dsp-voicectrl") == 0) { in cs47l24_open()
1085 } else if (strcmp(snd_soc_rtd_to_codec(rtd, 0)->name, "cs47l24-dsp-trace") == 0) { in cs47l24_open()
1215 struct cs47l24_priv *cs47l24; in cs47l24_probe() local
1220 cs47l24 = devm_kzalloc(&pdev->dev, sizeof(struct cs47l24_priv), in cs47l24_probe()
1222 if (!cs47l24) in cs47l24_probe()
1233 platform_set_drvdata(pdev, cs47l24); in cs47l24_probe()
1235 cs47l24->core.arizona = arizona; in cs47l24_probe()
1236 cs47l24->core.num_inputs = 4; in cs47l24_probe()
1239 cs47l24->core.adsp[i].part = "cs47l24"; in cs47l24_probe()
1240 cs47l24->core.adsp[i].cs_dsp.num = i + 1; in cs47l24_probe()
1241 cs47l24->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in cs47l24_probe()
1242 cs47l24->core.adsp[i].cs_dsp.dev = arizona->dev; in cs47l24_probe()
1243 cs47l24->core.adsp[i].cs_dsp.regmap = arizona->regmap; in cs47l24_probe()
1245 cs47l24->core.adsp[i].cs_dsp.base = ARIZONA_DSP1_CONTROL_1 + in cs47l24_probe()
1247 cs47l24->core.adsp[i].cs_dsp.mem = cs47l24_dsp_regions[i - 1]; in cs47l24_probe()
1248 cs47l24->core.adsp[i].cs_dsp.num_mems = in cs47l24_probe()
1251 ret = wm_adsp2_init(&cs47l24->core.adsp[i]); in cs47l24_probe()
1256 for (i = 0; i < ARRAY_SIZE(cs47l24->fll); i++) in cs47l24_probe()
1257 cs47l24->fll[i].vco_mult = 3; in cs47l24_probe()
1261 &cs47l24->fll[0]); in cs47l24_probe()
1264 &cs47l24->fll[1]); in cs47l24_probe()
1273 arizona_init_dai(&cs47l24->core, i); in cs47l24_probe()
1285 cs47l24); in cs47l24_probe()
1321 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, cs47l24); in cs47l24_probe()
1328 struct cs47l24_priv *cs47l24 = platform_get_drvdata(pdev); in cs47l24_remove() local
1329 struct arizona *arizona = cs47l24->core.arizona; in cs47l24_remove()
1333 wm_adsp2_remove(&cs47l24->core.adsp[1]); in cs47l24_remove()
1334 wm_adsp2_remove(&cs47l24->core.adsp[2]); in cs47l24_remove()
1339 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, cs47l24); in cs47l24_remove()
1344 .name = "cs47l24-codec",
1352 MODULE_DESCRIPTION("ASoC CS47L24 driver");
1355 MODULE_ALIAS("platform:cs47l24-codec");