Lines Matching refs:component
84 struct snd_soc_component *component; member
308 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in vout12supply_event() local
312 snd_soc_component_update_bits(component, WM8770_OUTMUX1, 0x180, 0); in vout12supply_event()
315 snd_soc_component_update_bits(component, WM8770_OUTMUX1, 0x180, 0x180); in vout12supply_event()
325 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in vout34supply_event() local
329 snd_soc_component_update_bits(component, WM8770_OUTMUX2, 0x180, 0); in vout34supply_event()
332 snd_soc_component_update_bits(component, WM8770_OUTMUX2, 0x180, 0x180); in vout34supply_event()
339 static int wm8770_reset(struct snd_soc_component *component) in wm8770_reset() argument
341 return snd_soc_component_write(component, WM8770_RESET, 0); in wm8770_reset()
346 struct snd_soc_component *component; in wm8770_set_fmt() local
349 component = dai->component; in wm8770_set_fmt()
392 snd_soc_component_update_bits(component, WM8770_IFACECTRL, 0xf, iface); in wm8770_set_fmt()
393 snd_soc_component_update_bits(component, WM8770_MSTRCTRL, 0x100, master); in wm8770_set_fmt()
411 struct snd_soc_component *component; in wm8770_hw_params() local
418 component = dai->component; in wm8770_hw_params()
419 wm8770 = snd_soc_component_get_drvdata(component); in wm8770_hw_params()
450 if (snd_soc_component_read(component, WM8770_MSTRCTRL) & 0x100) { in wm8770_hw_params()
458 dev_err(component->dev, in wm8770_hw_params()
464 dev_dbg(component->dev, "MCLK is %dfs\n", mclk_ratios[i]); in wm8770_hw_params()
466 snd_soc_component_update_bits(component, WM8770_MSTRCTRL, 0x7 << shift, in wm8770_hw_params()
470 snd_soc_component_update_bits(component, WM8770_IFACECTRL, 0x30, iface); in wm8770_hw_params()
477 struct snd_soc_component *component; in wm8770_mute() local
479 component = dai->component; in wm8770_mute()
480 return snd_soc_component_update_bits(component, WM8770_DACMUTE, 0x10, in wm8770_mute()
487 struct snd_soc_component *component; in wm8770_set_sysclk() local
490 component = dai->component; in wm8770_set_sysclk()
491 wm8770 = snd_soc_component_get_drvdata(component); in wm8770_set_sysclk()
496 static int wm8770_set_bias_level(struct snd_soc_component *component, in wm8770_set_bias_level() argument
502 wm8770 = snd_soc_component_get_drvdata(component); in wm8770_set_bias_level()
510 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in wm8770_set_bias_level()
514 dev_err(component->dev, in wm8770_set_bias_level()
523 snd_soc_component_write(component, WM8770_PWDNCTRL, 0); in wm8770_set_bias_level()
528 snd_soc_component_write(component, WM8770_PWDNCTRL, 1); in wm8770_set_bias_level()
568 static int wm8770_probe(struct snd_soc_component *component) in wm8770_probe() argument
573 wm8770 = snd_soc_component_get_drvdata(component); in wm8770_probe()
574 wm8770->component = component; in wm8770_probe()
579 dev_err(component->dev, "Failed to enable supplies: %d\n", ret); in wm8770_probe()
583 ret = wm8770_reset(component); in wm8770_probe()
585 dev_err(component->dev, "Failed to issue reset: %d\n", ret); in wm8770_probe()
590 snd_soc_component_update_bits(component, WM8770_MSDIGVOL, 0x100, 0x100); in wm8770_probe()
591 snd_soc_component_update_bits(component, WM8770_MSALGVOL, 0x100, 0x100); in wm8770_probe()
592 snd_soc_component_update_bits(component, WM8770_VOUT1RVOL, 0x100, 0x100); in wm8770_probe()
593 snd_soc_component_update_bits(component, WM8770_VOUT2RVOL, 0x100, 0x100); in wm8770_probe()
594 snd_soc_component_update_bits(component, WM8770_VOUT3RVOL, 0x100, 0x100); in wm8770_probe()
595 snd_soc_component_update_bits(component, WM8770_VOUT4RVOL, 0x100, 0x100); in wm8770_probe()
596 snd_soc_component_update_bits(component, WM8770_DAC1RVOL, 0x100, 0x100); in wm8770_probe()
597 snd_soc_component_update_bits(component, WM8770_DAC2RVOL, 0x100, 0x100); in wm8770_probe()
598 snd_soc_component_update_bits(component, WM8770_DAC3RVOL, 0x100, 0x100); in wm8770_probe()
599 snd_soc_component_update_bits(component, WM8770_DAC4RVOL, 0x100, 0x100); in wm8770_probe()
602 snd_soc_component_update_bits(component, WM8770_DACMUTE, 0x10, 0x10); in wm8770_probe()