Lines Matching refs:component
300 static int adau1701_reset(struct snd_soc_component *component, unsigned int clkdiv, in adau1701_reset() argument
303 struct adau1701 *adau1701 = snd_soc_component_get_drvdata(component); in adau1701_reset()
352 dev_warn(component->dev, "Failed to load firmware\n"); in adau1701_reset()
366 static int adau1701_set_capture_pcm_format(struct snd_soc_component *component, in adau1701_set_capture_pcm_format() argument
369 struct adau1701 *adau1701 = snd_soc_component_get_drvdata(component); in adau1701_set_capture_pcm_format()
407 static int adau1701_set_playback_pcm_format(struct snd_soc_component *component, in adau1701_set_playback_pcm_format() argument
410 struct adau1701 *adau1701 = snd_soc_component_get_drvdata(component); in adau1701_set_playback_pcm_format()
439 struct snd_soc_component *component = dai->component; in adau1701_hw_params() local
440 struct adau1701 *adau1701 = snd_soc_component_get_drvdata(component); in adau1701_hw_params()
451 ret = adau1701_reset(component, clkdiv, params_rate(params)); in adau1701_hw_params()
474 return adau1701_set_playback_pcm_format(component, params); in adau1701_hw_params()
476 return adau1701_set_capture_pcm_format(component, params); in adau1701_hw_params()
482 struct snd_soc_component *component = codec_dai->component; in adau1701_set_dai_fmt() local
483 struct adau1701 *adau1701 = snd_soc_component_get_drvdata(component); in adau1701_set_dai_fmt()
552 static int adau1701_set_bias_level(struct snd_soc_component *component, in adau1701_set_bias_level() argument
556 struct adau1701 *adau1701 = snd_soc_component_get_drvdata(component); in adau1701_set_bias_level()
580 struct snd_soc_component *component = dai->component; in adau1701_mute_stream() local
582 struct adau1701 *adau1701 = snd_soc_component_get_drvdata(component); in adau1701_mute_stream()
595 static int adau1701_set_sysclk(struct snd_soc_component *component, int clk_id, in adau1701_set_sysclk() argument
599 struct adau1701 *adau1701 = snd_soc_component_get_drvdata(component); in adau1701_set_sysclk()
622 struct adau1701 *adau1701 = snd_soc_component_get_drvdata(dai->component); in adau1701_startup()
669 static int adau1701_probe(struct snd_soc_component *component) in adau1701_probe() argument
673 struct adau1701 *adau1701 = snd_soc_component_get_drvdata(component); in adau1701_probe()
675 ret = sigmadsp_attach(adau1701->sigmadsp, component); in adau1701_probe()
682 dev_err(component->dev, "Failed to enable regulators: %d\n", ret); in adau1701_probe()
695 ret = adau1701_reset(component, adau1701->pll_clkdiv, 0); in adau1701_probe()
720 static void adau1701_remove(struct snd_soc_component *component) in adau1701_remove() argument
722 struct adau1701 *adau1701 = snd_soc_component_get_drvdata(component); in adau1701_remove()
731 static int adau1701_suspend(struct snd_soc_component *component) in adau1701_suspend() argument
733 struct adau1701 *adau1701 = snd_soc_component_get_drvdata(component); in adau1701_suspend()
741 static int adau1701_resume(struct snd_soc_component *component) in adau1701_resume() argument
743 struct adau1701 *adau1701 = snd_soc_component_get_drvdata(component); in adau1701_resume()
749 dev_err(component->dev, "Failed to enable regulators: %d\n", ret); in adau1701_resume()
753 return adau1701_reset(component, adau1701->pll_clkdiv, 0); in adau1701_resume()