Lines Matching refs:component
84 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in arizona_spk_ev() local
85 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in arizona_spk_ev()
90 val = snd_soc_component_read(component, in arizona_spk_ev()
170 int arizona_init_spk(struct snd_soc_component *component) in arizona_init_spk() argument
172 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in arizona_init_spk()
173 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_init_spk()
239 int arizona_init_mono(struct snd_soc_component *component) in arizona_init_mono() argument
241 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in arizona_init_mono()
242 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_init_mono()
256 int arizona_init_gpio(struct snd_soc_component *component) in arizona_init_gpio() argument
258 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_init_gpio()
265 snd_soc_component_disable_pin(component, in arizona_init_gpio()
272 snd_soc_component_disable_pin(component, "DRC1 Signal Activity"); in arizona_init_gpio()
277 snd_soc_component_enable_pin(component, in arizona_init_gpio()
281 snd_soc_component_enable_pin(component, in arizona_init_gpio()
880 static void arizona_in_set_vu(struct snd_soc_component *component, int ena) in arizona_in_set_vu() argument
882 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_in_set_vu()
892 snd_soc_component_update_bits(component, in arizona_in_set_vu()
897 bool arizona_input_analog(struct snd_soc_component *component, int shift) in arizona_input_analog() argument
900 unsigned int val = snd_soc_component_read(component, reg); in arizona_input_analog()
909 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in arizona_in_ev() local
910 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_in_ev()
923 snd_soc_component_update_bits(component, reg, in arizona_in_ev()
930 arizona_in_set_vu(component, 1); in arizona_in_ev()
934 snd_soc_component_update_bits(component, reg, in arizona_in_ev()
940 reg = snd_soc_component_read(component, ARIZONA_INPUT_ENABLES); in arizona_in_ev()
942 arizona_in_set_vu(component, 0); in arizona_in_ev()
956 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in arizona_out_ev() local
957 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_out_ev()
1000 dev_dbg(component->dev, "Power up delay: %d\n", in arizona_out_ev()
1054 dev_dbg(component->dev, "Power down delay: %d\n", in arizona_out_ev()
1075 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in arizona_hp_ev() local
1076 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_hp_ev()
1110 static int arizona_dvfs_enable(struct snd_soc_component *component) in arizona_dvfs_enable() argument
1112 const struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_dvfs_enable()
1118 dev_err(component->dev, "Failed to boost DCVDD: %d\n", ret); in arizona_dvfs_enable()
1127 dev_err(component->dev, "Failed to enable subsys max: %d\n", ret); in arizona_dvfs_enable()
1135 static int arizona_dvfs_disable(struct snd_soc_component *component) in arizona_dvfs_disable() argument
1137 const struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_dvfs_disable()
1145 dev_err(component->dev, "Failed to disable subsys max: %d\n", ret); in arizona_dvfs_disable()
1151 dev_err(component->dev, "Failed to unboost DCVDD: %d\n", ret); in arizona_dvfs_disable()
1158 int arizona_dvfs_up(struct snd_soc_component *component, unsigned int flags) in arizona_dvfs_up() argument
1160 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_dvfs_up()
1166 ret = arizona_dvfs_enable(component); in arizona_dvfs_up()
1178 int arizona_dvfs_down(struct snd_soc_component *component, unsigned int flags) in arizona_dvfs_down() argument
1180 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_dvfs_down()
1190 ret = arizona_dvfs_disable(component); in arizona_dvfs_down()
1200 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in arizona_dvfs_sysclk_ev() local
1201 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_dvfs_sysclk_ev()
1209 ret = arizona_dvfs_enable(component); in arizona_dvfs_sysclk_ev()
1221 ret = arizona_dvfs_disable(component); in arizona_dvfs_sysclk_ev()
1242 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in arizona_anc_ev() local
1256 snd_soc_component_write(component, ARIZONA_CLOCK_CONTROL, val); in arizona_anc_ev()
1276 static int arizona_set_opclk(struct snd_soc_component *component, in arizona_set_opclk() argument
1279 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_set_opclk()
1307 dev_dbg(component->dev, "Configured %dHz OPCLK\n", in arizona_set_opclk()
1309 snd_soc_component_update_bits(component, reg, in arizona_set_opclk()
1321 dev_err(component->dev, "Unable to generate %dHz OPCLK\n", freq); in arizona_set_opclk()
1328 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in arizona_clk_ev() local
1329 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in arizona_clk_ev()
1336 dev_err(component->dev, "Failed to check clock source: %d\n", ret); in arizona_clk_ev()
1365 int arizona_set_sysclk(struct snd_soc_component *component, int clk_id, in arizona_set_sysclk() argument
1368 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_set_sysclk()
1390 return arizona_set_opclk(component, clk_id, freq); in arizona_set_sysclk()
1444 struct snd_soc_component *component = dai->component; in arizona_set_fmt() local
1445 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_set_fmt()
1619 struct snd_soc_component *component = dai->component; in arizona_startup() local
1620 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_startup()
1650 static void arizona_wm5102_set_dac_comp(struct snd_soc_component *component, in arizona_wm5102_set_dac_comp() argument
1653 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_wm5102_set_dac_comp()
1679 struct snd_soc_component *component = dai->component; in arizona_hw_params_rate() local
1680 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_hw_params_rate()
1703 ret = arizona_dvfs_up(component, ARIZONA_DVFS_SR1_RQ); in arizona_hw_params_rate()
1705 ret = arizona_dvfs_down(component, ARIZONA_DVFS_SR1_RQ); in arizona_hw_params_rate()
1720 arizona_wm5102_set_dac_comp(component, in arizona_hw_params_rate()
1727 snd_soc_component_update_bits(component, ARIZONA_SAMPLE_RATE_1, in arizona_hw_params_rate()
1731 snd_soc_component_update_bits(component, in arizona_hw_params_rate()
1736 snd_soc_component_update_bits(component, in arizona_hw_params_rate()
1741 snd_soc_component_update_bits(component, in arizona_hw_params_rate()
1754 static bool arizona_aif_cfg_changed(struct snd_soc_component *component, in arizona_aif_cfg_changed() argument
1759 val = snd_soc_component_read(component, base + ARIZONA_AIF_BCLK_CTRL); in arizona_aif_cfg_changed()
1763 val = snd_soc_component_read(component, base + ARIZONA_AIF_RX_BCLK_RATE); in arizona_aif_cfg_changed()
1767 val = snd_soc_component_read(component, base + ARIZONA_AIF_FRAME_CTRL_1); in arizona_aif_cfg_changed()
1779 struct snd_soc_component *component = dai->component; in arizona_hw_params() local
1780 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_hw_params()
1817 val = snd_soc_component_read(component, base + ARIZONA_AIF_FORMAT); in arizona_hw_params()
1845 reconfig = arizona_aif_cfg_changed(component, base, bclk, lrclk, frame); in arizona_hw_params()
1849 aif_tx_state = snd_soc_component_read(component, in arizona_hw_params()
1851 aif_rx_state = snd_soc_component_read(component, in arizona_hw_params()
1913 struct snd_soc_component *component = dai->component; in arizona_dai_set_sysclk() local
1914 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in arizona_dai_set_sysclk()
1915 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_dai_set_sysclk()
1931 dev_err(component->dev, "Can't change clock on active DAI %d\n", in arizona_dai_set_sysclk()
1936 dev_dbg(component->dev, "Setting AIF%d to %s\n", dai->id + 1, in arizona_dai_set_sysclk()
1958 struct snd_soc_component *component = dai->component; in arizona_set_tristate() local
1967 return snd_soc_component_update_bits(component, in arizona_set_tristate()
1976 struct snd_soc_component *component = dai->component; in arizona_set_channels_to_mask() local
1977 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_set_channels_to_mask()
1998 struct snd_soc_component *component = dai->component; in arizona_set_tdm_slot() local
1999 struct arizona_priv *priv = snd_soc_component_get_drvdata(component); in arizona_set_tdm_slot()
2662 int arizona_set_output_mode(struct snd_soc_component *component, int output, in arizona_set_output_mode() argument
2677 return snd_soc_component_update_bits(component, reg, in arizona_set_output_mode()
2727 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in arizona_eq_coeff_put() local
2728 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in arizona_eq_coeff_put()
2771 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in arizona_lhpf_coeff_put() local
2772 struct arizona *arizona = dev_get_drvdata(component->dev->parent); in arizona_lhpf_coeff_put()