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

1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8510.c -- WM8510 ALSA Soc Audio driver
113 static const char *wm8510_companding[] = { "Off", "NC", "u-law", "A-law" };
131 SOC_ENUM("Playback De-emphasis", wm8510_enum[2]),
147 SOC_SINGLE("DAC Playback Limiter Boost", WM8510_DACLIM2, 0, 15, 0),
170 SOC_SINGLE("Speaker Boost", WM8510_OUTPUT, 2, 1, 0),
172 SOC_SINGLE("Capture Boost(+20dB)", WM8510_ADCBOOST, 8, 1, 0),
178 SOC_DAPM_SINGLE("Line Bypass Switch", WM8510_SPKMIX, 1, 1, 0),
185 SOC_DAPM_SINGLE("Line Bypass Switch", WM8510_MONOMIX, 1, 1, 0),
219 SND_SOC_DAPM_MIXER("Boost Mixer", WM8510_POWER2, 4, 0,
237 {"Mono Mixer", "Line Bypass Switch", "Boost Mixer"},
242 {"Speaker Mixer", "Line Bypass Switch", "Boost Mixer"},
257 /* Boost Mixer */
258 {"Boost Mixer", "Mic PGA Switch", "Mic PGA"},
259 {"Boost Mixer", "Mic Volume", "MICP"},
260 {"Boost Mixer", "Aux Volume", "Aux Input"},
262 {"ADC", NULL, "Boost Mixer"},
266 unsigned int pre_div:4; /* prescale - 1 */
316 struct snd_soc_component *component = codec_dai->component; in wm8510_set_dai_pll()
352 struct snd_soc_component *component = codec_dai->component; in wm8510_set_dai_clkdiv()
377 return -EINVAL; in wm8510_set_dai_clkdiv()
386 struct snd_soc_component *component = codec_dai->component; in wm8510_set_dai_fmt()
398 return -EINVAL; in wm8510_set_dai_fmt()
415 return -EINVAL; in wm8510_set_dai_fmt()
432 return -EINVAL; in wm8510_set_dai_fmt()
444 struct snd_soc_component *component = dai->component; in wm8510_pcm_hw_params()
492 struct snd_soc_component *component = dai->component; in wm8510_mute()
520 regcache_sync(wm8510->regmap); in wm8510_set_bias_level()
558 .name = "wm8510-hifi",
622 wm8510 = devm_kzalloc(&spi->dev, sizeof(struct wm8510_priv), in wm8510_spi_probe()
625 return -ENOMEM; in wm8510_spi_probe()
627 wm8510->regmap = devm_regmap_init_spi(spi, &wm8510_regmap); in wm8510_spi_probe()
628 if (IS_ERR(wm8510->regmap)) in wm8510_spi_probe()
629 return PTR_ERR(wm8510->regmap); in wm8510_spi_probe()
633 ret = devm_snd_soc_register_component(&spi->dev, in wm8510_spi_probe()
655 wm8510 = devm_kzalloc(&i2c->dev, sizeof(struct wm8510_priv), in wm8510_i2c_probe()
658 return -ENOMEM; in wm8510_i2c_probe()
660 wm8510->regmap = devm_regmap_init_i2c(i2c, &wm8510_regmap); in wm8510_i2c_probe()
661 if (IS_ERR(wm8510->regmap)) in wm8510_i2c_probe()
662 return PTR_ERR(wm8510->regmap); in wm8510_i2c_probe()
666 ret = devm_snd_soc_register_component(&i2c->dev, in wm8510_i2c_probe()