Lines Matching +full:alc +full:- +full:enable

1 // SPDX-License-Identifier: GPL-2.0-only
3 * ak4535.c -- AK4535 ALSA Soc Audio driver
65 static const char *ak4535_mono_gain[] = {"+6dB", "-17dB"};
66 static const char *ak4535_mono_out[] = {"(L + R)/2", "Hi-Z"};
88 SOC_SINGLE("ALC Operation Time", AK4535_TIMER, 0, 3, 0),
89 SOC_SINGLE("ALC Recovery Time", AK4535_TIMER, 2, 3, 0),
90 SOC_SINGLE("ALC ZC Time", AK4535_TIMER, 4, 3, 0),
91 SOC_SINGLE("ALC 1 Switch", AK4535_ALC1, 5, 1, 0),
92 SOC_SINGLE("ALC 2 Switch", AK4535_ALC1, 6, 1, 0),
93 SOC_SINGLE("ALC Volume", AK4535_ALC2, 0, 127, 0),
154 SND_SOC_DAPM_SWITCH("Mono 2 Enable", SND_SOC_NOPM, 0, 0,
157 SND_SOC_DAPM_PGA("Speaker Enable", AK4535_MODE2, 0, 0, NULL, 0),
158 SND_SOC_DAPM_SWITCH("Line Out Enable", SND_SOC_NOPM, 0, 0,
160 SND_SOC_DAPM_SWITCH("Left HP Enable", SND_SOC_NOPM, 0, 0,
162 SND_SOC_DAPM_SWITCH("Right HP Enable", SND_SOC_NOPM, 0, 0,
210 {"LOUT", NULL, "Line Out Enable"},
211 {"ROUT", NULL, "Line Out Enable"},
212 {"Line Out Enable", "Switch", "Line Out"},
220 {"HPL", NULL, "Left HP Enable"},
221 {"Left HP Enable", "Switch", "HP L Amp"},
225 {"HPR", NULL, "Right HP Enable"},
226 {"Right HP Enable", "Switch", "HP R Amp"},
230 {"SPP", NULL, "Speaker Enable"},
231 {"SPN", NULL, "Speaker Enable"},
232 {"Speaker Enable", "Switch", "Spk Amp"},
236 {"MOUT2", NULL, "Mono 2 Enable"},
237 {"Mono 2 Enable", "Switch", "Stereo Mixer"},
251 struct snd_soc_component *component = codec_dai->component; in ak4535_set_dai_sysclk()
254 ak4535->sysclk = freq; in ak4535_set_dai_sysclk()
262 struct snd_soc_component *component = dai->component; in ak4535_hw_params()
268 fs = ak4535->sysclk / rate; in ak4535_hw_params()
290 struct snd_soc_component *component = codec_dai->component; in ak4535_set_dai_fmt()
302 return -EINVAL; in ak4535_set_dai_fmt()
314 struct snd_soc_component *component = dai->component; in ak4535_mute()
358 .name = "ak4535-hifi",
412 ak4535 = devm_kzalloc(&i2c->dev, sizeof(struct ak4535_priv), in ak4535_i2c_probe()
415 return -ENOMEM; in ak4535_i2c_probe()
417 ak4535->regmap = devm_regmap_init_i2c(i2c, &ak4535_regmap); in ak4535_i2c_probe()
418 if (IS_ERR(ak4535->regmap)) { in ak4535_i2c_probe()
419 ret = PTR_ERR(ak4535->regmap); in ak4535_i2c_probe()
420 dev_err(&i2c->dev, "Failed to init regmap: %d\n", ret); in ak4535_i2c_probe()
426 ret = devm_snd_soc_register_component(&i2c->dev, in ak4535_i2c_probe()