Lines Matching full:arizona
26 #include <linux/mfd/arizona/core.h>
27 #include <linux/mfd/arizona/registers.h>
29 #include "arizona.h"
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()
2253 struct arizona *arizona = priv->core.arizona; in wm5110_open() local
2261 dev_err(arizona->dev, in wm5110_open()
2273 struct arizona *arizona = priv->core.arizona; in wm5110_adsp2_irq() local
2284 arizona_call_notifiers(arizona, in wm5110_adsp2_irq()
2291 dev_err(arizona->dev, "Spurious compressed data IRQ\n"); in wm5110_adsp2_irq()
2302 struct arizona *arizona = priv->core.arizona; in wm5110_component_probe() local
2305 arizona->dapm = dapm; in wm5110_component_probe()
2306 snd_soc_component_init_regmap(component, arizona->regmap); in wm5110_component_probe()
2346 priv->core.arizona->dapm = NULL; in wm5110_component_remove()
2396 struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); in wm5110_probe() local
2407 if (!dev_get_platdata(arizona->dev)) { in wm5110_probe()
2408 ret = arizona_of_get_audio_pdata(arizona); in wm5110_probe()
2414 wm5110->core.arizona = arizona; in wm5110_probe()
2421 wm5110->core.adsp[i].cs_dsp.dev = arizona->dev; in wm5110_probe()
2422 wm5110->core.adsp[i].cs_dsp.regmap = arizona->regmap; in wm5110_probe()
2443 arizona_init_fll(arizona, 1, ARIZONA_FLL1_CONTROL_1 - 1, in wm5110_probe()
2446 arizona_init_fll(arizona, 2, ARIZONA_FLL2_CONTROL_1 - 1, in wm5110_probe()
2451 regmap_update_bits(arizona->regmap, ARIZONA_SAMPLE_RATE_2, in wm5110_probe()
2453 regmap_update_bits(arizona->regmap, ARIZONA_SAMPLE_RATE_3, in wm5110_probe()
2461 regmap_update_bits(arizona->regmap, wm5110_digital_vu[i], in wm5110_probe()
2467 ret = arizona_request_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, in wm5110_probe()
2475 ret = arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 1); in wm5110_probe()
2481 arizona_init_common(arizona); in wm5110_probe()
2483 ret = arizona_init_vol_limit(arizona); in wm5110_probe()
2486 ret = arizona_init_spk_irqs(arizona); in wm5110_probe()
2502 arizona_free_spk_irqs(arizona); in wm5110_probe()
2504 arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 0); in wm5110_probe()
2505 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5110); in wm5110_probe()
2516 struct arizona *arizona = wm5110->core.arizona; in wm5110_remove() local
2524 arizona_free_spk_irqs(arizona); in wm5110_remove()
2526 arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 0); in wm5110_remove()
2527 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5110); in wm5110_remove()