Lines Matching refs:component
60 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in cs42l51_get_chan_mix() local
61 unsigned long value = snd_soc_component_read(component, CS42L51_PCM_MIXER)&3; in cs42l51_get_chan_mix()
88 struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol); in cs42l51_set_chan_mix() local
104 snd_soc_component_write(component, CS42L51_PCM_MIXER, val); in cs42l51_set_chan_mix()
171 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in cs42l51_pdn_event() local
175 snd_soc_component_update_bits(component, CS42L51_POWER_CTL1, in cs42l51_pdn_event()
181 snd_soc_component_update_bits(component, CS42L51_POWER_CTL1, in cs42l51_pdn_event()
310 struct snd_soc_component *component = codec_dai->component; in cs42l51_set_dai_fmt() local
311 struct cs42l51_private *cs42l51 = snd_soc_component_get_drvdata(component); in cs42l51_set_dai_fmt()
320 dev_err(component->dev, "invalid DAI format\n"); in cs42l51_set_dai_fmt()
332 dev_err(component->dev, "Unknown master/slave configuration\n"); in cs42l51_set_dai_fmt()
386 struct snd_soc_component *component = codec_dai->component; in cs42l51_set_dai_sysclk() local
387 struct cs42l51_private *cs42l51 = snd_soc_component_get_drvdata(component); in cs42l51_set_dai_sysclk()
397 struct snd_soc_component *component = dai->component; in cs42l51_hw_params() local
398 struct cs42l51_private *cs42l51 = snd_soc_component_get_drvdata(component); in cs42l51_hw_params()
432 dev_err(component->dev, "could not find matching ratio\n"); in cs42l51_hw_params()
436 intf_ctl = snd_soc_component_read(component, CS42L51_INTF_CTL); in cs42l51_hw_params()
437 power_ctl = snd_soc_component_read(component, CS42L51_MIC_POWER_CTL); in cs42l51_hw_params()
489 dev_err(component->dev, "unknown format\n"); in cs42l51_hw_params()
495 dev_err(component->dev, "unknown format\n"); in cs42l51_hw_params()
502 ret = snd_soc_component_write(component, CS42L51_INTF_CTL, intf_ctl); in cs42l51_hw_params()
506 ret = snd_soc_component_write(component, CS42L51_MIC_POWER_CTL, power_ctl); in cs42l51_hw_params()
515 struct snd_soc_component *component = dai->component; in cs42l51_dai_mute() local
519 reg = snd_soc_component_read(component, CS42L51_DAC_OUT_CTL); in cs42l51_dai_mute()
526 return snd_soc_component_write(component, CS42L51_DAC_OUT_CTL, reg); in cs42l51_dai_mute()
529 static int cs42l51_of_xlate_dai_id(struct snd_soc_component *component, in cs42l51_of_xlate_dai_id() argument
563 static int cs42l51_component_probe(struct snd_soc_component *component) in cs42l51_component_probe() argument
569 cs42l51 = snd_soc_component_get_drvdata(component); in cs42l51_component_probe()
570 dapm = snd_soc_component_get_dapm(component); in cs42l51_component_probe()
584 ret = snd_soc_component_write(component, CS42L51_DAC_CTL, reg); in cs42l51_component_probe()