Lines Matching refs:comp
110 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in internal_power_event() local
114 snd_soc_component_write(comp, RT9120_REG_ERRRPT, 0); in internal_power_event()
159 static int rt9120_codec_probe(struct snd_soc_component *comp) in rt9120_codec_probe() argument
161 struct rt9120_data *data = snd_soc_component_get_drvdata(comp); in rt9120_codec_probe()
163 snd_soc_component_init_regmap(comp, data->regmap); in rt9120_codec_probe()
165 pm_runtime_get_sync(comp->dev); in rt9120_codec_probe()
169 snd_soc_component_write(comp, RT9120_REG_INTERCFG, 0xde); in rt9120_codec_probe()
170 snd_soc_component_write(comp, RT9120_REG_INTERNAL0, 0x66); in rt9120_codec_probe()
172 snd_soc_component_write(comp, RT9120_REG_INTERNAL0, 0x04); in rt9120_codec_probe()
174 pm_runtime_mark_last_busy(comp->dev); in rt9120_codec_probe()
175 pm_runtime_put(comp->dev); in rt9120_codec_probe()
180 static int rt9120_codec_suspend(struct snd_soc_component *comp) in rt9120_codec_suspend() argument
182 return pm_runtime_force_suspend(comp->dev); in rt9120_codec_suspend()
185 static int rt9120_codec_resume(struct snd_soc_component *comp) in rt9120_codec_resume() argument
187 return pm_runtime_force_resume(comp->dev); in rt9120_codec_resume()
205 struct snd_soc_component *comp = dai->component; in rt9120_set_fmt() local
229 snd_soc_component_update_bits(comp, RT9120_REG_I2SFMT, in rt9120_set_fmt()
239 struct snd_soc_component *comp = dai->component; in rt9120_hw_params() local
259 snd_soc_component_update_bits(comp, RT9120_REG_I2SFMT, in rt9120_hw_params()
277 snd_soc_component_update_bits(comp, RT9120_REG_I2SWL, in rt9120_hw_params()
287 snd_soc_component_update_bits(comp, RT9120_REG_DIGCFG, in rt9120_hw_params()