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