Lines Matching refs:cs47l85
35 struct cs47l85 { struct
115 struct cs47l85 *cs47l85 = snd_soc_component_get_drvdata(component); in cs47l85_adsp_power_ev() local
116 struct madera_priv *priv = &cs47l85->core; in cs47l85_adsp_power_ev()
133 ret = madera_set_adsp_clk(&cs47l85->core, w->shift, freq); in cs47l85_adsp_power_ev()
2226 struct cs47l85 *cs47l85 = snd_soc_component_get_drvdata(component); in cs47l85_set_fll() local
2230 return madera_set_fll_refclk(&cs47l85->fll[0], source, fref, in cs47l85_set_fll()
2233 return madera_set_fll_refclk(&cs47l85->fll[1], source, fref, in cs47l85_set_fll()
2236 return madera_set_fll_refclk(&cs47l85->fll[2], source, fref, in cs47l85_set_fll()
2239 return madera_set_fll_syncclk(&cs47l85->fll[0], source, fref, in cs47l85_set_fll()
2242 return madera_set_fll_syncclk(&cs47l85->fll[1], source, fref, in cs47l85_set_fll()
2245 return madera_set_fll_syncclk(&cs47l85->fll[2], source, fref, in cs47l85_set_fll()
2450 struct cs47l85 *cs47l85 = snd_soc_component_get_drvdata(component); in cs47l85_open() local
2451 struct madera_priv *priv = &cs47l85->core; in cs47l85_open()
2471 struct cs47l85 *cs47l85 = data; in cs47l85_adsp2_irq() local
2472 struct madera_priv *priv = &cs47l85->core; in cs47l85_adsp2_irq()
2500 struct cs47l85 *cs47l85 = snd_soc_component_get_drvdata(component); in cs47l85_component_probe() local
2501 struct madera *madera = cs47l85->core.madera; in cs47l85_component_probe()
2528 wm_adsp2_component_probe(&cs47l85->core.adsp[i], component); in cs47l85_component_probe()
2535 struct cs47l85 *cs47l85 = snd_soc_component_get_drvdata(component); in cs47l85_component_remove() local
2536 struct madera *madera = cs47l85->core.madera; in cs47l85_component_remove()
2544 wm_adsp2_component_remove(&cs47l85->core.adsp[i], component); in cs47l85_component_remove()
2594 struct cs47l85 *cs47l85; in cs47l85_probe() local
2605 cs47l85 = devm_kzalloc(&pdev->dev, sizeof(struct cs47l85), in cs47l85_probe()
2607 if (!cs47l85) in cs47l85_probe()
2610 platform_set_drvdata(pdev, cs47l85); in cs47l85_probe()
2612 cs47l85->core.madera = madera; in cs47l85_probe()
2613 cs47l85->core.dev = &pdev->dev; in cs47l85_probe()
2614 cs47l85->core.num_inputs = 12; in cs47l85_probe()
2616 ret = madera_core_init(&cs47l85->core); in cs47l85_probe()
2620 ret = madera_init_overheat(&cs47l85->core); in cs47l85_probe()
2626 cs47l85); in cs47l85_probe()
2637 cs47l85->core.adsp[i].part = "cs47l85"; in cs47l85_probe()
2638 cs47l85->core.adsp[i].cs_dsp.num = i + 1; in cs47l85_probe()
2639 cs47l85->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in cs47l85_probe()
2640 cs47l85->core.adsp[i].cs_dsp.rev = 1; in cs47l85_probe()
2641 cs47l85->core.adsp[i].cs_dsp.dev = madera->dev; in cs47l85_probe()
2642 cs47l85->core.adsp[i].cs_dsp.regmap = madera->regmap_32bit; in cs47l85_probe()
2644 cs47l85->core.adsp[i].cs_dsp.base = wm_adsp2_control_bases[i]; in cs47l85_probe()
2645 cs47l85->core.adsp[i].cs_dsp.mem = cs47l85_dsp_regions[i]; in cs47l85_probe()
2646 cs47l85->core.adsp[i].cs_dsp.num_mems = in cs47l85_probe()
2649 ret = wm_adsp2_init(&cs47l85->core.adsp[i]); in cs47l85_probe()
2652 wm_adsp2_remove(&cs47l85->core.adsp[i]); in cs47l85_probe()
2658 &cs47l85->fll[0]); in cs47l85_probe()
2660 &cs47l85->fll[1]); in cs47l85_probe()
2662 &cs47l85->fll[2]); in cs47l85_probe()
2665 madera_init_dai(&cs47l85->core, i); in cs47l85_probe()
2690 wm_adsp2_remove(&cs47l85->core.adsp[i]); in cs47l85_probe()
2693 madera_free_irq(madera, MADERA_IRQ_DSP_IRQ1, cs47l85); in cs47l85_probe()
2695 madera_free_overheat(&cs47l85->core); in cs47l85_probe()
2697 madera_core_free(&cs47l85->core); in cs47l85_probe()
2704 struct cs47l85 *cs47l85 = platform_get_drvdata(pdev); in cs47l85_remove() local
2710 wm_adsp2_remove(&cs47l85->core.adsp[i]); in cs47l85_remove()
2712 madera_set_irq_wake(cs47l85->core.madera, MADERA_IRQ_DSP_IRQ1, 0); in cs47l85_remove()
2713 madera_free_irq(cs47l85->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l85); in cs47l85_remove()
2714 madera_free_overheat(&cs47l85->core); in cs47l85_remove()
2715 madera_core_free(&cs47l85->core); in cs47l85_remove()