Lines Matching +full:boost +full:- +full:bypass
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"};
86 SOC_SINGLE("Mic Boost (+20dB) Switch", AK4535_MIC, 0, 1, 0),
97 SOC_SINGLE("AUX Bypass Volume", AK4535_VOL, 0, 15, 0),
111 SOC_DAPM_SINGLE("Aux Bypass Switch", AK4535_SIG2, 5, 1, 0),
195 {"Stereo Mixer", "Aux Bypass Switch", "AUX In"},
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()