Lines Matching refs:component

58 static int wm8741_reset(struct snd_soc_component *component)  in wm8741_reset()  argument
60 return snd_soc_component_write(component, WM8741_RESET, 0); in wm8741_reset()
178 struct snd_soc_component *component = dai->component; in wm8741_startup() local
179 struct wm8741_priv *wm8741 = snd_soc_component_get_drvdata(component); in wm8741_startup()
193 struct snd_soc_component *component = dai->component; in wm8741_hw_params() local
194 struct wm8741_priv *wm8741 = snd_soc_component_get_drvdata(component); in wm8741_hw_params()
202 dev_err(component->dev, in wm8741_hw_params()
214 dev_err(component->dev, "LRCLK %d unsupported with MCLK %d\n", in wm8741_hw_params()
234 dev_dbg(component->dev, "wm8741_hw_params: Unsupported bit size param = %d", in wm8741_hw_params()
247 dev_dbg(component->dev, "wm8741_hw_params: bit size param = %d, rate param = %d", in wm8741_hw_params()
250 snd_soc_component_update_bits(component, WM8741_FORMAT_CONTROL, WM8741_IWL_MASK, in wm8741_hw_params()
252 snd_soc_component_update_bits(component, WM8741_MODE_CONTROL_1, WM8741_OSR_MASK, in wm8741_hw_params()
261 struct snd_soc_component *component = codec_dai->component; in wm8741_set_dai_sysclk() local
262 struct wm8741_priv *wm8741 = snd_soc_component_get_drvdata(component); in wm8741_set_dai_sysclk()
264 dev_dbg(component->dev, "wm8741_set_dai_sysclk info: freq=%dHz\n", freq); in wm8741_set_dai_sysclk()
306 struct snd_soc_component *component = codec_dai->component; in wm8741_set_dai_fmt() local
356 dev_dbg(component->dev, "wm8741_set_dai_fmt: Format=%x, Clock Inv=%x\n", in wm8741_set_dai_fmt()
360 snd_soc_component_update_bits(component, WM8741_FORMAT_CONTROL, in wm8741_set_dai_fmt()
369 struct snd_soc_component *component = codec_dai->component; in wm8741_mute() local
371 snd_soc_component_update_bits(component, WM8741_VOLUME_CONTROL, in wm8741_mute()
406 static int wm8741_resume(struct snd_soc_component *component) in wm8741_resume() argument
408 snd_soc_component_cache_sync(component); in wm8741_resume()
415 static int wm8741_configure(struct snd_soc_component *component) in wm8741_configure() argument
417 struct wm8741_priv *wm8741 = snd_soc_component_get_drvdata(component); in wm8741_configure()
425 snd_soc_component_update_bits(component, WM8741_MODE_CONTROL_2, in wm8741_configure()
434 snd_soc_component_update_bits(component, WM8741_DACLLSB_ATTENUATION, in wm8741_configure()
436 snd_soc_component_update_bits(component, WM8741_DACLMSB_ATTENUATION, in wm8741_configure()
438 snd_soc_component_update_bits(component, WM8741_DACRLSB_ATTENUATION, in wm8741_configure()
440 snd_soc_component_update_bits(component, WM8741_DACRMSB_ATTENUATION, in wm8741_configure()
446 static int wm8741_add_controls(struct snd_soc_component *component) in wm8741_add_controls() argument
448 struct wm8741_priv *wm8741 = snd_soc_component_get_drvdata(component); in wm8741_add_controls()
453 snd_soc_add_component_controls(component, in wm8741_add_controls()
458 snd_soc_add_component_controls(component, in wm8741_add_controls()
463 snd_soc_add_component_controls(component, in wm8741_add_controls()
474 static int wm8741_probe(struct snd_soc_component *component) in wm8741_probe() argument
476 struct wm8741_priv *wm8741 = snd_soc_component_get_drvdata(component); in wm8741_probe()
482 dev_err(component->dev, "Failed to enable supplies: %d\n", ret); in wm8741_probe()
486 ret = wm8741_reset(component); in wm8741_probe()
488 dev_err(component->dev, "Failed to issue reset\n"); in wm8741_probe()
492 ret = wm8741_configure(component); in wm8741_probe()
494 dev_err(component->dev, "Failed to change default settings\n"); in wm8741_probe()
498 ret = wm8741_add_controls(component); in wm8741_probe()
500 dev_err(component->dev, "Failed to add controls\n"); in wm8741_probe()
504 dev_dbg(component->dev, "Successful registration\n"); in wm8741_probe()
513 static void wm8741_remove(struct snd_soc_component *component) in wm8741_remove() argument
515 struct wm8741_priv *wm8741 = snd_soc_component_get_drvdata(component); in wm8741_remove()