Lines Matching defs:component

30 static void aiu_encoder_i2s_divider_enable(struct snd_soc_component *component,
33 snd_soc_component_update_bits(component, AIU_CLK_CTRL,
38 static int aiu_encoder_i2s_setup_desc(struct snd_soc_component *component,
45 snd_soc_component_write(component, AIU_RST_SOFT, AIU_RST_SOFT_I2S_FAST);
46 snd_soc_component_read(component, AIU_I2S_SYNC);
71 snd_soc_component_update_bits(component, AIU_I2S_SOURCE_DESC,
81 static int aiu_encoder_i2s_set_legacy_div(struct snd_soc_component *component,
94 dev_err(component->dev, "Unsupported i2s divider: %u\n", bs);
98 snd_soc_component_update_bits(component, AIU_CLK_CTRL,
103 snd_soc_component_update_bits(component, AIU_CLK_CTRL_MORE,
111 static int aiu_encoder_i2s_set_more_div(struct snd_soc_component *component,
124 dev_err(component->dev,
132 snd_soc_component_update_bits(component, AIU_CLK_CTRL,
136 snd_soc_component_update_bits(component, AIU_CLK_CTRL_MORE,
144 static int aiu_encoder_i2s_set_clocks(struct snd_soc_component *component,
147 struct aiu *aiu = snd_soc_component_get_drvdata(component);
159 snd_soc_component_update_bits(component, AIU_I2S_DAC_CFG,
164 snd_soc_component_update_bits(component, AIU_CODEC_DAC_LRCLK_CTRL,
172 ret = aiu_encoder_i2s_set_more_div(component, params, bs);
174 ret = aiu_encoder_i2s_set_legacy_div(component, params, bs);
180 snd_soc_component_update_bits(component, AIU_CLK_CTRL_MORE,
191 struct snd_soc_component *component = dai->component;
195 aiu_encoder_i2s_divider_enable(component, false);
197 ret = aiu_encoder_i2s_setup_desc(component, params);
203 ret = aiu_encoder_i2s_set_clocks(component, params);
209 aiu_encoder_i2s_divider_enable(component, true);
217 struct snd_soc_component *component = dai->component;
219 aiu_encoder_i2s_divider_enable(component, false);
226 struct snd_soc_component *component = dai->component;
258 snd_soc_component_update_bits(component, AIU_CLK_CTRL,
270 struct aiu *aiu = snd_soc_component_get_drvdata(dai->component);
296 struct aiu *aiu = snd_soc_component_get_drvdata(dai->component);
318 struct aiu *aiu = snd_soc_component_get_drvdata(dai->component);