Lines Matching defs:component
352 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
353 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
360 dev_err(component->dev, "Failed to set DMIC clock\n");
362 snd_soc_component_update_bits(component, RT5660_DMIC_CTRL1,
371 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm);
374 val = snd_soc_component_read(component, RT5660_GLB_CLK);
539 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
543 snd_soc_component_update_bits(component, RT5660_LOUT_AMP_CTRL,
549 snd_soc_component_update_bits(component, RT5660_LOUT_AMP_CTRL,
836 struct snd_soc_component *component = dai->component;
837 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
844 dev_err(component->dev, "Unsupported clock setting %d for DAI %d\n",
851 dev_err(component->dev, "Unsupported frame size: %d\n", frame_size);
888 snd_soc_component_update_bits(component, RT5660_I2S1_SDP, RT5660_I2S_DL_MASK,
890 snd_soc_component_update_bits(component, RT5660_ADDA_CLK1, mask_clk, val_clk);
894 dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
903 struct snd_soc_component *component = dai->component;
904 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
955 snd_soc_component_update_bits(component, RT5660_I2S1_SDP,
961 dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
971 struct snd_soc_component *component = dai->component;
972 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
992 dev_err(component->dev, "Invalid clock id (%d)\n", clk_id);
996 snd_soc_component_update_bits(component, RT5660_GLB_CLK, RT5660_SCLK_SRC_MASK,
1010 struct snd_soc_component *component = dai->component;
1011 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
1020 dev_dbg(component->dev, "PLL disabled\n");
1024 snd_soc_component_update_bits(component, RT5660_GLB_CLK,
1031 snd_soc_component_update_bits(component, RT5660_GLB_CLK,
1036 snd_soc_component_update_bits(component, RT5660_GLB_CLK,
1041 dev_err(component->dev, "Unknown PLL source %d\n", source);
1047 dev_err(component->dev, "Unsupported input clock %d\n", freq_in);
1051 dev_dbg(component->dev, "bypass=%d m=%d n=%d k=%d\n",
1055 snd_soc_component_write(component, RT5660_PLL_CTRL1,
1057 snd_soc_component_write(component, RT5660_PLL_CTRL2,
1068 static int rt5660_set_bias_level(struct snd_soc_component *component,
1071 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
1079 snd_soc_component_update_bits(component, RT5660_GEN_CTRL1,
1085 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_ON) {
1095 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) {
1096 snd_soc_component_update_bits(component, RT5660_PWR_ANLG1,
1102 snd_soc_component_update_bits(component, RT5660_PWR_ANLG1,
1109 snd_soc_component_update_bits(component, RT5660_GEN_CTRL1,
1120 static int rt5660_probe(struct snd_soc_component *component)
1122 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
1124 rt5660->component = component;
1129 static void rt5660_remove(struct snd_soc_component *component)
1131 snd_soc_component_write(component, RT5660_RESET, 0);
1135 static int rt5660_suspend(struct snd_soc_component *component)
1137 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
1145 static int rt5660_resume(struct snd_soc_component *component)
1147 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);