Home
last modified time | relevance | path

Searched full:alc (Results 1 – 25 of 84) sorted by relevance

1234

/linux-6.12.1/drivers/media/i2c/
Dwm8775.c40 #define ALC_HOLD 0x85 /* R17: use zero cross detection, ALC hold time 42.6 ms */
41 #define ALC_EN 0x100 /* R17: ALC enable */
253 /* ALC Stereo, ALC target level -1dB FS max gain +8dB */ in wm8775_probe()
256 ALC hold time 42.6 ms */ in wm8775_probe()
259 /* ALC stereo, ALC target level -5dB FS, ALC max gain +8dB */ in wm8775_probe()
261 /* Set ALC mode and hold time */ in wm8775_probe()
264 /* ALC gain ramp up delay 34 s, ALC gain ramp down delay 33 ms */ in wm8775_probe()
274 /* Transient window 4ms, ALC min gain -5dB */ in wm8775_probe()
/linux-6.12.1/sound/soc/codecs/
Dwm9712.c147 SOC_SINGLE("ALC Target Volume", AC97_CODEC_CLASS_REV, 12, 15, 0),
148 SOC_SINGLE("ALC Hold Time", AC97_CODEC_CLASS_REV, 8, 15, 0),
149 SOC_SINGLE("ALC Decay Time", AC97_CODEC_CLASS_REV, 4, 15, 0),
150 SOC_SINGLE("ALC Attack Time", AC97_CODEC_CLASS_REV, 0, 15, 0),
151 SOC_ENUM("ALC Function", wm9712_enum[0]),
152 SOC_SINGLE("ALC Max Volume", AC97_PCI_SVID, 11, 7, 0),
153 SOC_SINGLE("ALC ZC Timeout", AC97_PCI_SVID, 9, 3, 1),
154 SOC_SINGLE("ALC ZC Switch", AC97_PCI_SVID, 8, 1, 0),
155 SOC_SINGLE("ALC NG Switch", AC97_PCI_SVID, 7, 1, 0),
156 SOC_ENUM("ALC NG Type", wm9712_enum[10]),
[all …]
Dwm8940.c14 * No means to obtain current gain if alc enabled.
131 { 0x20, 0x0038 }, /* ALC Control 1 */
132 { 0x21, 0x000B }, /* ALC Control 2 */
133 { 0x22, 0x0032 }, /* ALC Control 3 */
140 { 0x2a, 0x0030 }, /* ALC Control 4 */
161 static const char *wm8940_alc_mode_text[] = {"ALC", "Limiter"};
190 SOC_ENUM("ALC Mode", wm8940_alc_mode_enum),
191 SOC_SINGLE("ALC Switch", WM8940_ALC1, 8, 1, 0),
192 SOC_SINGLE_TLV("ALC Capture Max Gain", WM8940_ALC1,
194 SOC_SINGLE_TLV("ALC Capture Min Gain", WM8940_ALC1,
[all …]
Dwm8510.c115 static const char *wm8510_alc[] = { "ALC", "Limiter" };
149 SOC_SINGLE("ALC Enable Switch", WM8510_ALC1, 8, 1, 0),
150 SOC_SINGLE("ALC Capture Max Gain", WM8510_ALC1, 3, 7, 0),
151 SOC_SINGLE("ALC Capture Min Gain", WM8510_ALC1, 0, 7, 0),
153 SOC_SINGLE("ALC Capture ZC Switch", WM8510_ALC2, 8, 1, 0),
154 SOC_SINGLE("ALC Capture Hold", WM8510_ALC2, 4, 7, 0),
155 SOC_SINGLE("ALC Capture Target", WM8510_ALC2, 0, 15, 0),
157 SOC_ENUM("ALC Capture Mode", wm8510_enum[3]),
158 SOC_SINGLE("ALC Capture Decay", WM8510_ALC3, 4, 15, 0),
159 SOC_SINGLE("ALC Capture Attack", WM8510_ALC3, 0, 15, 0),
[all …]
Dda9055.c408 /* ALC Input Signal Tracking rate select */
421 /* ALC Attack Rate select */
430 /* ALC Release Rate select */
439 /* ALC Hold Time select */
485 * While enabling ALC (or ALC sync mode), calibration of the DC in da9055_put_alc_sw()
648 /* ALC Controls */
649 SOC_DOUBLE_EXT("ALC Switch", DA9055_ALC_CTRL1, 3, 7, 1, 0,
651 SOC_SINGLE_EXT("ALC Sync Mode Switch", DA9055_ALC_CTRL1, 1, 1, 0,
653 SOC_SINGLE("ALC Offset Switch", DA9055_ALC_CTRL1, 0, 1, 0),
654 SOC_SINGLE("ALC Anticlip Mode Switch", DA9055_ALC_ANTICLIP_CTRL,
[all …]
Dml26124.c86 SOC_SINGLE_TLV("ALC Target Level", ML26124_ALC_TARGET_LEV, 0,
88 SOC_SINGLE_TLV("ALC Min Input Volume", ML26124_ALC_MAXMIN_GAIN, 0,
90 SOC_SINGLE_TLV("ALC Max Input Volume", ML26124_ALC_MAXMIN_GAIN, 4,
268 /* ALC Control Register */
269 {0xb0, 0x00}, /* ALC Mode */
270 {0xb2, 0x02}, /* ALC Attack Time */
271 {0xb4, 0x03}, /* ALC Decay Time */
272 {0xb6, 0x00}, /* ALC Hold Time */
273 {0xb8, 0x0b}, /* ALC Target Level */
274 {0xba, 0x70}, /* ALC Max/Min Gain */
[all …]
Dwm8971.c163 SOC_SINGLE("ALC Target Volume", WM8971_ALC1, 0, 7, 0),
164 SOC_SINGLE("ALC Max Volume", WM8971_ALC1, 4, 7, 0),
166 SOC_SINGLE("ALC Capture Target Volume", WM8971_ALC1, 0, 7, 0),
167 SOC_SINGLE("ALC Capture Max Volume", WM8971_ALC1, 4, 7, 0),
168 SOC_ENUM("ALC Capture Function", wm8971_enum[3]),
169 SOC_SINGLE("ALC Capture ZC Switch", WM8971_ALC2, 7, 1, 0),
170 SOC_SINGLE("ALC Capture Hold Time", WM8971_ALC2, 0, 15, 0),
171 SOC_SINGLE("ALC Capture Decay Time", WM8971_ALC3, 4, 15, 0),
172 SOC_SINGLE("ALC Capture Attack Time", WM8971_ALC3, 0, 15, 0),
173 SOC_SINGLE("ALC Capture NG Threshold", WM8971_NGATE, 3, 31, 0),
[all …]
Dwm8974.c64 static const char *wm8974_alc[] = {"ALC", "Limiter" };
141 SOC_SINGLE("ALC Enable Switch", WM8974_ALC1, 8, 1, 0),
142 SOC_SINGLE("ALC Capture Max Gain", WM8974_ALC1, 3, 7, 0),
143 SOC_SINGLE("ALC Capture Min Gain", WM8974_ALC1, 0, 7, 0),
145 SOC_SINGLE("ALC Capture ZC Switch", WM8974_ALC2, 8, 1, 0),
146 SOC_SINGLE("ALC Capture Hold", WM8974_ALC2, 4, 7, 0),
147 SOC_SINGLE("ALC Capture Target", WM8974_ALC2, 0, 15, 0),
149 SOC_ENUM("ALC Capture Mode", wm8974_enum[13]),
150 SOC_SINGLE("ALC Capture Decay", WM8974_ALC3, 4, 15, 0),
151 SOC_SINGLE("ALC Capture Attack", WM8974_ALC3, 0, 15, 0),
[all …]
Dnau8325.c199 SOC_SINGLE("ALC Max Gain", NAU8325_R2C_ALC_CTRL1,
201 SOC_SINGLE("ALC Min Gain", NAU8325_R2C_ALC_CTRL1,
203 SOC_SINGLE("ALC Decay Timer", NAU8325_R2D_ALC_CTRL2,
205 SOC_SINGLE("ALC Attack Timer", NAU8325_R2D_ALC_CTRL2,
207 SOC_SINGLE("ALC Hold Time", NAU8325_R2D_ALC_CTRL2,
209 SOC_SINGLE("ALC Target Level", NAU8325_R2D_ALC_CTRL2,
211 SOC_SINGLE("ALC Enable Switch", NAU8325_R2E_ALC_CTRL3,
678 /* set ALC parameters */ in nau8325_init_regs()
687 /* Enable ALC to avoid signal distortion when battery low. */ in nau8325_init_regs()
774 /* Enable ALC to avoid signal distortion when battery low. */ in nau8325_init_regs()
[all …]
Dak4642.c105 #define ZTM(param) ((param & 0x3) << 4) /* ALC Zero Crossing TimeOut */
109 #define ALC (1 << 5) /* ALC Enable */ macro
110 #define LMTH0 (1 << 0) /* ALC Limiter / Recovery Level */
162 SOC_SINGLE("ALC Capture Switch", ALC_CTL1, 5, 1, 0),
163 SOC_SINGLE("ALC Capture ZC Switch", ALC_CTL1, 4, 1, 1),
304 * ALC setting:Refer to Table 35 in ak4642_dai_startup()
305 * ALC bit=“1” in ak4642_dai_startup()
312 snd_soc_component_write(component, ALC_CTL1, ALC | LMTH0); in ak4642_dai_startup()
331 snd_soc_component_update_bits(component, ALC_CTL1, ALC, 0); in ak4642_dai_shutdown()
Dadau1761.c276 SOC_SINGLE_TLV("ALC Capture Max Gain Volume", ADAU1761_ALC_CTRL0,
278 SOC_ENUM("ALC Capture Function", adau1761_alc_function_enum),
279 SOC_ENUM("ALC Capture Hold Time", adau1761_alc_hold_time_enum),
280 SOC_SINGLE_TLV("ALC Capture Target Volume", ADAU1761_ALC_CTRL1,
282 SOC_ENUM("ALC Capture Attack Time", adau1761_alc_decay_time_enum),
283 SOC_ENUM("ALC Capture Decay Time", adau1761_alc_attack_time_enum),
284 SOC_ENUM("ALC Capture Noise Gate Type", adau1761_alc_ng_type_enum),
285 SOC_SINGLE("ALC Capture Noise Gate Switch",
287 SOC_SINGLE_TLV("ALC Capture Noise Gate Threshold Volume",
533 SND_SOC_DAPM_SUPPLY("ALC Clock", ADAU1761_CLK_ENABLE0, 5, 0, NULL, 0),
[all …]
Dda7213.c158 /* ALC Attack Rate select */
169 /* ALC Release Rate select */
180 /* ALC Hold Time select */
192 /* ALC Input Signal Tracking rate select */
269 /* ALC */
344 "ALC auto calibration failed with overflow\n"); in da7213_alc_calib_auto()
428 /* If ALC in operation, make sure calibrated offsets are updated */ in da7213_put_mixin_gain()
441 /* Force ALC offset calibration if enabling ALC */ in da7213_put_alc_sw()
692 /* ALC Controls */
693 SOC_DOUBLE_EXT("ALC Switch", DA7213_ALC_CTRL1, DA7213_ALC_L_EN_SHIFT,
[all …]
Dnau8810.c314 SOC_ENUM("ALC Mode", nau8810_alc_enum),
315 SOC_SINGLE("ALC Enable Switch", NAU8810_REG_ALC1,
317 SOC_SINGLE("ALC Max Volume", NAU8810_REG_ALC1,
319 SOC_SINGLE("ALC Min Volume", NAU8810_REG_ALC1,
321 SOC_SINGLE("ALC ZC Switch", NAU8810_REG_ALC2,
323 SOC_SINGLE("ALC Hold", NAU8810_REG_ALC2,
325 SOC_SINGLE("ALC Target", NAU8810_REG_ALC2,
327 SOC_SINGLE("ALC Decay", NAU8810_REG_ALC3,
329 SOC_SINGLE("ALC Attack", NAU8810_REG_ALC3,
331 SOC_SINGLE("ALC Noise Gate Switch", NAU8810_REG_NOISEGATE,
[all …]
Dwm8985.c76 { 32, 0x0038 }, /* R32 - ALC control 1 */
77 { 33, 0x000B }, /* R33 - ALC control 2 */
78 { 34, 0x0032 }, /* R34 - ALC control 3 */
237 static const char *alc_mode_text[] = { "ALC", "Limiter" };
302 SOC_ENUM("ALC Capture Function", alc_sel),
303 SOC_SINGLE_TLV("ALC Capture Max Volume", WM8985_ALC_CONTROL_1,
305 SOC_SINGLE_TLV("ALC Capture Min Volume", WM8985_ALC_CONTROL_1,
307 SOC_SINGLE_TLV("ALC Capture Target Volume", WM8985_ALC_CONTROL_2,
309 SOC_SINGLE("ALC Capture Attack", WM8985_ALC_CONTROL_3, 0, 10, 0),
310 SOC_SINGLE("ALC Capture Hold", WM8985_ALC_CONTROL_2, 4, 10, 0),
[all …]
Dwm8983.c56 { 0x20, 0x0038 }, /* R32 - ALC control 1 */
57 { 0x21, 0x000B }, /* R33 - ALC control 2 */
58 { 0x22, 0x0032 }, /* R34 - ALC control 3 */
147 static const char *alc_mode_text[] = { "ALC", "Limiter" };
209 SOC_ENUM("ALC Capture Function", alc_sel),
210 SOC_SINGLE_TLV("ALC Capture Max Volume", WM8983_ALC_CONTROL_1,
212 SOC_SINGLE_TLV("ALC Capture Min Volume", WM8983_ALC_CONTROL_1,
214 SOC_SINGLE_TLV("ALC Capture Target Volume", WM8983_ALC_CONTROL_2,
216 SOC_SINGLE("ALC Capture Attack", WM8983_ALC_CONTROL_3, 0, 10, 0),
217 SOC_SINGLE("ALC Capture Hold", WM8983_ALC_CONTROL_2, 4, 10, 0),
[all …]
Dwm8753.c331 SOC_SINGLE("ALC Capture Target Volume", WM8753_ALC1, 0, 7, 0),
332 SOC_SINGLE("ALC Capture Max Volume", WM8753_ALC1, 4, 7, 0),
333 SOC_ENUM("ALC Capture Function", wm8753_enum[3]),
334 SOC_SINGLE("ALC Capture ZC Switch", WM8753_ALC2, 8, 1, 0),
335 SOC_SINGLE("ALC Capture Hold Time", WM8753_ALC2, 0, 15, 1),
336 SOC_SINGLE("ALC Capture Decay Time", WM8753_ALC3, 4, 15, 1),
337 SOC_SINGLE("ALC Capture Attack Time", WM8753_ALC3, 0, 15, 0),
338 SOC_SINGLE("ALC Capture NG Threshold", WM8753_NGATE, 3, 31, 0),
339 SOC_ENUM("ALC Capture NG Type", wm8753_enum[4]),
340 SOC_SINGLE("ALC Capture NG Switch", WM8753_NGATE, 0, 1, 0),
[all …]
Dak4535.c88 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),
Dda7219.c310 /* ALC */
350 /* If auto calibration fails, disable DC offset, hybrid ALC */ in da7219_alc_calib()
353 "ALC auto calibration failed with overflow\n"); in da7219_alc_calib()
386 * If ALC in operation and value of control has been updated, in da7219_mixin_gain_put()
402 /* Force ALC offset calibration if enabling ALC */ in da7219_alc_sw_put()
514 /* ALC */
515 SOC_ENUM("ALC Attack Rate", da7219_alc_attack_rate),
516 SOC_ENUM("ALC Release Rate", da7219_alc_release_rate),
517 SOC_ENUM("ALC Hold Time", da7219_alc_hold_time),
518 SOC_ENUM("ALC Envelope Attack Rate", da7219_alc_env_attack_rate),
[all …]
Dwm8988.c188 SOC_SINGLE("ALC Capture Target Volume", WM8988_ALC1, 0, 7, 0),
189 SOC_SINGLE("ALC Capture Max Volume", WM8988_ALC1, 4, 7, 0),
190 SOC_ENUM("ALC Capture Function", alc_func),
191 SOC_SINGLE("ALC Capture ZC Switch", WM8988_ALC2, 7, 1, 0),
192 SOC_SINGLE("ALC Capture Hold Time", WM8988_ALC2, 0, 15, 0),
193 SOC_SINGLE("ALC Capture Decay Time", WM8988_ALC3, 4, 15, 0),
194 SOC_SINGLE("ALC Capture Attack Time", WM8988_ALC3, 0, 15, 0),
195 SOC_SINGLE("ALC Capture NG Threshold", WM8988_NGATE, 3, 31, 0),
196 SOC_ENUM("ALC Capture NG Type", ng_type),
197 SOC_SINGLE("ALC Capture NG Switch", WM8988_NGATE, 0, 1, 0),
Des8316.c117 SOC_SINGLE("ALC Capture Switch", ES8316_ADC_ALC1, 6, 1, 0),
118 SOC_SINGLE_TLV("ALC Capture Max Volume", ES8316_ADC_ALC1, 0, 28, 0,
120 SOC_SINGLE_TLV("ALC Capture Min Volume", ES8316_ADC_ALC2, 0, 28, 0,
122 SOC_SINGLE_TLV("ALC Capture Target Volume", ES8316_ADC_ALC3, 4, 11, 0,
124 SOC_SINGLE("ALC Capture Hold Time", ES8316_ADC_ALC3, 0, 10, 0),
125 SOC_SINGLE("ALC Capture Decay Time", ES8316_ADC_ALC4, 4, 10, 0),
126 SOC_SINGLE("ALC Capture Attack Time", ES8316_ADC_ALC4, 0, 10, 0),
127 SOC_SINGLE("ALC Capture Noise Gate Switch", ES8316_ADC_ALC_NG,
129 SOC_SINGLE("ALC Capture Noise Gate Threshold", ES8316_ADC_ALC_NG,
131 SOC_ENUM("ALC Capture Noise Gate Type", ng_type),
Dmax98388.c347 SOC_SINGLE("ALC Switch", MAX98388_R20EF_BP_ALC_EN, 0, 1, 0),
348 SOC_ENUM("ALC Thresh", max98388_alc_thresh_single_enum),
349 SOC_ENUM("ALC Attack Rate", max98388_alc_attack_rate_enum),
350 SOC_ENUM("ALC Release Rate", max98388_alc_release_rate_enum),
351 SOC_ENUM("ALC Max Atten", max98388_alc_max_atten_enum),
352 SOC_ENUM("ALC Debounce Time", max98388_alc_debouce_enum),
353 SOC_SINGLE("ALC Unmute Ramp Switch", MAX98388_R20E4_BP_ALC_MUTE,
355 SOC_SINGLE("ALC Mute Ramp Switch", MAX98388_R20E4_BP_ALC_MUTE,
357 SOC_SINGLE("ALC Mute Switch", MAX98388_R20E4_BP_ALC_MUTE,
359 SOC_ENUM("ALC Mute Delay", max98388_alc_mute_delay_enum),
Dwm8750.c166 SOC_SINGLE("ALC Capture Target Volume", WM8750_ALC1, 0, 7, 0),
167 SOC_SINGLE("ALC Capture Max Volume", WM8750_ALC1, 4, 7, 0),
168 SOC_ENUM("ALC Capture Function", wm8750_enum[6]),
169 SOC_SINGLE("ALC Capture ZC Switch", WM8750_ALC2, 7, 1, 0),
170 SOC_SINGLE("ALC Capture Hold Time", WM8750_ALC2, 0, 15, 0),
171 SOC_SINGLE("ALC Capture Decay Time", WM8750_ALC3, 4, 15, 0),
172 SOC_SINGLE("ALC Capture Attack Time", WM8750_ALC3, 0, 15, 0),
173 SOC_SINGLE("ALC Capture NG Threshold", WM8750_NGATE, 3, 31, 0),
174 SOC_ENUM("ALC Capture NG Type", wm8750_enum[4]),
175 SOC_SINGLE("ALC Capture NG Switch", WM8750_NGATE, 0, 1, 0),
Dmax98925.c74 { 0x31, 0x00 }, /* ALC Attack */
75 { 0x32, 0x80 }, /* ALC Atten and Release */
76 { 0x33, 0x00 }, /* ALC Infinite Hold Release */
77 { 0x34, 0x92 }, /* ALC Configuration */
197 SOC_SINGLE("ALC Switch", MAX98925_THRESHOLD,
199 SOC_SINGLE("ALC Threshold", MAX98925_THRESHOLD, M98925_ALC_TH_SHIFT,
531 /* Disable ALC muting */ in max98925_probe()
/linux-6.12.1/sound/pci/ice1712/
Dwm8776.c91 case 2: /* ALC Right */ in snd_wm8776_set_agc()
96 case 3: /* ALC Left */ in snd_wm8776_set_agc()
101 case 4: /* ALC Stereo */ in snd_wm8776_set_agc()
269 .enum_names = { "Off", "Limiter", "ALC Right", "ALC Left",
270 "ALC Stereo" },
326 .name = "ALC Target Level Capture Volume",
335 .name = "ALC Attack Time Capture Enum",
346 .name = "ALC Decay Time Capture Enum",
357 .name = "ALC Maximum Gain Capture Volume",
367 .name = "ALC Maximum Attenuation Capture Volume",
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/sound/
Dnuvoton,nau8325.yaml39 nuvoton,alc-enable:
41 Enable digital automatic level control (ALC) function.
77 nuvoton,alc-enable;

1234