Lines Matching refs:arizona
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
686 mutex_lock(&arizona->dac_comp_lock); in wm5102_out_comp_coeff_put()
687 if (arizona->dac_comp_coeff != dac_comp_coeff) { in wm5102_out_comp_coeff_put()
688 arizona->dac_comp_coeff = dac_comp_coeff; in wm5102_out_comp_coeff_put()
691 mutex_unlock(&arizona->dac_comp_lock); in wm5102_out_comp_coeff_put()
700 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_out_comp_switch_get() local
702 mutex_lock(&arizona->dac_comp_lock); in wm5102_out_comp_switch_get()
703 ucontrol->value.integer.value[0] = arizona->dac_comp_enabled; in wm5102_out_comp_switch_get()
704 mutex_unlock(&arizona->dac_comp_lock); in wm5102_out_comp_switch_get()
713 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in wm5102_out_comp_switch_put() local
720 mutex_lock(&arizona->dac_comp_lock); in wm5102_out_comp_switch_put()
721 if (arizona->dac_comp_enabled != ucontrol->value.integer.value[0]) { in wm5102_out_comp_switch_put()
722 arizona->dac_comp_enabled = ucontrol->value.integer.value[0]; in wm5102_out_comp_switch_put()
725 mutex_unlock(&arizona->dac_comp_lock); in wm5102_out_comp_switch_put()
1938 struct arizona *arizona = priv->core.arizona; in wm5102_adsp2_irq() local
1943 dev_err(arizona->dev, "Spurious compressed data IRQ\n"); in wm5102_adsp2_irq()
1954 struct arizona *arizona = priv->core.arizona; in wm5102_component_probe() local
1957 snd_soc_component_init_regmap(component, arizona->regmap); in wm5102_component_probe()
1976 priv->core.arizona->dapm = dapm; in wm5102_component_probe()
1992 priv->core.arizona->dapm = NULL; in wm5102_component_remove()
2039 struct arizona *arizona = dev_get_drvdata(pdev->dev.parent); in wm5102_probe() local
2050 if (!dev_get_platdata(arizona->dev)) { in wm5102_probe()
2051 ret = arizona_of_get_audio_pdata(arizona); in wm5102_probe()
2057 mutex_init(&arizona->dac_comp_lock); in wm5102_probe()
2059 wm5102->core.arizona = arizona; in wm5102_probe()
2068 wm5102->core.adsp[0].cs_dsp.dev = arizona->dev; in wm5102_probe()
2069 wm5102->core.adsp[0].cs_dsp.regmap = arizona->regmap; in wm5102_probe()
2085 arizona_init_fll(arizona, 1, ARIZONA_FLL1_CONTROL_1 - 1, in wm5102_probe()
2088 arizona_init_fll(arizona, 2, ARIZONA_FLL2_CONTROL_1 - 1, in wm5102_probe()
2093 regmap_update_bits(arizona->regmap, ARIZONA_SAMPLE_RATE_2, in wm5102_probe()
2095 regmap_update_bits(arizona->regmap, ARIZONA_SAMPLE_RATE_3, in wm5102_probe()
2103 regmap_update_bits(arizona->regmap, wm5102_digital_vu[i], in wm5102_probe()
2109 ret = arizona_request_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, in wm5102_probe()
2117 ret = arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 1); in wm5102_probe()
2123 arizona_init_common(arizona); in wm5102_probe()
2125 ret = arizona_init_vol_limit(arizona); in wm5102_probe()
2128 ret = arizona_init_spk_irqs(arizona); in wm5102_probe()
2144 arizona_free_spk_irqs(arizona); in wm5102_probe()
2146 arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 0); in wm5102_probe()
2147 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5102); in wm5102_probe()
2158 struct arizona *arizona = wm5102->core.arizona; in wm5102_remove() local
2164 arizona_free_spk_irqs(arizona); in wm5102_remove()
2166 arizona_set_irq_wake(arizona, ARIZONA_IRQ_DSP_IRQ1, 0); in wm5102_remove()
2167 arizona_free_irq(arizona, ARIZONA_IRQ_DSP_IRQ1, wm5102); in wm5102_remove()