• Home
  • Raw
  • Download

Lines Matching +full:boost +full:- +full:bypass

2  * wm8510.c  --  WM8510 ALSA Soc Audio driver
116 static const char *wm8510_companding[] = { "Off", "NC", "u-law", "A-law" };
134 SOC_ENUM("Playback De-emphasis", wm8510_enum[2]),
150 SOC_SINGLE("DAC Playback Limiter Boost", WM8510_DACLIM2, 0, 15, 0),
173 SOC_SINGLE("Speaker Boost", WM8510_OUTPUT, 2, 1, 0),
175 SOC_SINGLE("Capture Boost(+20dB)", WM8510_ADCBOOST, 8, 1, 0),
181 SOC_DAPM_SINGLE("Line Bypass Switch", WM8510_SPKMIX, 1, 1, 0),
188 SOC_DAPM_SINGLE("Line Bypass Switch", WM8510_MONOMIX, 1, 1, 0),
222 SND_SOC_DAPM_MIXER("Boost Mixer", WM8510_POWER2, 4, 0,
240 {"Mono Mixer", "Line Bypass Switch", "Boost Mixer"},
245 {"Speaker Mixer", "Line Bypass Switch", "Boost Mixer"},
260 /* Boost Mixer */
261 {"Boost Mixer", "Mic PGA Switch", "Mic PGA"},
262 {"Boost Mixer", "Mic Volume", "MICP"},
263 {"Boost Mixer", "Aux Volume", "Aux Input"},
265 {"ADC", NULL, "Boost Mixer"},
269 unsigned int pre_div:4; /* prescale - 1 */
319 struct snd_soc_component *component = codec_dai->component; in wm8510_set_dai_pll()
355 struct snd_soc_component *component = codec_dai->component; in wm8510_set_dai_clkdiv()
380 return -EINVAL; in wm8510_set_dai_clkdiv()
389 struct snd_soc_component *component = codec_dai->component; in wm8510_set_dai_fmt()
401 return -EINVAL; in wm8510_set_dai_fmt()
418 return -EINVAL; in wm8510_set_dai_fmt()
435 return -EINVAL; in wm8510_set_dai_fmt()
447 struct snd_soc_component *component = dai->component; in wm8510_pcm_hw_params()
495 struct snd_soc_component *component = dai->component; in wm8510_mute()
523 regcache_sync(wm8510->regmap); in wm8510_set_bias_level()
560 .name = "wm8510-hifi",
624 wm8510 = devm_kzalloc(&spi->dev, sizeof(struct wm8510_priv), in wm8510_spi_probe()
627 return -ENOMEM; in wm8510_spi_probe()
629 wm8510->regmap = devm_regmap_init_spi(spi, &wm8510_regmap); in wm8510_spi_probe()
630 if (IS_ERR(wm8510->regmap)) in wm8510_spi_probe()
631 return PTR_ERR(wm8510->regmap); in wm8510_spi_probe()
635 ret = devm_snd_soc_register_component(&spi->dev, in wm8510_spi_probe()
657 wm8510 = devm_kzalloc(&i2c->dev, sizeof(struct wm8510_priv), in wm8510_i2c_probe()
660 return -ENOMEM; in wm8510_i2c_probe()
662 wm8510->regmap = devm_regmap_init_i2c(i2c, &wm8510_regmap); in wm8510_i2c_probe()
663 if (IS_ERR(wm8510->regmap)) in wm8510_i2c_probe()
664 return PTR_ERR(wm8510->regmap); in wm8510_i2c_probe()
668 ret = devm_snd_soc_register_component(&i2c->dev, in wm8510_i2c_probe()