Lines Matching refs:component
141 struct snd_soc_component *component; member
268 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in sta32x_coefficient_get() local
269 struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); in sta32x_coefficient_get()
310 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in sta32x_coefficient_put() local
311 struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); in sta32x_coefficient_put()
345 static int sta32x_sync_coef_shadow(struct snd_soc_component *component) in sta32x_sync_coef_shadow() argument
347 struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); in sta32x_sync_coef_shadow()
373 static int sta32x_cache_sync(struct snd_soc_component *component) in sta32x_cache_sync() argument
375 struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); in sta32x_cache_sync()
382 sta32x_sync_coef_shadow(component); in sta32x_cache_sync()
393 struct snd_soc_component *component = sta32x->component; in sta32x_watchdog() local
397 confa_cached = snd_soc_component_read(component, STA32X_CONFA); in sta32x_watchdog()
399 confa = snd_soc_component_read(component, STA32X_CONFA); in sta32x_watchdog()
403 sta32x_cache_sync(component); in sta32x_watchdog()
580 struct snd_soc_component *component = codec_dai->component; in sta32x_set_dai_sysclk() local
581 struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); in sta32x_set_dai_sysclk()
583 dev_dbg(component->dev, "mclk=%u\n", freq); in sta32x_set_dai_sysclk()
600 struct snd_soc_component *component = codec_dai->component; in sta32x_set_dai_fmt() local
601 struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); in sta32x_set_dai_fmt()
649 struct snd_soc_component *component = dai->component; in sta32x_hw_params() local
650 struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); in sta32x_hw_params()
657 dev_err(component->dev, in sta32x_hw_params()
664 dev_dbg(component->dev, "rate: %u, ratio: %u\n", rate, ratio); in sta32x_hw_params()
674 dev_err(component->dev, "Unsupported samplerate: %u\n", rate); in sta32x_hw_params()
686 dev_err(component->dev, "Unresolvable ratio: %u\n", ratio); in sta32x_hw_params()
696 dev_dbg(component->dev, "24bit\n"); in sta32x_hw_params()
699 dev_dbg(component->dev, "24bit or 32bit\n"); in sta32x_hw_params()
714 dev_dbg(component->dev, "20bit\n"); in sta32x_hw_params()
729 dev_dbg(component->dev, "18bit\n"); in sta32x_hw_params()
744 dev_dbg(component->dev, "16bit\n"); in sta32x_hw_params()
798 static int sta32x_set_bias_level(struct snd_soc_component *component, in sta32x_set_bias_level() argument
802 struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); in sta32x_set_bias_level()
804 dev_dbg(component->dev, "level = %d\n", level); in sta32x_set_bias_level()
817 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in sta32x_set_bias_level()
821 dev_err(component->dev, in sta32x_set_bias_level()
827 sta32x_cache_sync(component); in sta32x_set_bias_level()
872 static int sta32x_probe(struct snd_soc_component *component) in sta32x_probe() argument
874 struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); in sta32x_probe()
878 sta32x->component = component; in sta32x_probe()
883 dev_err(component->dev, in sta32x_probe()
892 dev_err(component->dev, "Failed to enable supplies: %d\n", ret); in sta32x_probe()
898 dev_err(component->dev, "Failed to startup device\n"); in sta32x_probe()
978 snd_soc_component_force_bias_level(component, SND_SOC_BIAS_STANDBY); in sta32x_probe()
992 static void sta32x_remove(struct snd_soc_component *component) in sta32x_remove() argument
994 struct sta32x_priv *sta32x = snd_soc_component_get_drvdata(component); in sta32x_remove()