Lines Matching +full:mic +full:- +full:min +full:- +full:freq

1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * ak4671.c -- audio driver for AK4671
119 * from -24 to 6 dB in 6 dB steps (mute instead of -30 dB)
121 static DECLARE_TLV_DB_SCALE(out1_tlv, -3000, 600, 1);
125 * from -33 to 6 dB in 3 dB steps (mute instead of -33 dB)
127 static DECLARE_TLV_DB_SCALE(out2_tlv, -3300, 300, 1);
131 * from -6 to 3 dB in 3 dB steps
133 static DECLARE_TLV_DB_SCALE(out3_tlv, -600, 300, 0);
136 * Mic amp gain control:
137 * from -15 to 30 dB in 3 dB steps
138 * REVISIT: The actual min value(0x01) is -12 dB and the reg value 0x00 is not
141 static DECLARE_TLV_DB_SCALE(mic_amp_tlv, -1500, 300, 0);
153 SOC_DOUBLE_TLV("Mic Amp Capture Volume",
161 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in ak4671_out2_event()
333 /* Mic Power */
334 SND_SOC_DAPM_MICBIAS("Mic Bias", AK4671_AD_DA_POWER_MANAGEMENT, 1, 0),
374 {"LIN1", NULL, "Mic Bias"},
375 {"RIN1", NULL, "Mic Bias"},
376 {"LIN2", NULL, "Mic Bias"},
377 {"RIN2", NULL, "Mic Bias"},
425 struct snd_soc_component *component = dai->component; in ak4671_hw_params()
460 return -EINVAL; in ak4671_hw_params()
469 unsigned int freq, int dir) in ak4671_set_dai_sysclk() argument
471 struct snd_soc_component *component = dai->component; in ak4671_set_dai_sysclk()
477 switch (freq) { in ak4671_set_dai_sysclk()
506 return -EINVAL; in ak4671_set_dai_sysclk()
516 struct snd_soc_component *component = dai->component; in ak4671_set_dai_fmt()
531 return -EINVAL; in ak4671_set_dai_fmt()
551 return -EINVAL; in ak4671_set_dai_fmt()
592 .name = "ak4671-hifi",
639 dev_err(&client->dev, "Failed to create regmap: %d\n", ret); in ak4671_i2c_probe()
643 ret = devm_snd_soc_register_component(&client->dev, in ak4671_i2c_probe()
656 .name = "ak4671-codec",