Lines Matching refs:component
115 static int es8328_set_deemph(struct snd_soc_component *component) in es8328_set_deemph() argument
117 struct es8328_priv *es8328 = snd_soc_component_get_drvdata(component); in es8328_set_deemph()
137 dev_dbg(component->dev, "Set deemphasis %d\n", val); in es8328_set_deemph()
139 return snd_soc_component_update_bits(component, ES8328_DACCONTROL6, in es8328_set_deemph()
146 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in es8328_get_deemph() local
147 struct es8328_priv *es8328 = snd_soc_component_get_drvdata(component); in es8328_get_deemph()
156 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in es8328_put_deemph() local
157 struct es8328_priv *es8328 = snd_soc_component_get_drvdata(component); in es8328_put_deemph()
167 ret = es8328_set_deemph(component); in es8328_put_deemph()
457 return snd_soc_component_update_bits(dai->component, ES8328_DACCONTROL3, in es8328_mute()
465 struct snd_soc_component *component = dai->component; in es8328_startup() local
466 struct es8328_priv *es8328 = snd_soc_component_get_drvdata(component); in es8328_startup()
480 struct snd_soc_component *component = dai->component; in es8328_hw_params() local
481 struct es8328_priv *es8328 = snd_soc_component_get_drvdata(component); in es8328_hw_params()
494 dev_err(component->dev, "No MCLK configured\n"); in es8328_hw_params()
504 dev_err(component->dev, in es8328_hw_params()
515 snd_soc_component_update_bits(component, ES8328_MASTERMODE, in es8328_hw_params()
540 snd_soc_component_update_bits(component, ES8328_DACCONTROL1, in es8328_hw_params()
545 es8328_set_deemph(component); in es8328_hw_params()
547 snd_soc_component_update_bits(component, ES8328_ADCCONTROL4, in es8328_hw_params()
551 return snd_soc_component_update_bits(component, reg, ES8328_RATEMASK, ratio); in es8328_hw_params()
557 struct snd_soc_component *component = codec_dai->component; in es8328_set_sysclk() local
558 struct es8328_priv *es8328 = snd_soc_component_get_drvdata(component); in es8328_set_sysclk()
591 struct snd_soc_component *component = codec_dai->component; in es8328_set_dai_fmt() local
592 struct es8328_priv *es8328 = snd_soc_component_get_drvdata(component); in es8328_set_dai_fmt()
599 snd_soc_component_update_bits(component, ES8328_MASTERMODE, in es8328_set_dai_fmt()
606 snd_soc_component_update_bits(component, ES8328_MASTERMODE, in es8328_set_dai_fmt()
636 snd_soc_component_update_bits(component, ES8328_DACCONTROL1, in es8328_set_dai_fmt()
638 snd_soc_component_update_bits(component, ES8328_ADCCONTROL4, in es8328_set_dai_fmt()
644 static int es8328_set_bias_level(struct snd_soc_component *component, in es8328_set_bias_level() argument
653 snd_soc_component_write(component, ES8328_CHIPPOWER, 0); in es8328_set_bias_level()
654 snd_soc_component_update_bits(component, ES8328_CONTROL1, in es8328_set_bias_level()
662 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in es8328_set_bias_level()
663 snd_soc_component_update_bits(component, ES8328_CONTROL1, in es8328_set_bias_level()
673 snd_soc_component_write(component, ES8328_CONTROL2, in es8328_set_bias_level()
678 snd_soc_component_update_bits(component, ES8328_CONTROL1, in es8328_set_bias_level()
686 snd_soc_component_update_bits(component, ES8328_CONTROL1, in es8328_set_bias_level()
724 static int es8328_suspend(struct snd_soc_component *component) in es8328_suspend() argument
729 es8328 = snd_soc_component_get_drvdata(component); in es8328_suspend()
736 dev_err(component->dev, "unable to disable regulators\n"); in es8328_suspend()
742 static int es8328_resume(struct snd_soc_component *component) in es8328_resume() argument
744 struct regmap *regmap = dev_get_regmap(component->dev, NULL); in es8328_resume()
748 es8328 = snd_soc_component_get_drvdata(component); in es8328_resume()
752 dev_err(component->dev, "unable to enable clock\n"); in es8328_resume()
759 dev_err(component->dev, "unable to enable regulators\n"); in es8328_resume()
766 dev_err(component->dev, "unable to sync regcache\n"); in es8328_resume()
773 static int es8328_component_probe(struct snd_soc_component *component) in es8328_component_probe() argument
778 es8328 = snd_soc_component_get_drvdata(component); in es8328_component_probe()
783 dev_err(component->dev, "unable to enable regulators\n"); in es8328_component_probe()
788 es8328->clk = devm_clk_get(component->dev, NULL); in es8328_component_probe()
790 dev_err(component->dev, "codec clock missing or invalid\n"); in es8328_component_probe()
797 dev_err(component->dev, "unable to prepare codec clk\n"); in es8328_component_probe()
809 static void es8328_remove(struct snd_soc_component *component) in es8328_remove() argument
813 es8328 = snd_soc_component_get_drvdata(component); in es8328_remove()