Lines Matching full:arizona

26 #include <linux/mfd/arizona/core.h>
27 #include <linux/mfd/arizona/registers.h>
30 #include "arizona.h"
584 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_sysclk_ev() local
585 struct regmap *regmap = arizona->regmap; in wm5102_sysclk_ev()
589 switch (arizona->rev) { in wm5102_sysclk_ev()
623 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_adsp_power_ev() local
629 ret = regmap_read(arizona->regmap, ARIZONA_SYSTEM_CLOCK_1, &v); in wm5102_adsp_power_ev()
668 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_out_comp_coeff_get() local
670 mutex_lock(&arizona->dac_comp_lock); in wm5102_out_comp_coeff_get()
671 put_unaligned_be16(arizona->dac_comp_coeff, in wm5102_out_comp_coeff_get()
673 mutex_unlock(&arizona->dac_comp_lock); in wm5102_out_comp_coeff_get()
682 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_out_comp_coeff_put() local
684 mutex_lock(&arizona->dac_comp_lock); in wm5102_out_comp_coeff_put()
685 memcpy(&arizona->dac_comp_coeff, ucontrol->value.bytes.data, in wm5102_out_comp_coeff_put()
686 sizeof(arizona->dac_comp_coeff)); in wm5102_out_comp_coeff_put()
687 arizona->dac_comp_coeff = be16_to_cpu(arizona->dac_comp_coeff); in wm5102_out_comp_coeff_put()
688 mutex_unlock(&arizona->dac_comp_lock); in wm5102_out_comp_coeff_put()
697 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_out_comp_switch_get() local
699 mutex_lock(&arizona->dac_comp_lock); in wm5102_out_comp_switch_get()
700 ucontrol->value.integer.value[0] = arizona->dac_comp_enabled; in wm5102_out_comp_switch_get()
701 mutex_unlock(&arizona->dac_comp_lock); in wm5102_out_comp_switch_get()
710 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_out_comp_switch_put() local
712 mutex_lock(&arizona->dac_comp_lock); in wm5102_out_comp_switch_put()
713 arizona->dac_comp_enabled = ucontrol->value.integer.value[0]; in wm5102_out_comp_switch_put()
714 mutex_unlock(&arizona->dac_comp_lock); in wm5102_out_comp_switch_put()
1923 struct arizona *arizona = priv->core.arizona; in wm5102_adsp2_irq() local
1928 dev_err(arizona->dev, "Spurious compressed data IRQ\n"); in wm5102_adsp2_irq()
1939 struct arizona *arizona = priv->core.arizona; in wm5102_component_probe() local
1942 snd_soc_component_init_regmap(component, arizona->regmap); in wm5102_component_probe()
1961 priv->core.arizona->dapm = dapm; in wm5102_component_probe()
1977 priv->core.arizona->dapm = NULL; in wm5102_component_remove()
2024 struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); in wm5102_probe() local
2035 if (!dev_get_platdata(arizona->dev)) { in wm5102_probe()
2036 ret = arizona_of_get_audio_pdata(arizona); in wm5102_probe()
2042 mutex_init(&arizona->dac_comp_lock); in wm5102_probe()
2044 wm5102->core.arizona = arizona; in wm5102_probe()
2053 wm5102->core.adsp[0].dev = arizona->dev; in wm5102_probe()
2054 wm5102->core.adsp[0].regmap = arizona->regmap; in wm5102_probe()
2065 arizona_init_fll(arizona, 1, ARIZONA_FLL1_CONTROL_1 - 1, in wm5102_probe()
2068 arizona_init_fll(arizona, 2, ARIZONA_FLL2_CONTROL_1 - 1, in wm5102_probe()
2073 regmap_update_bits(arizona->regmap, ARIZONA_SAMPLE_RATE_2, in wm5102_probe()
2075 regmap_update_bits(arizona->regmap, ARIZONA_SAMPLE_RATE_3, in wm5102_probe()
2083 regmap_update_bits(arizona->regmap, wm5102_digital_vu[i], in wm5102_probe()
2089 ret = arizona_request_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, in wm5102_probe()
2097 ret = arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 1); in wm5102_probe()
2103 arizona_init_common(arizona); in wm5102_probe()
2105 ret = arizona_init_vol_limit(arizona); in wm5102_probe()
2108 ret = arizona_init_spk_irqs(arizona); in wm5102_probe()
2124 arizona_free_spk_irqs(arizona); in wm5102_probe()
2126 arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 0); in wm5102_probe()
2127 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5102); in wm5102_probe()
2135 struct arizona *arizona = wm5102->core.arizona; in wm5102_remove() local
2141 arizona_free_spk_irqs(arizona); in wm5102_remove()
2143 arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 0); in wm5102_remove()
2144 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5102); in wm5102_remove()