Lines Matching refs:component
289 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in rt5514_dsp_voice_wake_up_get() local
290 struct rt5514_priv *rt5514 = snd_soc_component_get_drvdata(component); in rt5514_dsp_voice_wake_up_get()
327 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in rt5514_dsp_voice_wake_up_put() local
328 struct rt5514_priv *rt5514 = snd_soc_component_get_drvdata(component); in rt5514_dsp_voice_wake_up_put()
335 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in rt5514_dsp_voice_wake_up_put()
343 dev_err(component->dev, in rt5514_dsp_voice_wake_up_put()
347 dev_err(component->dev, in rt5514_dsp_voice_wake_up_put()
357 dev_err(component->dev, "There is no SPI driver for" in rt5514_dsp_voice_wake_up_put()
370 request_firmware(&fw, RT5514_FIRMWARE1, component->dev); in rt5514_dsp_voice_wake_up_put()
376 dev_err(component->dev, "There is no SPI driver for" in rt5514_dsp_voice_wake_up_put()
383 request_firmware(&fw, RT5514_FIRMWARE2, component->dev); in rt5514_dsp_voice_wake_up_put()
389 dev_err(component->dev, "There is no SPI driver for" in rt5514_dsp_voice_wake_up_put()
494 static int rt5514_calc_dmic_clk(struct snd_soc_component *component, int rate) in rt5514_calc_dmic_clk() argument
510 dev_warn(component->dev, "Base clock rate %d is too high\n", rate); in rt5514_calc_dmic_clk()
517 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in rt5514_set_dmic_clk() local
518 struct rt5514_priv *rt5514 = snd_soc_component_get_drvdata(component); in rt5514_set_dmic_clk()
521 idx = rt5514_calc_dmic_clk(component, rt5514->sysclk); in rt5514_set_dmic_clk()
523 dev_err(component->dev, "Failed to set DMIC clock\n"); in rt5514_set_dmic_clk()
538 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in rt5514_is_sys_clk_from_pll() local
539 struct rt5514_priv *rt5514 = snd_soc_component_get_drvdata(component); in rt5514_is_sys_clk_from_pll()
550 struct snd_soc_component *component = snd_soc_dapm_to_component(source->dapm); in rt5514_i2s_use_asrc() local
551 struct rt5514_priv *rt5514 = snd_soc_component_get_drvdata(component); in rt5514_i2s_use_asrc()
753 struct snd_soc_component *component = dai->component; in rt5514_hw_params() local
754 struct rt5514_priv *rt5514 = snd_soc_component_get_drvdata(component); in rt5514_hw_params()
761 dev_err(component->dev, "Unsupported clock setting\n"); in rt5514_hw_params()
767 dev_err(component->dev, "Unsupported frame size: %d\n", frame_size); in rt5514_hw_params()
810 struct snd_soc_component *component = dai->component; in rt5514_set_dai_fmt() local
811 struct rt5514_priv *rt5514 = snd_soc_component_get_drvdata(component); in rt5514_set_dai_fmt()
864 struct snd_soc_component *component = dai->component; in rt5514_set_dai_sysclk() local
865 struct rt5514_priv *rt5514 = snd_soc_component_get_drvdata(component); in rt5514_set_dai_sysclk()
881 dev_err(component->dev, "Invalid clock id (%d)\n", clk_id); in rt5514_set_dai_sysclk()
899 struct snd_soc_component *component = dai->component; in rt5514_set_dai_pll() local
900 struct rt5514_priv *rt5514 = snd_soc_component_get_drvdata(component); in rt5514_set_dai_pll()
905 dev_dbg(component->dev, "PLL disabled\n"); in rt5514_set_dai_pll()
932 dev_err(component->dev, "Unknown PLL source %d\n", source); in rt5514_set_dai_pll()
938 dev_err(component->dev, "Unsupported input clock %d\n", freq_in); in rt5514_set_dai_pll()
942 dev_dbg(component->dev, "bypass=%d m=%d n=%d k=%d\n", in rt5514_set_dai_pll()
963 struct snd_soc_component *component = dai->component; in rt5514_set_tdm_slot() local
964 struct rt5514_priv *rt5514 = snd_soc_component_get_drvdata(component); in rt5514_set_tdm_slot()
1049 static int rt5514_set_bias_level(struct snd_soc_component *component, in rt5514_set_bias_level() argument
1052 struct rt5514_priv *rt5514 = snd_soc_component_get_drvdata(component); in rt5514_set_bias_level()
1060 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_ON) { in rt5514_set_bias_level()
1070 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in rt5514_set_bias_level()
1094 static int rt5514_probe(struct snd_soc_component *component) in rt5514_probe() argument
1096 struct rt5514_priv *rt5514 = snd_soc_component_get_drvdata(component); in rt5514_probe()
1097 struct platform_device *pdev = container_of(component->dev, in rt5514_probe()
1100 rt5514->mclk = devm_clk_get(component->dev, "mclk"); in rt5514_probe()
1111 rt5514->component = component; in rt5514_probe()