Lines Matching +full:out +full:- +full:mono
2 * ak4535.c -- AK4535 ALSA Soc Audio driver
68 static const char *ak4535_mono_gain[] = {"+6dB", "-17dB"};
69 static const char *ak4535_mono_out[] = {"(L + R)/2", "Hi-Z"};
70 static const char *ak4535_hp_out[] = {"Stereo", "Mono"};
84 SOC_ENUM("Mono 1 Output", ak4535_enum[1]),
85 SOC_ENUM("Mono 1 Gain", ak4535_enum[0]),
104 /* Mono 1 Mixer */
107 SOC_DAPM_SINGLE("Mono Playback Switch", AK4535_SIG1, 5, 1, 0),
135 /* mono 2 switch */
139 /* Line out switch */
157 SND_SOC_DAPM_SWITCH("Mono 2 Enable", SND_SOC_NOPM, 0, 0,
161 SND_SOC_DAPM_SWITCH("Line Out Enable", SND_SOC_NOPM, 0, 0,
181 SND_SOC_DAPM_PGA("Line Out", AK4535_PM1, 4, 0, NULL, 0),
182 SND_SOC_DAPM_PGA("Mono Out", AK4535_PM1, 3, 0, NULL, 0),
202 {"Mono1 Mixer", "Mono Playback Switch", "DAC"},
212 /* line out */
213 {"LOUT", NULL, "Line Out Enable"},
214 {"ROUT", NULL, "Line Out Enable"},
215 {"Line Out Enable", "Switch", "Line Out"},
216 {"Line Out", NULL, "Stereo Mixer"},
218 /* mono1 out */
219 {"MOUT1", NULL, "Mono Out"},
220 {"Mono Out", NULL, "Mono1 Mixer"},
238 /* mono 2 */
239 {"MOUT2", NULL, "Mono 2 Enable"},
240 {"Mono 2 Enable", "Switch", "Stereo Mixer"},
254 struct snd_soc_component *component = codec_dai->component; in ak4535_set_dai_sysclk()
257 ak4535->sysclk = freq; in ak4535_set_dai_sysclk()
265 struct snd_soc_component *component = dai->component; in ak4535_hw_params()
271 fs = ak4535->sysclk / rate; in ak4535_hw_params()
293 struct snd_soc_component *component = codec_dai->component; in ak4535_set_dai_fmt()
305 return -EINVAL; in ak4535_set_dai_fmt()
317 struct snd_soc_component *component = dai->component; in ak4535_mute()
359 .name = "ak4535-hifi",
415 ak4535 = devm_kzalloc(&i2c->dev, sizeof(struct ak4535_priv), in ak4535_i2c_probe()
418 return -ENOMEM; in ak4535_i2c_probe()
420 ak4535->regmap = devm_regmap_init_i2c(i2c, &ak4535_regmap); in ak4535_i2c_probe()
421 if (IS_ERR(ak4535->regmap)) { in ak4535_i2c_probe()
422 ret = PTR_ERR(ak4535->regmap); in ak4535_i2c_probe()
423 dev_err(&i2c->dev, "Failed to init regmap: %d\n", ret); in ak4535_i2c_probe()
429 ret = devm_snd_soc_register_component(&i2c->dev, in ak4535_i2c_probe()