Lines Matching refs:component
74 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in tas6424_dac_event() local
75 struct tas6424_data *tas6424 = snd_soc_component_get_drvdata(component); in tas6424_dac_event()
77 dev_dbg(component->dev, "%s() event=0x%0x\n", __func__, event); in tas6424_dac_event()
113 struct snd_soc_component *component = dai->component; in tas6424_hw_params() local
118 dev_dbg(component->dev, "%s() rate=%u width=%u\n", __func__, rate, width); in tas6424_hw_params()
131 dev_err(component->dev, "unsupported sample rate: %u\n", rate); in tas6424_hw_params()
142 dev_err(component->dev, "unsupported sample width: %u\n", width); in tas6424_hw_params()
146 snd_soc_component_update_bits(component, TAS6424_SAP_CTRL, in tas6424_hw_params()
156 struct snd_soc_component *component = dai->component; in tas6424_set_dai_fmt() local
159 dev_dbg(component->dev, "%s() fmt=0x%0x\n", __func__, fmt); in tas6424_set_dai_fmt()
166 dev_err(component->dev, "Invalid DAI clocking\n"); in tas6424_set_dai_fmt()
175 dev_err(component->dev, "Invalid DAI clock signal polarity\n"); in tas6424_set_dai_fmt()
199 dev_err(component->dev, "Invalid DAI interface format\n"); in tas6424_set_dai_fmt()
203 snd_soc_component_update_bits(component, TAS6424_SAP_CTRL, in tas6424_set_dai_fmt()
213 struct snd_soc_component *component = dai->component; in tas6424_set_dai_tdm_slot() local
217 dev_dbg(component->dev, "%s() tx_mask=%d rx_mask=%d\n", __func__, in tas6424_set_dai_tdm_slot()
232 dev_err(component->dev, "tdm mask must cover 4 contiguous slots\n"); in tas6424_set_dai_tdm_slot()
244 dev_err(component->dev, "tdm mask must start at slot 0 or 4\n"); in tas6424_set_dai_tdm_slot()
248 snd_soc_component_update_bits(component, TAS6424_SAP_CTRL, TAS6424_SAP_TDM_SLOT_LAST, in tas6424_set_dai_tdm_slot()
256 struct snd_soc_component *component = dai->component; in tas6424_mute() local
257 struct tas6424_data *tas6424 = snd_soc_component_get_drvdata(component); in tas6424_mute()
260 dev_dbg(component->dev, "%s() mute=%d\n", __func__, mute); in tas6424_mute()
272 snd_soc_component_write(component, TAS6424_CH_STATE_CTRL, val); in tas6424_mute()
277 static int tas6424_power_off(struct snd_soc_component *component) in tas6424_power_off() argument
279 struct tas6424_data *tas6424 = snd_soc_component_get_drvdata(component); in tas6424_power_off()
282 snd_soc_component_write(component, TAS6424_CH_STATE_CTRL, TAS6424_ALL_STATE_HIZ); in tas6424_power_off()
290 dev_err(component->dev, "failed to disable supplies: %d\n", ret); in tas6424_power_off()
297 static int tas6424_power_on(struct snd_soc_component *component) in tas6424_power_on() argument
299 struct tas6424_data *tas6424 = snd_soc_component_get_drvdata(component); in tas6424_power_on()
311 dev_err(component->dev, "failed to enable supplies: %d\n", ret); in tas6424_power_on()
319 dev_err(component->dev, "failed to sync regcache: %d\n", ret); in tas6424_power_on()
334 snd_soc_component_write(component, TAS6424_CH_STATE_CTRL, chan_states); in tas6424_power_on()
346 static int tas6424_set_bias_level(struct snd_soc_component *component, in tas6424_set_bias_level() argument
349 dev_dbg(component->dev, "%s() level=%d\n", __func__, level); in tas6424_set_bias_level()
356 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) in tas6424_set_bias_level()
357 tas6424_power_on(component); in tas6424_set_bias_level()
360 tas6424_power_off(component); in tas6424_set_bias_level()