Lines Matching refs:comp
289 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in rtq9128_dac_power_event() local
293 dev_dbg(comp->dev, "%s: %s event %d\n", __func__, w->name, event); in rtq9128_dac_power_event()
307 ret = snd_soc_component_write_field(comp, RTQ9128_REG_STATE_CTRL, mask, in rtq9128_dac_power_event()
388 static int rtq9128_component_probe(struct snd_soc_component *comp) in rtq9128_component_probe() argument
395 ret = pm_runtime_resume_and_get(comp->dev); in rtq9128_component_probe()
397 dev_err(comp->dev, "Failed to resume device (%d)\n", ret); in rtq9128_component_probe()
401 val = snd_soc_component_read(comp, RTQ9128_REG_EFUSE_DATA); in rtq9128_component_probe()
419 ret = snd_soc_component_write(comp, curr->reg, curr->val); in rtq9128_component_probe()
424 pm_runtime_mark_last_busy(comp->dev); in rtq9128_component_probe()
425 pm_runtime_put(comp->dev); in rtq9128_component_probe()
465 struct snd_soc_component *comp = dai->component; in rtq9128_dai_set_tdm_slot() local
495 ret = snd_soc_component_write(comp, RTQ9128_REG_TDM_TX_CH1 + i, start_loc); in rtq9128_dai_set_tdm_slot()
506 ret = snd_soc_component_write(comp, RTQ9128_REG_TDM_RX_CH1 + i, start_loc); in rtq9128_dai_set_tdm_slot()
514 ret = snd_soc_component_update_bits(comp, RTQ9128_REG_SDO_SEL, RTQ9128_TDMSRCIN_MASK, in rtq9128_dai_set_tdm_slot()
532 struct snd_soc_component *comp = dai->component; in rtq9128_dai_hw_params() local
619 ret = snd_soc_component_write_field(comp, RTQ9128_REG_I2S_OPT, RTQ9128_AUDFMT_MASK, audfmt); in rtq9128_dai_hw_params()
623 ret = snd_soc_component_write_field(comp, RTQ9128_REG_I2S_OPT, RTQ9128_AUDBIT_MASK, audbit); in rtq9128_dai_hw_params()
627 ret = snd_soc_component_write_field(comp, RTQ9128_REG_SDO_SEL, RTQ9128_DOLEN_MASK, dolen); in rtq9128_dai_hw_params()
633 struct snd_soc_component *comp = dai->component; in rtq9128_dai_mute_stream() local
639 ret = snd_soc_component_write_field(comp, RTQ9128_REG_DSP_EN, RTQ9128_MSMUTE_MASK, in rtq9128_dai_mute_stream()