Lines Matching refs:component
315 struct snd_soc_component *component = codec_dai->component; in wm8974_set_dai_pll() local
321 reg = snd_soc_component_read(component, WM8974_CLOCK); in wm8974_set_dai_pll()
322 snd_soc_component_write(component, WM8974_CLOCK, reg & 0x0ff); in wm8974_set_dai_pll()
325 reg = snd_soc_component_read(component, WM8974_POWER1); in wm8974_set_dai_pll()
326 snd_soc_component_write(component, WM8974_POWER1, reg & 0x1df); in wm8974_set_dai_pll()
332 snd_soc_component_write(component, WM8974_PLLN, (pll_div.pre_div << 4) | pll_div.n); in wm8974_set_dai_pll()
333 snd_soc_component_write(component, WM8974_PLLK1, pll_div.k >> 18); in wm8974_set_dai_pll()
334 snd_soc_component_write(component, WM8974_PLLK2, (pll_div.k >> 9) & 0x1ff); in wm8974_set_dai_pll()
335 snd_soc_component_write(component, WM8974_PLLK3, pll_div.k & 0x1ff); in wm8974_set_dai_pll()
336 reg = snd_soc_component_read(component, WM8974_POWER1); in wm8974_set_dai_pll()
337 snd_soc_component_write(component, WM8974_POWER1, reg | 0x020); in wm8974_set_dai_pll()
340 reg = snd_soc_component_read(component, WM8974_CLOCK); in wm8974_set_dai_pll()
341 snd_soc_component_write(component, WM8974_CLOCK, reg | 0x100); in wm8974_set_dai_pll()
352 struct snd_soc_component *component = codec_dai->component; in wm8974_set_dai_clkdiv() local
357 reg = snd_soc_component_read(component, WM8974_GPIO) & 0x1cf; in wm8974_set_dai_clkdiv()
358 snd_soc_component_write(component, WM8974_GPIO, reg | div); in wm8974_set_dai_clkdiv()
361 reg = snd_soc_component_read(component, WM8974_CLOCK) & 0x11f; in wm8974_set_dai_clkdiv()
362 snd_soc_component_write(component, WM8974_CLOCK, reg | div); in wm8974_set_dai_clkdiv()
365 reg = snd_soc_component_read(component, WM8974_CLOCK) & 0x1e3; in wm8974_set_dai_clkdiv()
366 snd_soc_component_write(component, WM8974_CLOCK, reg | div); in wm8974_set_dai_clkdiv()
409 struct snd_soc_component *component = dai->component; in wm8974_update_clocks() local
410 struct wm8974_priv *priv = snd_soc_component_get_drvdata(component); in wm8974_update_clocks()
437 struct snd_soc_component *component = dai->component; in wm8974_set_dai_sysclk() local
438 struct wm8974_priv *priv = snd_soc_component_get_drvdata(component); in wm8974_set_dai_sysclk()
451 struct snd_soc_component *component = codec_dai->component; in wm8974_set_dai_fmt() local
453 u16 clk = snd_soc_component_read(component, WM8974_CLOCK) & 0x1fe; in wm8974_set_dai_fmt()
504 snd_soc_component_write(component, WM8974_IFACE, iface); in wm8974_set_dai_fmt()
505 snd_soc_component_write(component, WM8974_CLOCK, clk); in wm8974_set_dai_fmt()
513 struct snd_soc_component *component = dai->component; in wm8974_pcm_hw_params() local
514 struct wm8974_priv *priv = snd_soc_component_get_drvdata(component); in wm8974_pcm_hw_params()
515 u16 iface = snd_soc_component_read(component, WM8974_IFACE) & 0x19f; in wm8974_pcm_hw_params()
516 u16 adn = snd_soc_component_read(component, WM8974_ADD) & 0x1f1; in wm8974_pcm_hw_params()
561 snd_soc_component_write(component, WM8974_IFACE, iface); in wm8974_pcm_hw_params()
562 snd_soc_component_write(component, WM8974_ADD, adn); in wm8974_pcm_hw_params()
568 struct snd_soc_component *component = dai->component; in wm8974_mute() local
569 u16 mute_reg = snd_soc_component_read(component, WM8974_DAC) & 0xffbf; in wm8974_mute()
572 snd_soc_component_write(component, WM8974_DAC, mute_reg | 0x40); in wm8974_mute()
574 snd_soc_component_write(component, WM8974_DAC, mute_reg); in wm8974_mute()
579 static int wm8974_set_bias_level(struct snd_soc_component *component, in wm8974_set_bias_level() argument
582 u16 power1 = snd_soc_component_read(component, WM8974_POWER1) & ~0x3; in wm8974_set_bias_level()
588 snd_soc_component_write(component, WM8974_POWER1, power1); in wm8974_set_bias_level()
594 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) { in wm8974_set_bias_level()
595 regcache_sync(dev_get_regmap(component->dev, NULL)); in wm8974_set_bias_level()
598 snd_soc_component_write(component, WM8974_POWER1, power1 | 0x3); in wm8974_set_bias_level()
603 snd_soc_component_write(component, WM8974_POWER1, power1); in wm8974_set_bias_level()
607 snd_soc_component_write(component, WM8974_POWER1, 0); in wm8974_set_bias_level()
608 snd_soc_component_write(component, WM8974_POWER2, 0); in wm8974_set_bias_level()
609 snd_soc_component_write(component, WM8974_POWER3, 0); in wm8974_set_bias_level()
659 static int wm8974_probe(struct snd_soc_component *component) in wm8974_probe() argument
663 ret = wm8974_reset(component); in wm8974_probe()
665 dev_err(component->dev, "Failed to issue reset\n"); in wm8974_probe()