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