Lines Matching +full:out +full:- +full:mono

1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8750.c -- WM8750 ALSA SoC audio driver
110 static const char *wm8750_mono_mux[] = {"Stereo", "Mono (Left)",
111 "Mono (Right)", "Digital Mono"};
145 SOC_ENUM("Playback De-emphasis", wm8750_enum[15]),
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 */
205 SOC_DOUBLE_R("Bypass Mono Playback Volume", WM8750_MOUTM1,
208 SOC_SINGLE("Mono Playback ZC Switch", WM8750_MOUTV, 7, 1, 0),
215 SOC_SINGLE("Mono Playback Volume", WM8750_MOUTV, 0, 127, 0),
239 /* Mono Mixer */
263 /* Out 3 Mux */
271 /* Mono ADC Mux */
282 SND_SOC_DAPM_MIXER("Mono Mixer", WM8750_PWR2, 2, 0,
286 SND_SOC_DAPM_PGA("Right Out 2", WM8750_PWR2, 3, 0, NULL, 0),
287 SND_SOC_DAPM_PGA("Left Out 2", WM8750_PWR2, 4, 0, NULL, 0),
288 SND_SOC_DAPM_PGA("Right Out 1", WM8750_PWR2, 5, 0, NULL, 0),
289 SND_SOC_DAPM_PGA("Left Out 1", WM8750_PWR2, 6, 0, NULL, 0),
307 SND_SOC_DAPM_PGA("Out 3", WM8750_PWR2, 1, 0, NULL, 0),
308 SND_SOC_DAPM_PGA("Mono Out 1", WM8750_PWR2, 2, 0, NULL, 0),
346 /* left out 1 */
347 {"Left Out 1", NULL, "Left Mixer"},
348 {"LOUT1", NULL, "Left Out 1"},
350 /* left out 2 */
351 {"Left Out 2", NULL, "Left Mixer"},
352 {"LOUT2", NULL, "Left Out 2"},
354 /* right out 1 */
355 {"Right Out 1", NULL, "Right Mixer"},
356 {"ROUT1", NULL, "Right Out 1"},
358 /* right out 2 */
359 {"Right Out 2", NULL, "Right Mixer"},
360 {"ROUT2", NULL, "Right Out 2"},
362 /* mono mixer */
363 {"Mono Mixer", "Left Playback Switch", "Left DAC"},
364 {"Mono Mixer", "Left Bypass Switch", "Left Line Mux"},
365 {"Mono Mixer", "Right Playback Switch", "Right DAC"},
366 {"Mono Mixer", "Right Bypass Switch", "Right Line Mux"},
368 /* mono out */
369 {"Mono Out 1", NULL, "Mono Mixer"},
370 {"MONO1", NULL, "Mono Out 1"},
372 /* out 3 */
377 {"Out 3", NULL, "Out3 Mux"},
378 {"OUT3", NULL, "Out 3"},
414 {"Left ADC Mux", "Mono (Left)", "Left PGA Mux"},
415 {"Left ADC Mux", "Digital Mono", "Left PGA Mux"},
419 {"Right ADC Mux", "Mono (Right)", "Right PGA Mux"},
420 {"Right ADC Mux", "Digital Mono", "Right PGA 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",
748 wm8750 = devm_kzalloc(&spi->dev, sizeof(struct wm8750_priv), in wm8750_spi_probe()
751 return -ENOMEM; in wm8750_spi_probe()
759 ret = devm_snd_soc_register_component(&spi->dev, in wm8750_spi_probe()
788 wm8750 = devm_kzalloc(&i2c->dev, sizeof(struct wm8750_priv), in wm8750_i2c_probe()
791 return -ENOMEM; in wm8750_i2c_probe()
799 ret = devm_snd_soc_register_component(&i2c->dev, in wm8750_i2c_probe()