Lines Matching refs:cs47l90
35 struct cs47l90 { struct
115 struct cs47l90 *cs47l90 = snd_soc_component_get_drvdata(component); in cs47l90_adsp_power_ev() local
116 struct madera_priv *priv = &cs47l90->core; in cs47l90_adsp_power_ev()
130 ret = madera_set_adsp_clk(&cs47l90->core, w->shift, freq); in cs47l90_adsp_power_ev()
2148 struct cs47l90 *cs47l90 = snd_soc_component_get_drvdata(component); in cs47l90_set_fll() local
2152 return madera_set_fll_refclk(&cs47l90->fll[0], source, fref, in cs47l90_set_fll()
2155 return madera_set_fll_refclk(&cs47l90->fll[1], source, fref, in cs47l90_set_fll()
2158 return madera_set_fll_ao_refclk(&cs47l90->fll[2], source, fref, in cs47l90_set_fll()
2161 return madera_set_fll_syncclk(&cs47l90->fll[0], source, fref, in cs47l90_set_fll()
2164 return madera_set_fll_syncclk(&cs47l90->fll[1], source, fref, in cs47l90_set_fll()
2369 struct cs47l90 *cs47l90 = snd_soc_component_get_drvdata(component); in cs47l90_open() local
2370 struct madera_priv *priv = &cs47l90->core; in cs47l90_open()
2390 struct cs47l90 *cs47l90 = data; in cs47l90_adsp2_irq() local
2391 struct madera_priv *priv = &cs47l90->core; in cs47l90_adsp2_irq()
2419 struct cs47l90 *cs47l90 = snd_soc_component_get_drvdata(component); in cs47l90_component_probe() local
2420 struct madera *madera = cs47l90->core.madera; in cs47l90_component_probe()
2447 wm_adsp2_component_probe(&cs47l90->core.adsp[i], component); in cs47l90_component_probe()
2454 struct cs47l90 *cs47l90 = snd_soc_component_get_drvdata(component); in cs47l90_component_remove() local
2455 struct madera *madera = cs47l90->core.madera; in cs47l90_component_remove()
2463 wm_adsp2_component_remove(&cs47l90->core.adsp[i], component); in cs47l90_component_remove()
2509 struct cs47l90 *cs47l90; in cs47l90_probe() local
2520 cs47l90 = devm_kzalloc(&pdev->dev, sizeof(struct cs47l90), in cs47l90_probe()
2522 if (!cs47l90) in cs47l90_probe()
2525 platform_set_drvdata(pdev, cs47l90); in cs47l90_probe()
2527 cs47l90->core.madera = madera; in cs47l90_probe()
2528 cs47l90->core.dev = &pdev->dev; in cs47l90_probe()
2529 cs47l90->core.num_inputs = 10; in cs47l90_probe()
2531 ret = madera_core_init(&cs47l90->core); in cs47l90_probe()
2537 cs47l90); in cs47l90_probe()
2548 cs47l90->core.adsp[i].part = "cs47l90"; in cs47l90_probe()
2549 cs47l90->core.adsp[i].cs_dsp.num = i + 1; in cs47l90_probe()
2550 cs47l90->core.adsp[i].cs_dsp.type = WMFW_ADSP2; in cs47l90_probe()
2551 cs47l90->core.adsp[i].cs_dsp.rev = 2; in cs47l90_probe()
2552 cs47l90->core.adsp[i].cs_dsp.dev = madera->dev; in cs47l90_probe()
2553 cs47l90->core.adsp[i].cs_dsp.regmap = madera->regmap_32bit; in cs47l90_probe()
2555 cs47l90->core.adsp[i].cs_dsp.base = cs47l90_dsp_control_bases[i]; in cs47l90_probe()
2556 cs47l90->core.adsp[i].cs_dsp.mem = cs47l90_dsp_regions[i]; in cs47l90_probe()
2557 cs47l90->core.adsp[i].cs_dsp.num_mems = in cs47l90_probe()
2560 cs47l90->core.adsp[i].cs_dsp.lock_regions = CS_ADSP2_REGION_1_9; in cs47l90_probe()
2562 ret = wm_adsp2_init(&cs47l90->core.adsp[i]); in cs47l90_probe()
2565 ret = madera_init_bus_error_irq(&cs47l90->core, i, in cs47l90_probe()
2568 wm_adsp2_remove(&cs47l90->core.adsp[i]); in cs47l90_probe()
2573 madera_free_bus_error_irq(&cs47l90->core, i); in cs47l90_probe()
2574 wm_adsp2_remove(&cs47l90->core.adsp[i]); in cs47l90_probe()
2581 &cs47l90->fll[0]); in cs47l90_probe()
2583 &cs47l90->fll[1]); in cs47l90_probe()
2585 &cs47l90->fll[2]); in cs47l90_probe()
2588 madera_init_dai(&cs47l90->core, i); in cs47l90_probe()
2613 madera_free_bus_error_irq(&cs47l90->core, i); in cs47l90_probe()
2614 wm_adsp2_remove(&cs47l90->core.adsp[i]); in cs47l90_probe()
2618 madera_free_irq(madera, MADERA_IRQ_DSP_IRQ1, cs47l90); in cs47l90_probe()
2620 madera_core_free(&cs47l90->core); in cs47l90_probe()
2627 struct cs47l90 *cs47l90 = platform_get_drvdata(pdev); in cs47l90_remove() local
2633 madera_free_bus_error_irq(&cs47l90->core, i); in cs47l90_remove()
2634 wm_adsp2_remove(&cs47l90->core.adsp[i]); in cs47l90_remove()
2637 madera_set_irq_wake(cs47l90->core.madera, MADERA_IRQ_DSP_IRQ1, 0); in cs47l90_remove()
2638 madera_free_irq(cs47l90->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l90); in cs47l90_remove()
2639 madera_core_free(&cs47l90->core); in cs47l90_remove()