Lines Matching refs:arizona
162 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5110_sysclk_ev() local
163 struct regmap *regmap = arizona->regmap; in wm5110_sysclk_ev()
167 switch (arizona->rev) { in wm5110_sysclk_ev()
199 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5110_adsp_power_ev() local
203 ret = regmap_read(arizona->regmap, ARIZONA_SYSTEM_CLOCK_1, &v); in wm5110_adsp_power_ev()
292 struct arizona *arizona = priv->arizona; in wm5110_hp_pre_enable() local
322 return regmap_multi_reg_write(arizona->regmap, wseq, nregs); in wm5110_hp_pre_enable()
369 switch (priv->arizona->rev) { in wm5110_hp_ev()
389 static int wm5110_clear_pga_volume(struct arizona *arizona, int output) in wm5110_clear_pga_volume() argument
394 ret = regmap_write(arizona->regmap, reg, 0x80); in wm5110_clear_pga_volume()
396 dev_err(arizona->dev, "Failed to clear PGA (0x%x): %d\n", in wm5110_clear_pga_volume()
407 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5110_put_dre() local
421 ret = regmap_read(arizona->regmap, ARIZONA_OUTPUT_ENABLES_1, &ena); in wm5110_put_dre()
423 dev_err(arizona->dev, "Failed to read output state: %d\n", ret); in wm5110_put_dre()
426 ret = regmap_read(arizona->regmap, ARIZONA_DRE_ENABLE, &dre); in wm5110_put_dre()
428 dev_err(arizona->dev, "Failed to read DRE state: %d\n", ret); in wm5110_put_dre()
439 dev_err(arizona->dev, "Can't change DRE on active outputs\n"); in wm5110_put_dre()
444 ret = regmap_update_bits_check(arizona->regmap, ARIZONA_DRE_ENABLE, in wm5110_put_dre()
447 dev_err(arizona->dev, "Failed to set DRE: %d\n", ret); in wm5110_put_dre()
453 wm5110_clear_pga_volume(arizona, mc->shift); in wm5110_put_dre()
456 wm5110_clear_pga_volume(arizona, mc->rshift); in wm5110_put_dre()
513 struct arizona *arizona = priv->arizona; in wm5110_in_analog_ev() local
539 regmap_multi_reg_write_bypassed(arizona->regmap, in wm5110_in_analog_ev()
555 regmap_multi_reg_write_bypassed(arizona->regmap, in wm5110_in_analog_ev()
571 struct arizona *arizona = priv->arizona; in wm5110_in_ev() local
573 switch (arizona->rev) { in wm5110_in_ev()
2249 struct arizona *arizona = priv->core.arizona; in wm5110_open() local
2257 dev_err(arizona->dev, in wm5110_open()
2269 struct arizona *arizona = priv->core.arizona; in wm5110_adsp2_irq() local
2280 arizona_call_notifiers(arizona, in wm5110_adsp2_irq()
2287 dev_err(arizona->dev, "Spurious compressed data IRQ\n"); in wm5110_adsp2_irq()
2298 struct arizona *arizona = priv->core.arizona; in wm5110_component_probe() local
2301 arizona->dapm = dapm; in wm5110_component_probe()
2302 snd_soc_component_init_regmap(component, arizona->regmap); in wm5110_component_probe()
2342 priv->core.arizona->dapm = NULL; in wm5110_component_remove()
2392 struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); in wm5110_probe() local
2403 if (!dev_get_platdata(arizona->dev)) { in wm5110_probe()
2404 ret = arizona_of_get_audio_pdata(arizona); in wm5110_probe()
2410 wm5110->core.arizona = arizona; in wm5110_probe()
2417 wm5110->core.adsp[i].dev = arizona->dev; in wm5110_probe()
2418 wm5110->core.adsp[i].regmap = arizona->regmap; in wm5110_probe()
2434 arizona_init_fll(arizona, 1, ARIZONA_FLL1_CONTROL_1 - 1, in wm5110_probe()
2437 arizona_init_fll(arizona, 2, ARIZONA_FLL2_CONTROL_1 - 1, in wm5110_probe()
2442 regmap_update_bits(arizona->regmap, ARIZONA_SAMPLE_RATE_2, in wm5110_probe()
2444 regmap_update_bits(arizona->regmap, ARIZONA_SAMPLE_RATE_3, in wm5110_probe()
2452 regmap_update_bits(arizona->regmap, wm5110_digital_vu[i], in wm5110_probe()
2458 ret = arizona_request_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, in wm5110_probe()
2466 ret = arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 1); in wm5110_probe()
2472 arizona_init_common(arizona); in wm5110_probe()
2474 ret = arizona_init_vol_limit(arizona); in wm5110_probe()
2477 ret = arizona_init_spk_irqs(arizona); in wm5110_probe()
2493 arizona_free_spk_irqs(arizona); in wm5110_probe()
2495 arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 0); in wm5110_probe()
2496 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5110); in wm5110_probe()
2504 struct arizona *arizona = wm5110->core.arizona; in wm5110_remove() local
2512 arizona_free_spk_irqs(arizona); in wm5110_remove()
2514 arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 0); in wm5110_remove()
2515 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5110); in wm5110_remove()