Lines Matching refs:component

261 	struct snd_soc_component *component = snd_soc_kcontrol_component(kcontrol);  in wm8580_out_vu()  local
262 struct wm8580_priv *wm8580 = snd_soc_component_get_drvdata(component); in wm8580_out_vu()
278 snd_soc_component_update_bits(component, reg, 0x100, 0x100); in wm8580_out_vu()
279 snd_soc_component_update_bits(component, reg2, 0x100, 0x100); in wm8580_out_vu()
464 struct snd_soc_component *component = codec_dai->component; in wm8580_set_dai_pll() local
465 struct wm8580_priv *wm8580 = snd_soc_component_get_drvdata(component); in wm8580_set_dai_pll()
504 snd_soc_component_update_bits(component, WM8580_PWRDN2, pwr_mask, pwr_mask); in wm8580_set_dai_pll()
509 snd_soc_component_write(component, WM8580_PLLA1 + offset, pll_div.k & 0x1ff); in wm8580_set_dai_pll()
510 snd_soc_component_write(component, WM8580_PLLA2 + offset, (pll_div.k >> 9) & 0x1ff); in wm8580_set_dai_pll()
511 snd_soc_component_write(component, WM8580_PLLA3 + offset, in wm8580_set_dai_pll()
514 reg = snd_soc_component_read(component, WM8580_PLLA4 + offset); in wm8580_set_dai_pll()
519 snd_soc_component_write(component, WM8580_PLLA4 + offset, reg); in wm8580_set_dai_pll()
522 snd_soc_component_update_bits(component, WM8580_PWRDN2, pwr_mask, 0); in wm8580_set_dai_pll()
538 struct snd_soc_component *component = dai->component; in wm8580_paif_hw_params() local
539 struct wm8580_priv *wm8580 = snd_soc_component_get_drvdata(component); in wm8580_paif_hw_params()
571 dev_err(component->dev, "Invalid clock ratio %d/%d\n", in wm8580_paif_hw_params()
576 dev_dbg(component->dev, "Running at %dfs with %dHz clock\n", in wm8580_paif_hw_params()
584 dev_dbg(component->dev, "Selecting 64x OSR\n"); in wm8580_paif_hw_params()
588 dev_dbg(component->dev, "Selecting 128x OSR\n"); in wm8580_paif_hw_params()
592 snd_soc_component_update_bits(component, WM8580_PAIF3, WM8580_DACOSR, osr); in wm8580_paif_hw_params()
595 snd_soc_component_update_bits(component, WM8580_PAIF1 + dai->driver->id, in wm8580_paif_hw_params()
598 snd_soc_component_update_bits(component, WM8580_PAIF3 + dai->driver->id, in wm8580_paif_hw_params()
606 struct snd_soc_component *component = codec_dai->component; in wm8580_set_paif_dai_fmt() local
611 aifa = snd_soc_component_read(component, WM8580_PAIF1 + codec_dai->driver->id); in wm8580_set_paif_dai_fmt()
612 aifb = snd_soc_component_read(component, WM8580_PAIF3 + codec_dai->driver->id); in wm8580_set_paif_dai_fmt()
678 snd_soc_component_write(component, WM8580_PAIF1 + codec_dai->driver->id, aifa); in wm8580_set_paif_dai_fmt()
679 snd_soc_component_write(component, WM8580_PAIF3 + codec_dai->driver->id, aifb); in wm8580_set_paif_dai_fmt()
687 struct snd_soc_component *component = codec_dai->component; in wm8580_set_dai_clkdiv() local
692 reg = snd_soc_component_read(component, WM8580_PLLB4); in wm8580_set_dai_clkdiv()
714 snd_soc_component_write(component, WM8580_PLLB4, reg); in wm8580_set_dai_clkdiv()
718 reg = snd_soc_component_read(component, WM8580_PLLB4); in wm8580_set_dai_clkdiv()
740 snd_soc_component_write(component, WM8580_PLLB4, reg); in wm8580_set_dai_clkdiv()
753 struct snd_soc_component *component = dai->component; in wm8580_set_sysclk() local
754 struct wm8580_priv *wm8580 = snd_soc_component_get_drvdata(component); in wm8580_set_sysclk()
789 dev_err(component->dev, "Unknown clock %d\n", clk_id); in wm8580_set_sysclk()
796 ret = snd_soc_component_update_bits(component, WM8580_CLKSEL, sel_mask, sel); in wm8580_set_sysclk()
805 struct snd_soc_component *component = codec_dai->component; in wm8580_mute() local
808 reg = snd_soc_component_read(component, WM8580_DAC_CONTROL5); in wm8580_mute()
815 snd_soc_component_write(component, WM8580_DAC_CONTROL5, reg); in wm8580_mute()
820 static int wm8580_set_bias_level(struct snd_soc_component *component, in wm8580_set_bias_level() argument
829 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in wm8580_set_bias_level()
831 snd_soc_component_update_bits(component, WM8580_PWRDN1, in wm8580_set_bias_level()
836 snd_soc_component_update_bits(component, WM8580_ADC_CONTROL1, in wm8580_set_bias_level()
842 snd_soc_component_update_bits(component, WM8580_PWRDN1, in wm8580_set_bias_level()
852 struct snd_soc_component *component = dai->component; in wm8580_playback_startup() local
853 struct wm8580_priv *wm8580 = snd_soc_component_get_drvdata(component); in wm8580_playback_startup()
907 static int wm8580_probe(struct snd_soc_component *component) in wm8580_probe() argument
909 struct wm8580_priv *wm8580 = snd_soc_component_get_drvdata(component); in wm8580_probe()
910 struct snd_soc_dapm_context *dapm = snd_soc_component_get_dapm(component); in wm8580_probe()
915 snd_soc_add_component_controls(component, wm8581_snd_controls, in wm8580_probe()
929 dev_err(component->dev, "Failed to enable supplies: %d\n", ret); in wm8580_probe()
934 ret = snd_soc_component_write(component, WM8580_RESET, 0); in wm8580_probe()
936 dev_err(component->dev, "Failed to reset component: %d\n", ret); in wm8580_probe()
949 static void wm8580_remove(struct snd_soc_component *component) in wm8580_remove() argument
951 struct wm8580_priv *wm8580 = snd_soc_component_get_drvdata(component); in wm8580_remove()