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
420 ret = regmap_read(arizona->regmap, ARIZONA_OUTPUT_ENABLES_1, &ena); in wm5110_put_dre()
422 dev_err(arizona->dev, "Failed to read output state: %d\n", ret); in wm5110_put_dre()
425 ret = regmap_read(arizona->regmap, ARIZONA_DRE_ENABLE, &dre); in wm5110_put_dre()
427 dev_err(arizona->dev, "Failed to read DRE state: %d\n", ret); in wm5110_put_dre()
438 dev_err(arizona->dev, "Can't change DRE on active outputs\n"); in wm5110_put_dre()
443 ret = regmap_update_bits(arizona->regmap, ARIZONA_DRE_ENABLE, in wm5110_put_dre()
446 dev_err(arizona->dev, "Failed to set DRE: %d\n", ret); in wm5110_put_dre()
452 wm5110_clear_pga_volume(arizona, mc->shift); in wm5110_put_dre()
455 wm5110_clear_pga_volume(arizona, mc->rshift); in wm5110_put_dre()
509 struct arizona *arizona = priv->arizona; in wm5110_in_analog_ev() local
535 regmap_multi_reg_write_bypassed(arizona->regmap, in wm5110_in_analog_ev()
551 regmap_multi_reg_write_bypassed(arizona->regmap, in wm5110_in_analog_ev()
567 struct arizona *arizona = priv->arizona; in wm5110_in_ev() local
569 switch (arizona->rev) { in wm5110_in_ev()
2245 struct arizona *arizona = priv->core.arizona; in wm5110_open() local
2253 dev_err(arizona->dev, in wm5110_open()
2265 struct arizona *arizona = priv->core.arizona; in wm5110_adsp2_irq() local
2276 arizona_call_notifiers(arizona, in wm5110_adsp2_irq()
2283 dev_err(arizona->dev, "Spurious compressed data IRQ\n"); in wm5110_adsp2_irq()
2294 struct arizona *arizona = priv->core.arizona; in wm5110_component_probe() local
2297 arizona->dapm = dapm; in wm5110_component_probe()
2298 snd_soc_component_init_regmap(component, arizona->regmap); in wm5110_component_probe()
2338 priv->core.arizona->dapm = NULL; in wm5110_component_remove()
2388 struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); in wm5110_probe() local
2399 if (!dev_get_platdata(arizona->dev)) { in wm5110_probe()
2400 ret = arizona_of_get_audio_pdata(arizona); in wm5110_probe()
2406 wm5110->core.arizona = arizona; in wm5110_probe()
2413 wm5110->core.adsp[i].dev = arizona->dev; in wm5110_probe()
2414 wm5110->core.adsp[i].regmap = arizona->regmap; in wm5110_probe()
2430 arizona_init_fll(arizona, 1, ARIZONA_FLL1_CONTROL_1 - 1, in wm5110_probe()
2433 arizona_init_fll(arizona, 2, ARIZONA_FLL2_CONTROL_1 - 1, in wm5110_probe()
2438 regmap_update_bits(arizona->regmap, ARIZONA_SAMPLE_RATE_2, in wm5110_probe()
2440 regmap_update_bits(arizona->regmap, ARIZONA_SAMPLE_RATE_3, in wm5110_probe()
2448 regmap_update_bits(arizona->regmap, wm5110_digital_vu[i], in wm5110_probe()
2454 ret = arizona_request_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, in wm5110_probe()
2462 ret = arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 1); in wm5110_probe()
2468 arizona_init_common(arizona); in wm5110_probe()
2470 ret = arizona_init_vol_limit(arizona); in wm5110_probe()
2473 ret = arizona_init_spk_irqs(arizona); in wm5110_probe()
2489 arizona_free_spk_irqs(arizona); in wm5110_probe()
2491 arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 0); in wm5110_probe()
2492 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5110); in wm5110_probe()
2500 struct arizona *arizona = wm5110->core.arizona; in wm5110_remove() local
2508 arizona_free_spk_irqs(arizona); in wm5110_remove()
2510 arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 0); in wm5110_remove()
2511 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5110); in wm5110_remove()