Lines Matching refs:component
200 struct snd_soc_component *component = codec_dai->component; in cs4271_set_dai_sysclk() local
201 struct cs4271_private *cs4271 = snd_soc_component_get_drvdata(component); in cs4271_set_dai_sysclk()
210 struct snd_soc_component *component = codec_dai->component; in cs4271_set_dai_fmt() local
211 struct cs4271_private *cs4271 = snd_soc_component_get_drvdata(component); in cs4271_set_dai_fmt()
224 dev_err(component->dev, "Invalid DAI format\n"); in cs4271_set_dai_fmt()
244 dev_err(component->dev, "Invalid DAI format\n"); in cs4271_set_dai_fmt()
257 static int cs4271_set_deemph(struct snd_soc_component *component) in cs4271_set_deemph() argument
259 struct cs4271_private *cs4271 = snd_soc_component_get_drvdata(component); in cs4271_set_deemph()
283 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in cs4271_get_deemph() local
284 struct cs4271_private *cs4271 = snd_soc_component_get_drvdata(component); in cs4271_get_deemph()
293 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in cs4271_put_deemph() local
294 struct cs4271_private *cs4271 = snd_soc_component_get_drvdata(component); in cs4271_put_deemph()
297 return cs4271_set_deemph(component); in cs4271_put_deemph()
343 struct snd_soc_component *component = dai->component; in cs4271_hw_params() local
344 struct cs4271_private *cs4271 = snd_soc_component_get_drvdata(component); in cs4271_hw_params()
393 dev_err(component->dev, "Invalid sample rate\n"); in cs4271_hw_params()
404 return cs4271_set_deemph(component); in cs4271_hw_params()
409 struct snd_soc_component *component = dai->component; in cs4271_mute_stream() local
410 struct cs4271_private *cs4271 = snd_soc_component_get_drvdata(component); in cs4271_mute_stream()
487 static int cs4271_reset(struct snd_soc_component *component) in cs4271_reset() argument
489 struct cs4271_private *cs4271 = snd_soc_component_get_drvdata(component); in cs4271_reset()
502 static int cs4271_soc_suspend(struct snd_soc_component *component) in cs4271_soc_suspend() argument
505 struct cs4271_private *cs4271 = snd_soc_component_get_drvdata(component); in cs4271_soc_suspend()
519 static int cs4271_soc_resume(struct snd_soc_component *component) in cs4271_soc_resume() argument
522 struct cs4271_private *cs4271 = snd_soc_component_get_drvdata(component); in cs4271_soc_resume()
527 dev_err(component->dev, "Failed to enable regulators: %d\n", ret); in cs4271_soc_resume()
532 cs4271_reset(component); in cs4271_soc_resume()
561 static int cs4271_component_probe(struct snd_soc_component *component) in cs4271_component_probe() argument
563 struct cs4271_private *cs4271 = snd_soc_component_get_drvdata(component); in cs4271_component_probe()
564 struct cs4271_platform_data *cs4271plat = component->dev->platform_data; in cs4271_component_probe()
569 if (of_match_device(cs4271_dt_ids, component->dev)) { in cs4271_component_probe()
570 if (of_get_property(component->dev->of_node, in cs4271_component_probe()
574 if (of_get_property(component->dev->of_node, in cs4271_component_probe()
583 dev_err(component->dev, "Failed to enable regulators: %d\n", ret); in cs4271_component_probe()
593 cs4271_reset(component); in cs4271_component_probe()
619 static void cs4271_component_remove(struct snd_soc_component *component) in cs4271_component_remove() argument
621 struct cs4271_private *cs4271 = snd_soc_component_get_drvdata(component); in cs4271_component_remove()