Lines Matching refs:cs47l15
41 struct cs47l15 { struct
73 struct cs47l15 *cs47l15 = snd_soc_component_get_drvdata(component); in cs47l15_adsp_power_ev() local
74 struct madera_priv *priv = &cs47l15->core; in cs47l15_adsp_power_ev()
88 ret = madera_set_adsp_clk(&cs47l15->core, w->shift, freq); in cs47l15_adsp_power_ev()
111 struct cs47l15 *cs47l15 = snd_soc_component_get_drvdata(component); in cs47l15_in1_adc_get() local
113 ucontrol->value.integer.value[0] = !!cs47l15->in1_lp_mode; in cs47l15_in1_adc_get()
123 struct cs47l15 *cs47l15 = snd_soc_component_get_drvdata(component); in cs47l15_in1_adc_put() local
125 if (!!ucontrol->value.integer.value[0] == cs47l15->in1_lp_mode) in cs47l15_in1_adc_put()
139 cs47l15->in1_lp_mode = false; in cs47l15_in1_adc_put()
152 cs47l15->in1_lp_mode = true; in cs47l15_in1_adc_put()
1129 struct cs47l15 *cs47l15 = snd_soc_component_get_drvdata(component); in cs47l15_set_fll() local
1133 return madera_set_fll_refclk(&cs47l15->fll[0], source, fref, in cs47l15_set_fll()
1136 return madera_set_fll_ao_refclk(&cs47l15->fll[1], source, fref, in cs47l15_set_fll()
1139 return madera_set_fll_syncclk(&cs47l15->fll[0], source, fref, in cs47l15_set_fll()
1244 struct cs47l15 *cs47l15 = snd_soc_component_get_drvdata(component); in cs47l15_open() local
1245 struct madera_priv *priv = &cs47l15->core; in cs47l15_open()
1263 struct cs47l15 *cs47l15 = data; in cs47l15_adsp2_irq() local
1264 struct madera_priv *priv = &cs47l15->core; in cs47l15_adsp2_irq()
1283 struct cs47l15 *cs47l15 = snd_soc_component_get_drvdata(component); in cs47l15_component_probe() local
1284 struct madera *madera = cs47l15->core.madera; in cs47l15_component_probe()
1311 wm_adsp2_component_probe(&cs47l15->core.adsp[0], component); in cs47l15_component_probe()
1318 struct cs47l15 *cs47l15 = snd_soc_component_get_drvdata(component); in cs47l15_component_remove() local
1319 struct madera *madera = cs47l15->core.madera; in cs47l15_component_remove()
1325 wm_adsp2_component_remove(&cs47l15->core.adsp[0], component); in cs47l15_component_remove()
1368 struct cs47l15 *cs47l15; in cs47l15_probe() local
1379 cs47l15 = devm_kzalloc(&pdev->dev, sizeof(struct cs47l15), in cs47l15_probe()
1381 if (!cs47l15) in cs47l15_probe()
1384 platform_set_drvdata(pdev, cs47l15); in cs47l15_probe()
1386 cs47l15->core.madera = madera; in cs47l15_probe()
1387 cs47l15->core.dev = &pdev->dev; in cs47l15_probe()
1388 cs47l15->core.num_inputs = 4; in cs47l15_probe()
1390 ret = madera_core_init(&cs47l15->core); in cs47l15_probe()
1394 ret = madera_init_overheat(&cs47l15->core); in cs47l15_probe()
1400 cs47l15); in cs47l15_probe()
1410 cs47l15->core.adsp[0].part = "cs47l15"; in cs47l15_probe()
1411 cs47l15->core.adsp[0].cs_dsp.num = 1; in cs47l15_probe()
1412 cs47l15->core.adsp[0].cs_dsp.type = WMFW_ADSP2; in cs47l15_probe()
1413 cs47l15->core.adsp[0].cs_dsp.rev = 2; in cs47l15_probe()
1414 cs47l15->core.adsp[0].cs_dsp.dev = madera->dev; in cs47l15_probe()
1415 cs47l15->core.adsp[0].cs_dsp.regmap = madera->regmap_32bit; in cs47l15_probe()
1417 cs47l15->core.adsp[0].cs_dsp.base = MADERA_DSP1_CONFIG_1; in cs47l15_probe()
1418 cs47l15->core.adsp[0].cs_dsp.mem = cs47l15_dsp1_regions; in cs47l15_probe()
1419 cs47l15->core.adsp[0].cs_dsp.num_mems = ARRAY_SIZE(cs47l15_dsp1_regions); in cs47l15_probe()
1421 cs47l15->core.adsp[0].cs_dsp.lock_regions = in cs47l15_probe()
1424 ret = wm_adsp2_init(&cs47l15->core.adsp[0]); in cs47l15_probe()
1428 ret = madera_init_bus_error_irq(&cs47l15->core, 0, wm_adsp2_bus_error); in cs47l15_probe()
1433 &cs47l15->fll[0]); in cs47l15_probe()
1435 &cs47l15->fll[1]); in cs47l15_probe()
1438 madera_init_dai(&cs47l15->core, i); in cs47l15_probe()
1461 madera_free_bus_error_irq(&cs47l15->core, 0); in cs47l15_probe()
1463 wm_adsp2_remove(&cs47l15->core.adsp[0]); in cs47l15_probe()
1466 madera_free_irq(madera, MADERA_IRQ_DSP_IRQ1, cs47l15); in cs47l15_probe()
1468 madera_free_overheat(&cs47l15->core); in cs47l15_probe()
1470 madera_core_free(&cs47l15->core); in cs47l15_probe()
1477 struct cs47l15 *cs47l15 = platform_get_drvdata(pdev); in cs47l15_remove() local
1481 madera_free_bus_error_irq(&cs47l15->core, 0); in cs47l15_remove()
1483 wm_adsp2_remove(&cs47l15->core.adsp[0]); in cs47l15_remove()
1485 madera_set_irq_wake(cs47l15->core.madera, MADERA_IRQ_DSP_IRQ1, 0); in cs47l15_remove()
1486 madera_free_irq(cs47l15->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l15); in cs47l15_remove()
1487 madera_free_overheat(&cs47l15->core); in cs47l15_remove()
1488 madera_core_free(&cs47l15->core); in cs47l15_remove()