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

1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8750.c -- WM8750 ALSA SoC audio driver
91 static const char *wm8750_bass[] = {"Linear Control", "Adaptive Boost"};
145 SOC_ENUM("Playback De-emphasis", wm8750_enum[15]),
153 SOC_ENUM("Bass Boost", wm8750_enum[0]),
158 SOC_ENUM("Treble Cut-off", wm8750_enum[2]),
162 SOC_ENUM("3D Lower Cut-off", wm8750_enum[3]),
163 SOC_ENUM("3D Upper Cut-off", wm8750_enum[4]),
186 /* ADCDAC Bit 0 - ADCHPD */
187 /* ADCDAC Bit 4 - HPOR */
188 /* ADCTL1 Bit 2,3 - DATSEL */
189 /* ADCTL1 Bit 4,5 - DMONOMIX */
190 /* ADCTL1 Bit 6,7 - VSEL */
191 /* ADCTL2 Bit 2 - LRCM */
192 /* ADCTL2 Bit 3 - TRI */
193 /* ADCTL3 Bit 5 - HPFLREN */
194 /* ADCTL3 Bit 6 - VROI */
195 /* ADCTL3 Bit 7,8 - ADCLRM */
196 /* ADCIN Bit 4 - LDCM */
197 /* ADCIN Bit 5 - RDCM */
199 SOC_DOUBLE_R("Mic Boost", WM8750_LADCIN, WM8750_RADCIN, 4, 3, 0),
201 SOC_DOUBLE_R("Bypass Left Playback Volume", WM8750_LOUTM1,
203 SOC_DOUBLE_R("Bypass Right Playback Volume", WM8750_ROUTM1,
205 SOC_DOUBLE_R("Bypass Mono Playback Volume", WM8750_MOUTM1,
226 SOC_DAPM_SINGLE("Left Bypass Switch", WM8750_LOUTM1, 7, 1, 0),
228 SOC_DAPM_SINGLE("Right Bypass Switch", WM8750_LOUTM2, 7, 1, 0),
234 SOC_DAPM_SINGLE("Left Bypass Switch", WM8750_ROUTM1, 7, 1, 0),
236 SOC_DAPM_SINGLE("Right Bypass Switch", WM8750_ROUTM2, 7, 1, 0),
242 SOC_DAPM_SINGLE("Left Bypass Switch", WM8750_MOUTM1, 7, 1, 0),
244 SOC_DAPM_SINGLE("Right Bypass Switch", WM8750_MOUTM2, 7, 1, 0),
336 {"Left Mixer", "Left Bypass Switch", "Left Line Mux"},
338 {"Left Mixer", "Right Bypass Switch", "Right Line Mux"},
342 {"Right Mixer", "Left Bypass Switch", "Left Line Mux"},
344 {"Right Mixer", "Right Bypass Switch", "Right Line Mux"},
364 {"Mono Mixer", "Left Bypass Switch", "Left Line Mux"},
366 {"Mono Mixer", "Right Bypass Switch", "Right Line Mux"},
496 return -EINVAL; in get_coeff()
502 struct snd_soc_component *component = codec_dai->component; in wm8750_set_dai_sysclk()
511 wm8750->sysclk = freq; in wm8750_set_dai_sysclk()
514 return -EINVAL; in wm8750_set_dai_sysclk()
520 struct snd_soc_component *component = codec_dai->component; in wm8750_set_dai_fmt()
531 return -EINVAL; in wm8750_set_dai_fmt()
551 return -EINVAL; in wm8750_set_dai_fmt()
568 return -EINVAL; in wm8750_set_dai_fmt()
579 struct snd_soc_component *component = dai->component; in wm8750_pcm_hw_params()
583 int coeff = get_coeff(wm8750->sysclk, params_rate(params)); in wm8750_pcm_hw_params()
611 struct snd_soc_component *component = dai->component; in wm8750_mute()
670 .name = "wm8750-hifi",
749 wm8750 = devm_kzalloc(&spi->dev, sizeof(struct wm8750_priv), in wm8750_spi_probe()
752 return -ENOMEM; in wm8750_spi_probe()
760 ret = devm_snd_soc_register_component(&spi->dev, in wm8750_spi_probe()
790 wm8750 = devm_kzalloc(&i2c->dev, sizeof(struct wm8750_priv), in wm8750_i2c_probe()
793 return -ENOMEM; in wm8750_i2c_probe()
801 ret = devm_snd_soc_register_component(&i2c->dev, in wm8750_i2c_probe()