Lines Matching defs:wm5110
3 * wm5110.c -- WM5110 ALSA SoC Audio driver
31 #include "wm5110.h"
35 #define DRV_NAME "wm5110-codec"
512 struct wm5110_priv *wm5110 = snd_soc_component_get_drvdata(component);
526 wm5110->in_value |= 0x3 << ((w->shift ^ 0x1) * 2);
527 wm5110->in_pre_pending++;
528 wm5110->in_post_pending++;
531 wm5110->in_pga_cache[w->shift] = snd_soc_component_read(component, reg);
536 wm5110->in_pre_pending--;
537 if (wm5110->in_pre_pending == 0) {
538 analog_seq[1].def = wm5110->in_value;
545 wm5110->in_value = 0;
551 wm5110->in_pga_cache[w->shift]);
553 wm5110->in_post_pending--;
554 if (wm5110->in_post_pending == 0)
2053 struct wm5110_priv *wm5110 = snd_soc_component_get_drvdata(component);
2057 return arizona_set_fll(&wm5110->fll[0], source, Fref, Fout);
2059 return arizona_set_fll(&wm5110->fll[1], source, Fref, Fout);
2061 return arizona_set_fll_refclk(&wm5110->fll[0], source, Fref,
2064 return arizona_set_fll_refclk(&wm5110->fll[1], source, Fref,
2078 .name = "wm5110-aif1",
2100 .name = "wm5110-aif2",
2122 .name = "wm5110-aif3",
2144 .name = "wm5110-slim1",
2163 .name = "wm5110-slim2",
2182 .name = "wm5110-slim3",
2201 .name = "wm5110-cpu-voicectrl",
2212 .name = "wm5110-dsp-voicectrl",
2222 .name = "wm5110-cpu-trace",
2233 .name = "wm5110-dsp-trace",
2252 if (strcmp(asoc_rtd_to_codec(rtd, 0)->name, "wm5110-dsp-voicectrl") == 0) {
2254 } else if (strcmp(asoc_rtd_to_codec(rtd, 0)->name, "wm5110-dsp-trace") == 0) {
2393 struct wm5110_priv *wm5110;
2396 wm5110 = devm_kzalloc(&pdev->dev, sizeof(struct wm5110_priv),
2398 if (wm5110 == NULL)
2400 platform_set_drvdata(pdev, wm5110);
2410 wm5110->core.arizona = arizona;
2411 wm5110->core.num_inputs = 8;
2414 wm5110->core.adsp[i].part = "wm5110";
2415 wm5110->core.adsp[i].num = i + 1;
2416 wm5110->core.adsp[i].type = WMFW_ADSP2;
2417 wm5110->core.adsp[i].dev = arizona->dev;
2418 wm5110->core.adsp[i].regmap = arizona->regmap;
2420 wm5110->core.adsp[i].base = ARIZONA_DSP1_CONTROL_1
2422 wm5110->core.adsp[i].mem = wm5110_dsp_regions[i];
2423 wm5110->core.adsp[i].num_mems
2426 ret = wm_adsp2_init(&wm5110->core.adsp[i]);
2431 for (i = 0; i < ARRAY_SIZE(wm5110->fll); i++)
2432 wm5110->fll[i].vco_mult = 3;
2436 &wm5110->fll[0]);
2439 &wm5110->fll[1]);
2448 arizona_init_dai(&wm5110->core, i);
2460 wm5110);
2496 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5110);
2503 struct wm5110_priv *wm5110 = platform_get_drvdata(pdev);
2504 struct arizona *arizona = wm5110->core.arizona;
2510 wm_adsp2_remove(&wm5110->core.adsp[i]);
2515 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5110);
2522 .name = "wm5110-codec",
2533 MODULE_ALIAS("platform:wm5110-codec");