Lines Matching refs:component
264 struct snd_soc_component *component = dai->component; in pcm186x_hw_params() local
265 struct pcm186x_priv *priv = snd_soc_component_get_drvdata(component); in pcm186x_hw_params()
275 dev_dbg(component->dev, "%s() rate=%u format=0x%x width=%u channels=%u\n", in pcm186x_hw_params()
307 snd_soc_component_update_bits(component, PCM186X_PCM_CFG, in pcm186x_hw_params()
330 snd_soc_component_update_bits(component, PCM186X_TDM_TX_SEL, in pcm186x_hw_params()
337 snd_soc_component_update_bits(component, PCM186X_PCM_CFG, in pcm186x_hw_params()
346 dev_dbg(component->dev, in pcm186x_hw_params()
350 snd_soc_component_write(component, PCM186X_BCK_DIV, div_bck - 1); in pcm186x_hw_params()
351 snd_soc_component_write(component, PCM186X_LRK_DIV, div_lrck - 1); in pcm186x_hw_params()
359 struct snd_soc_component *component = dai->component; in pcm186x_set_fmt() local
360 struct pcm186x_priv *priv = snd_soc_component_get_drvdata(component); in pcm186x_set_fmt()
364 dev_dbg(component->dev, "%s() format=0x%x\n", __func__, format); in pcm186x_set_fmt()
369 dev_err(component->dev, "operating in provider mode requires sysclock to be configured\n"); in pcm186x_set_fmt()
379 dev_err(component->dev, "Invalid DAI master/slave interface\n"); in pcm186x_set_fmt()
388 dev_err(component->dev, "Inverted DAI clocks not supported\n"); in pcm186x_set_fmt()
411 dev_err(component->dev, "Invalid DAI format\n"); in pcm186x_set_fmt()
415 snd_soc_component_update_bits(component, PCM186X_CLK_CTRL, in pcm186x_set_fmt()
418 snd_soc_component_write(component, PCM186X_TDM_TX_OFFSET, priv->tdm_offset); in pcm186x_set_fmt()
420 snd_soc_component_update_bits(component, PCM186X_PCM_CFG, in pcm186x_set_fmt()
429 struct snd_soc_component *component = dai->component; in pcm186x_set_tdm_slot() local
430 struct pcm186x_priv *priv = snd_soc_component_get_drvdata(component); in pcm186x_set_tdm_slot()
433 dev_dbg(component->dev, in pcm186x_set_tdm_slot()
438 dev_err(component->dev, "tdm tx mask must not be 0\n"); in pcm186x_set_tdm_slot()
446 dev_err(component->dev, "tdm tx mask must be contiguous\n"); in pcm186x_set_tdm_slot()
453 dev_err(component->dev, "tdm tx slot selection out of bounds\n"); in pcm186x_set_tdm_slot()
465 struct snd_soc_component *component = dai->component; in pcm186x_set_dai_sysclk() local
466 struct pcm186x_priv *priv = snd_soc_component_get_drvdata(component); in pcm186x_set_dai_sysclk()
468 dev_dbg(component->dev, "%s() clk_id=%d freq=%u dir=%d\n", in pcm186x_set_dai_sysclk()
507 static int pcm186x_power_on(struct snd_soc_component *component) in pcm186x_power_on() argument
509 struct pcm186x_priv *priv = snd_soc_component_get_drvdata(component); in pcm186x_power_on()
520 dev_err(component->dev, "Failed to restore cache\n"); in pcm186x_power_on()
527 snd_soc_component_update_bits(component, PCM186X_POWER_CTRL, in pcm186x_power_on()
533 static int pcm186x_power_off(struct snd_soc_component *component) in pcm186x_power_off() argument
535 struct pcm186x_priv *priv = snd_soc_component_get_drvdata(component); in pcm186x_power_off()
537 snd_soc_component_update_bits(component, PCM186X_POWER_CTRL, in pcm186x_power_off()
546 static int pcm186x_set_bias_level(struct snd_soc_component *component, in pcm186x_set_bias_level() argument
549 dev_dbg(component->dev, "## %s: %d -> %d\n", __func__, in pcm186x_set_bias_level()
550 snd_soc_component_get_bias_level(component), level); in pcm186x_set_bias_level()
558 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) in pcm186x_set_bias_level()
559 pcm186x_power_on(component); in pcm186x_set_bias_level()
562 pcm186x_power_off(component); in pcm186x_set_bias_level()