Lines Matching refs:component
484 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in cs42l73_spklo_spk_amp_event() local
485 struct cs42l73_private *priv = snd_soc_component_get_drvdata(component); in cs42l73_spklo_spk_amp_event()
500 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in cs42l73_ear_amp_event() local
501 struct cs42l73_private *priv = snd_soc_component_get_drvdata(component); in cs42l73_ear_amp_event()
518 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in cs42l73_hp_amp_event() local
519 struct cs42l73_private *priv = snd_soc_component_get_drvdata(component); in cs42l73_hp_amp_event()
878 struct snd_soc_component *component = dai->component; in cs42l73_set_mclk() local
879 struct cs42l73_private *priv = snd_soc_component_get_drvdata(component); in cs42l73_set_mclk()
893 dev_dbg(component->dev, "MCLK%u %u <-> internal MCLK %u\n", in cs42l73_set_mclk()
900 snd_soc_component_write(component, CS42L73_DMMCC, dmmcc); in cs42l73_set_mclk()
911 struct snd_soc_component *component = dai->component; in cs42l73_set_sysclk() local
912 struct cs42l73_private *priv = snd_soc_component_get_drvdata(component); in cs42l73_set_sysclk()
924 dev_err(component->dev, "Unable to set MCLK for dai %s\n", in cs42l73_set_sysclk()
936 struct snd_soc_component *component = codec_dai->component; in cs42l73_set_dai_fmt() local
937 struct cs42l73_private *priv = snd_soc_component_get_drvdata(component); in cs42l73_set_dai_fmt()
942 spc = snd_soc_component_read(component, CS42L73_SPC(id)); in cs42l73_set_dai_fmt()
943 mmcc = snd_soc_component_read(component, CS42L73_MMCC(id)); in cs42l73_set_dai_fmt()
968 dev_err(component->dev, in cs42l73_set_dai_fmt()
973 dev_err(component->dev, in cs42l73_set_dai_fmt()
1023 static void cs42l73_update_asrc(struct snd_soc_component *component, int id, int srate) in cs42l73_update_asrc() argument
1032 snd_soc_component_update_bits(component, CS42L73_VXSPFS, 0x0f, spfs); in cs42l73_update_asrc()
1035 snd_soc_component_update_bits(component, CS42L73_ASPC, 0x3c, spfs << 2); in cs42l73_update_asrc()
1038 snd_soc_component_update_bits(component, CS42L73_VXSPFS, 0xf0, spfs << 4); in cs42l73_update_asrc()
1049 struct snd_soc_component *component = dai->component; in cs42l73_pcm_hw_params() local
1050 struct cs42l73_private *priv = snd_soc_component_get_drvdata(component); in cs42l73_pcm_hw_params()
1064 dev_dbg(component->dev, in cs42l73_pcm_hw_params()
1085 snd_soc_component_write(component, CS42L73_SPC(id), priv->config[id].spc); in cs42l73_pcm_hw_params()
1086 snd_soc_component_write(component, CS42L73_MMCC(id), priv->config[id].mmcc); in cs42l73_pcm_hw_params()
1088 cs42l73_update_asrc(component, id, srate); in cs42l73_pcm_hw_params()
1093 static int cs42l73_set_bias_level(struct snd_soc_component *component, in cs42l73_set_bias_level() argument
1096 struct cs42l73_private *cs42l73 = snd_soc_component_get_drvdata(component); in cs42l73_set_bias_level()
1100 snd_soc_component_update_bits(component, CS42L73_DMMCC, CS42L73_MCLKDIS, 0); in cs42l73_set_bias_level()
1101 snd_soc_component_update_bits(component, CS42L73_PWRCTL1, CS42L73_PDN, 0); in cs42l73_set_bias_level()
1108 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in cs42l73_set_bias_level()
1112 snd_soc_component_update_bits(component, CS42L73_PWRCTL1, CS42L73_PDN, 1); in cs42l73_set_bias_level()
1116 snd_soc_component_update_bits(component, CS42L73_PWRCTL1, CS42L73_PDN, 1); in cs42l73_set_bias_level()
1125 snd_soc_component_update_bits(component, CS42L73_DMMCC, CS42L73_MCLKDIS, 1); in cs42l73_set_bias_level()
1133 struct snd_soc_component *component = dai->component; in cs42l73_set_tristate() local
1136 return snd_soc_component_update_bits(component, CS42L73_SPC(id), CS42L73_SP_3ST, in cs42l73_set_tristate()
1229 static int cs42l73_probe(struct snd_soc_component *component) in cs42l73_probe() argument
1231 struct cs42l73_private *cs42l73 = snd_soc_component_get_drvdata(component); in cs42l73_probe()
1235 snd_soc_component_update_bits(component, CS42L73_CPFCHC, in cs42l73_probe()