Lines Matching full:wm5102

3  * wm5102.c  --  WM5102 ALSA SoC Audio driver
31 #include "wm5102.h"
34 #define DRV_NAME "wm5102-codec"
1753 struct wm5102_priv *wm5102 = snd_soc_component_get_drvdata(component); in wm5102_set_fll() local
1757 return arizona_set_fll(&wm5102->fll[0], source, Fref, Fout); in wm5102_set_fll()
1759 return arizona_set_fll(&wm5102->fll[1], source, Fref, Fout); in wm5102_set_fll()
1761 return arizona_set_fll_refclk(&wm5102->fll[0], source, Fref, in wm5102_set_fll()
1764 return arizona_set_fll_refclk(&wm5102->fll[1], source, Fref, in wm5102_set_fll()
1782 .name = "wm5102-aif1",
1804 .name = "wm5102-aif2",
1826 .name = "wm5102-aif3",
1848 .name = "wm5102-slim1",
1867 .name = "wm5102-slim2",
1886 .name = "wm5102-slim3",
1905 .name = "wm5102-cpu-trace",
1916 .name = "wm5102-dsp-trace",
2040 struct wm5102_priv *wm5102; in wm5102_probe() local
2043 wm5102 = devm_kzalloc(&pdev->dev, sizeof(struct wm5102_priv), in wm5102_probe()
2045 if (wm5102 == NULL) in wm5102_probe()
2047 platform_set_drvdata(pdev, wm5102); in wm5102_probe()
2059 wm5102->core.arizona = arizona; in wm5102_probe()
2060 wm5102->core.num_inputs = 6; in wm5102_probe()
2062 arizona_init_dvfs(&wm5102->core); in wm5102_probe()
2064 wm5102->core.adsp[0].part = "wm5102"; in wm5102_probe()
2065 wm5102->core.adsp[0].cs_dsp.num = 1; in wm5102_probe()
2066 wm5102->core.adsp[0].cs_dsp.type = WMFW_ADSP2; in wm5102_probe()
2067 wm5102->core.adsp[0].cs_dsp.base = ARIZONA_DSP1_CONTROL_1; in wm5102_probe()
2068 wm5102->core.adsp[0].cs_dsp.dev = arizona->dev; in wm5102_probe()
2069 wm5102->core.adsp[0].cs_dsp.regmap = arizona->regmap; in wm5102_probe()
2070 wm5102->core.adsp[0].cs_dsp.mem = wm5102_dsp1_regions; in wm5102_probe()
2071 wm5102->core.adsp[0].cs_dsp.num_mems = ARRAY_SIZE(wm5102_dsp1_regions); in wm5102_probe()
2073 ret = wm_adsp2_init(&wm5102->core.adsp[0]); in wm5102_probe()
2078 ret = arizona_jack_codec_dev_probe(&wm5102->core, &pdev->dev); in wm5102_probe()
2082 for (i = 0; i < ARRAY_SIZE(wm5102->fll); i++) in wm5102_probe()
2083 wm5102->fll[i].vco_mult = 1; in wm5102_probe()
2087 &wm5102->fll[0]); in wm5102_probe()
2090 &wm5102->fll[1]); in wm5102_probe()
2099 arizona_init_dai(&wm5102->core, i); in wm5102_probe()
2111 wm5102); in wm5102_probe()
2147 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5102); in wm5102_probe()
2150 arizona_jack_codec_dev_remove(&wm5102->core); in wm5102_probe()
2157 struct wm5102_priv *wm5102 = platform_get_drvdata(pdev); in wm5102_remove() local
2158 struct arizona *arizona = wm5102->core.arizona; in wm5102_remove()
2162 wm_adsp2_remove(&wm5102->core.adsp[0]); in wm5102_remove()
2167 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5102); in wm5102_remove()
2169 arizona_jack_codec_dev_remove(&wm5102->core); in wm5102_remove()
2174 .name = "wm5102-codec",
2182 MODULE_DESCRIPTION("ASoC WM5102 driver");
2185 MODULE_ALIAS("platform:wm5102-codec");