Lines Matching defs:component

316 	struct snd_soc_component *component = codec_dai->component;
321 reg = snd_soc_component_read(component, WM8510_CLOCK);
322 snd_soc_component_write(component, WM8510_CLOCK, reg & 0x0ff);
325 reg = snd_soc_component_read(component, WM8510_POWER1);
326 snd_soc_component_write(component, WM8510_POWER1, reg & 0x1df);
332 snd_soc_component_write(component, WM8510_PLLN, (pll_div.pre_div << 4) | pll_div.n);
333 snd_soc_component_write(component, WM8510_PLLK1, pll_div.k >> 18);
334 snd_soc_component_write(component, WM8510_PLLK2, (pll_div.k >> 9) & 0x1ff);
335 snd_soc_component_write(component, WM8510_PLLK3, pll_div.k & 0x1ff);
336 reg = snd_soc_component_read(component, WM8510_POWER1);
337 snd_soc_component_write(component, WM8510_POWER1, reg | 0x020);
340 reg = snd_soc_component_read(component, WM8510_CLOCK);
341 snd_soc_component_write(component, WM8510_CLOCK, reg | 0x100);
352 struct snd_soc_component *component = codec_dai->component;
357 reg = snd_soc_component_read(component, WM8510_GPIO) & 0x1cf;
358 snd_soc_component_write(component, WM8510_GPIO, reg | div);
361 reg = snd_soc_component_read(component, WM8510_CLOCK) & 0x11f;
362 snd_soc_component_write(component, WM8510_CLOCK, reg | div);
365 reg = snd_soc_component_read(component, WM8510_ADC) & 0x1f7;
366 snd_soc_component_write(component, WM8510_ADC, reg | div);
369 reg = snd_soc_component_read(component, WM8510_DAC) & 0x1f7;
370 snd_soc_component_write(component, WM8510_DAC, reg | div);
373 reg = snd_soc_component_read(component, WM8510_CLOCK) & 0x1e3;
374 snd_soc_component_write(component, WM8510_CLOCK, reg | div);
386 struct snd_soc_component *component = codec_dai->component;
388 u16 clk = snd_soc_component_read(component, WM8510_CLOCK) & 0x1fe;
435 snd_soc_component_write(component, WM8510_IFACE, iface);
436 snd_soc_component_write(component, WM8510_CLOCK, clk);
444 struct snd_soc_component *component = dai->component;
445 u16 iface = snd_soc_component_read(component, WM8510_IFACE) & 0x19f;
446 u16 adn = snd_soc_component_read(component, WM8510_ADD) & 0x1f1;
485 snd_soc_component_write(component, WM8510_IFACE, iface);
486 snd_soc_component_write(component, WM8510_ADD, adn);
492 struct snd_soc_component *component = dai->component;
493 u16 mute_reg = snd_soc_component_read(component, WM8510_DAC) & 0xffbf;
496 snd_soc_component_write(component, WM8510_DAC, mute_reg | 0x40);
498 snd_soc_component_write(component, WM8510_DAC, mute_reg);
503 static int wm8510_set_bias_level(struct snd_soc_component *component,
506 struct wm8510_priv *wm8510 = snd_soc_component_get_drvdata(component);
507 u16 power1 = snd_soc_component_read(component, WM8510_POWER1) & ~0x3;
513 snd_soc_component_write(component, WM8510_POWER1, power1);
519 if (snd_soc_component_get_bias_level(component) == SND_SOC_BIAS_OFF) {
523 snd_soc_component_write(component, WM8510_POWER1, power1 | 0x3);
528 snd_soc_component_write(component, WM8510_POWER1, power1);
532 snd_soc_component_write(component, WM8510_POWER1, 0);
533 snd_soc_component_write(component, WM8510_POWER2, 0);
534 snd_soc_component_write(component, WM8510_POWER3, 0);
575 static int wm8510_probe(struct snd_soc_component *component)
577 wm8510_reset(component);