Lines Matching refs:component
74 static int wm8737_reset(struct snd_soc_component *component) in wm8737_reset() argument
76 return snd_soc_component_write(component, WM8737_RESET, 0); in wm8737_reset()
328 struct snd_soc_component *component = dai->component; in wm8737_hw_params() local
329 struct wm8737_priv *wm8737 = snd_soc_component_get_drvdata(component); in wm8737_hw_params()
348 dev_err(component->dev, "%dHz MCLK can't support %dHz\n", in wm8737_hw_params()
371 snd_soc_component_update_bits(component, WM8737_AUDIO_FORMAT, WM8737_WL_MASK, af); in wm8737_hw_params()
372 snd_soc_component_update_bits(component, WM8737_CLOCKING, in wm8737_hw_params()
382 struct snd_soc_component *component = codec_dai->component; in wm8737_set_dai_sysclk() local
383 struct wm8737_priv *wm8737 = snd_soc_component_get_drvdata(component); in wm8737_set_dai_sysclk()
394 dev_err(component->dev, "MCLK rate %dHz not supported\n", freq); in wm8737_set_dai_sysclk()
403 struct snd_soc_component *component = codec_dai->component; in wm8737_set_dai_fmt() local
445 snd_soc_component_update_bits(component, WM8737_AUDIO_FORMAT, in wm8737_set_dai_fmt()
451 static int wm8737_set_bias_level(struct snd_soc_component *component, in wm8737_set_bias_level() argument
454 struct wm8737_priv *wm8737 = snd_soc_component_get_drvdata(component); in wm8737_set_bias_level()
463 snd_soc_component_update_bits(component, WM8737_MISC_BIAS_CONTROL, in wm8737_set_bias_level()
468 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in wm8737_set_bias_level()
472 dev_err(component->dev, in wm8737_set_bias_level()
481 snd_soc_component_update_bits(component, WM8737_MISC_BIAS_CONTROL, in wm8737_set_bias_level()
486 snd_soc_component_update_bits(component, WM8737_POWER_MANAGEMENT, in wm8737_set_bias_level()
496 snd_soc_component_update_bits(component, WM8737_MISC_BIAS_CONTROL, in wm8737_set_bias_level()
503 snd_soc_component_update_bits(component, WM8737_POWER_MANAGEMENT, in wm8737_set_bias_level()
537 static int wm8737_probe(struct snd_soc_component *component) in wm8737_probe() argument
539 struct wm8737_priv *wm8737 = snd_soc_component_get_drvdata(component); in wm8737_probe()
545 dev_err(component->dev, "Failed to enable supplies: %d\n", ret); in wm8737_probe()
549 ret = wm8737_reset(component); in wm8737_probe()
551 dev_err(component->dev, "Failed to issue reset\n"); in wm8737_probe()
555 snd_soc_component_update_bits(component, WM8737_LEFT_PGA_VOLUME, WM8737_LVU, in wm8737_probe()
557 snd_soc_component_update_bits(component, WM8737_RIGHT_PGA_VOLUME, WM8737_RVU, in wm8737_probe()
560 snd_soc_component_force_bias_level(component, SND_SOC_BIAS_STANDBY); in wm8737_probe()