Lines Matching defs:component
354 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
355 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
362 dev_err(component->dev, "Failed to set DMIC clock\n");
364 snd_soc_component_update_bits(component, RT5660_DMIC_CTRL1,
373 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm);
376 val = snd_soc_component_read(component, RT5660_GLB_CLK);
541 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm);
545 snd_soc_component_update_bits(component, RT5660_LOUT_AMP_CTRL,
551 snd_soc_component_update_bits(component, RT5660_LOUT_AMP_CTRL,
838 struct snd_soc_component *component = dai->component;
839 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
846 dev_err(component->dev, "Unsupported clock setting %d for DAI %d\n",
853 dev_err(component->dev, "Unsupported frame size: %d\n", frame_size);
890 snd_soc_component_update_bits(component, RT5660_I2S1_SDP, RT5660_I2S_DL_MASK,
892 snd_soc_component_update_bits(component, RT5660_ADDA_CLK1, mask_clk, val_clk);
896 dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
905 struct snd_soc_component *component = dai->component;
906 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
957 snd_soc_component_update_bits(component, RT5660_I2S1_SDP,
963 dev_err(component->dev, "Invalid dai->id: %d\n", dai->id);
973 struct snd_soc_component *component = dai->component;
974 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
994 dev_err(component->dev, "Invalid clock id (%d)\n", clk_id);
998 snd_soc_component_update_bits(component, RT5660_GLB_CLK, RT5660_SCLK_SRC_MASK,
1012 struct snd_soc_component *component = dai->component;
1013 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
1022 dev_dbg(component->dev, "PLL disabled\n");
1026 snd_soc_component_update_bits(component, RT5660_GLB_CLK,
1033 snd_soc_component_update_bits(component, RT5660_GLB_CLK,
1038 snd_soc_component_update_bits(component, RT5660_GLB_CLK,
1043 dev_err(component->dev, "Unknown PLL source %d\n", source);
1049 dev_err(component->dev, "Unsupport input clock %d\n", freq_in);
1053 dev_dbg(component->dev, "bypass=%d m=%d n=%d k=%d\n",
1057 snd_soc_component_write(component, RT5660_PLL_CTRL1,
1059 snd_soc_component_write(component, RT5660_PLL_CTRL2,
1070 static int rt5660_set_bias_level(struct snd_soc_component *component,
1073 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
1081 snd_soc_component_update_bits(component, RT5660_GEN_CTRL1,
1087 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_ON) {
1097 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) {
1098 snd_soc_component_update_bits(component, RT5660_PWR_ANLG1,
1104 snd_soc_component_update_bits(component, RT5660_PWR_ANLG1,
1111 snd_soc_component_update_bits(component, RT5660_GEN_CTRL1,
1122 static int rt5660_probe(struct snd_soc_component *component)
1124 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
1126 rt5660->component = component;
1131 static void rt5660_remove(struct snd_soc_component *component)
1133 snd_soc_component_write(component, RT5660_RESET, 0);
1137 static int rt5660_suspend(struct snd_soc_component *component)
1139 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);
1147 static int rt5660_resume(struct snd_soc_component *component)
1149 struct rt5660_priv *rt5660 = snd_soc_component_get_drvdata(component);