Home
last modified time | relevance | path

Searched +full:alc +full:- +full:enable (Results 1 – 25 of 61) sorted by relevance

123

/linux/drivers/media/i2c/
H A Dwm8775.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm8775 - driver version 0.0.1
10 * - Cleanup
11 * - V4L2 API update
12 * - sound fixes
22 #include <media/v4l2-device.h>
23 #include <media/v4l2-ctrls.h>
32 /* ----------------------------------------------------------------------- */
40 #define ALC_HOLD 0x85 /* R17: use zero cross detection, ALC hold time 42.6 ms */
41 #define ALC_EN 0x100 /* R17: ALC enable */
[all …]
/linux/sound/soc/codecs/
H A Dda9055.c1 // SPDX-License-Identifier: GPL-2.0-or-later
58 /* Input - Gain, Select and Filter Registers */
71 /* Output - Gain, Select and Filter Registers */
288 0x0, 0x10, TLV_DB_SCALE_ITEM(-5400, 0, 0),
289 /* -54dB to 15dB */
290 0x11, 0x3f, TLV_DB_SCALE_ITEM(-5400, 150, 0)
295 /* -78dB to 12dB */
296 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0)
305 static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 0);
306 static const DECLARE_TLV_DB_SCALE(mixin_gain_tlv, -450, 150, 0);
[all …]
H A Dml26124.c1 // SPDX-License-Identifier: GPL-2.0-only
53 static const DECLARE_TLV_DB_SCALE(digital_tlv, -7150, 50, 0);
55 static const DECLARE_TLV_DB_SCALE(alclvl, -2250, 150, 0);
56 static const DECLARE_TLV_DB_SCALE(mingain, -1200, 600, 0);
57 static const DECLARE_TLV_DB_SCALE(maxgain, -675, 600, 0);
58 static const DECLARE_TLV_DB_SCALE(boost_vol, -1200, 75, 0);
60 static const char * const ml26124_companding[] = {"16bit PCM", "u-law",
61 "A-law"};
86 SOC_SINGLE_TLV("ALC Target Level", ML26124_ALC_TARGET_LEV, 0,
88 SOC_SINGLE_TLV("ALC Min Input Volume", ML26124_ALC_MAXMIN_GAIN, 0,
[all …]
H A Dnau8325.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // nau8325.c -- Nuvoton NAU8325 audio codec driver
30 #define CLK_PROC_BYPASS (-1)
192 static const DECLARE_TLV_DB_MINMAX_MUTE(dac_vol_tlv, -8000, 600);
199 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,
[all …]
H A Dak4535.c1 // 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),
[all …]
H A Dadau1761.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2011-2013 Analog Devices Inc.
6 * Author: Lars-Peter Clausen <lars@metafoo.de>
125 static const DECLARE_TLV_DB_SCALE(adau1761_sing_in_tlv, -1500, 300, 1);
126 static const DECLARE_TLV_DB_SCALE(adau1761_diff_in_tlv, -1200, 75, 0);
127 static const DECLARE_TLV_DB_SCALE(adau1761_out_tlv, -5700, 100, 0);
128 static const DECLARE_TLV_DB_SCALE(adau1761_sidetone_tlv, -1800, 300, 1);
129 static const DECLARE_TLV_DB_SCALE(adau1761_boost_tlv, -600, 600, 1);
130 static const DECLARE_TLV_DB_SCALE(adau1761_pga_boost_tlv, -2000, 2000, 1);
132 static const DECLARE_TLV_DB_SCALE(adau1761_alc_max_gain_tlv, -1200, 600, 0);
[all …]
H A Dak4642.c1 // SPDX-License-Identifier: GPL-2.0
3 // ak4642.c -- AK4642/AK4643 ALSA Soc Audio driver
23 #include <linux/clk-provider.h>
102 #define LOPS (1 << 6) /* Stero Line-out Power Save Mode */
105 #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 */
153 * min : 0xFE : -115.0 dB
156 static const DECLARE_TLV_DB_SCALE(out_tlv, -11550, 50, 1);
162 SOC_SINGLE("ALC Capture Switch", ALC_CTL1, 5, 1, 0),
[all …]
H A Dda7210.c1 // SPDX-License-Identifier: GPL-2.0+
196 /* Minimum INPGA and AUX1 volume to enable noise suppression */
259 * min : 0x11 (-54.0 dB)
261 * reserved : 0x00 - 0x0F
267 /* -54 dB to +15 dB */
268 0x11, 0x3f, TLV_DB_SCALE_ITEM(-5400, 150, 0)
273 /* -54dB to 15dB */
274 0x11, 0x3f, TLV_DB_SCALE_ITEM(-5400, 150, 0)
278 0x0, 0x2, TLV_DB_SCALE_ITEM(-1800, 0, 1),
279 /* -18dB to 6dB */
[all …]
H A Dmax98388.c1 // SPDX-License-Identifier: GPL-2.0
75 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98388_dac_event()
80 regmap_write(max98388->regmap, in max98388_dac_event()
85 regmap_write(max98388->regmap, in max98388_dac_event()
88 max98388->tdm_mode = false; in max98388_dac_event()
111 SND_SOC_DAPM_DAC_E("Amp Enable", "HiFi Playback",
131 static DECLARE_TLV_DB_SCALE(max98388_digital_tlv, -6350, 50, 1);
132 static DECLARE_TLV_DB_SCALE(max98388_amp_gain_tlv, -300, 300, 0);
135 "0dBFS", "-1dBFS", "-2dBFS", "-3dBFS", "-4dBFS", "-5dBFS",
136 "-6dBFS", "-7dBFS", "-8dBFS", "-9dBFS", "-10dBFS", "-11dBFS",
[all …]
H A Dmax98926.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * max98926.c -- ALSA SoC MAX98926 driver
4 * Copyright 2013-15 Maxim Integrated Products
71 { 0x31, 0x00 }, /* ALC Attack */
72 { 0x32, 0x80 }, /* ALC Atten and Release */
73 { 0x33, 0x00 }, /* ALC Infinite Hold Release */
74 { 0x34, 0x92 }, /* ALC Configuration */
76 { 0x36, 0x00 }, /* Block Enable */
78 { 0x38, 0x00 }, /* Global Enable */
122 SND_SOC_DAPM_DAC("Amp Enable", NULL, MAX98926_BLOCK_ENABLE,
[all …]
H A Dwm8940.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8940.c -- WM8940 ALSA Soc Audio driver
14 * 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 */
155 static const char *wm8940_companding[] = { "Off", "NC", "u-law", "A-law" };
161 static const char *wm8940_alc_mode_text[] = {"ALC", "Limiter"};
173 static DECLARE_TLV_DB_SCALE(wm8940_spk_vol_tlv, -5700, 100, 1);
[all …]
H A Dwm8985.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8985.c -- WM8985 / WM8758 ALSA SoC Audio driver
49 { 1, 0x0000 }, /* R1 - Power management 1 */
50 { 2, 0x0000 }, /* R2 - Power management 2 */
51 { 3, 0x0000 }, /* R3 - Power management 3 */
52 { 4, 0x0050 }, /* R4 - Audio Interface */
53 { 5, 0x0000 }, /* R5 - Companding control */
54 { 6, 0x0140 }, /* R6 - Clock Gen control */
55 { 7, 0x0000 }, /* R7 - Additional control */
56 { 8, 0x0000 }, /* R8 - GPIO Control */
[all …]
H A Dmax98925.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * max98925.c -- ALSA SoC Stereo MAX98925 driver
4 * Copyright 2013-15 Maxim Integrated Products
74 { 0x31, 0x00 }, /* ALC Attack */
75 { 0x32, 0x80 }, /* ALC Atten and Release */
76 { 0x33, 0x00 }, /* ALC Infinite Hold Release */
77 { 0x34, 0x92 }, /* ALC Configuration */
79 { 0x36, 0x00 }, /* Block Enable */
81 { 0x38, 0x00 }, /* Global Enable */
105 regmap_update_bits(max98925->regmap, in max98925_dac_event()
[all …]
H A Dwm8983.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8983.c -- WM8983 ALSA SoC Audio driver
29 { 0x01, 0x0000 }, /* R1 - Power management 1 */
30 { 0x02, 0x0000 }, /* R2 - Power management 2 */
31 { 0x03, 0x0000 }, /* R3 - Power management 3 */
32 { 0x04, 0x0050 }, /* R4 - Audio Interface */
33 { 0x05, 0x0000 }, /* R5 - Companding control */
34 { 0x06, 0x0140 }, /* R6 - Clock Gen control */
35 { 0x07, 0x0000 }, /* R7 - Additional control */
36 { 0x08, 0x0000 }, /* R8 - GPIO Control */
[all …]
H A Des8316.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * es8316.c -- es8316 ALSA SoC audio driver
6 * Authors: David Yang <yangxiaohua@everest-semi.com>,
21 #include <sound/soc-dapm.h>
50 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9600, 50, 1);
51 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9600, 50, 1);
52 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_max_gain_tlv, -650, 150, 0);
53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_min_gain_tlv, -1200, 150, 0);
56 0, 10, TLV_DB_SCALE_ITEM(-1650, 150, 0),
57 11, 11, TLV_DB_SCALE_ITEM(-150, 0, 0),
[all …]
H A Dwm8753.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm8753.c -- WM8753 ALSA Soc Audio driver
5 * Copyright 2003-11 Wolfson Microelectronics PLC.
12 * Dual DAI:-
23 * Fast DAI switching:-
166 static const char *wm8753_line_mix[] = {"Line 1 + 2", "Line 1 - 2",
171 static const char *wm8753_rxmsel[] = {"RXP - RXN", "RXP + RXN", "RXP", "RXN"};
178 static const char *wm8753_radcsel[] = {"PGA", "Line or RXP-RXN", "Sidetone"};
179 static const char *wm8753_ladcsel[] = {"PGA", "Line or RXP-RXN", "Line"};
230 ucontrol->value.enumerated.item[0] = wm8753->dai_func; in wm8753_get_dai()
[all …]
H A Dwm8510.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8510.c -- WM8510 ALSA Soc Audio driver
113 static const char *wm8510_companding[] = { "Off", "NC", "u-law", "A-law" };
115 static const char *wm8510_alc[] = { "ALC", "Limiter" };
131 SOC_ENUM("Playback De-emphasis", wm8510_enum[2]),
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),
[all …]
H A Dda7218.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * da7218.c - DA7218 ALSA SoC Codec Driver
22 #include <sound/soc-dapm.h>
37 static const DECLARE_TLV_DB_SCALE(da7218_mic_gain_tlv, -600, 600, 0);
38 static const DECLARE_TLV_DB_SCALE(da7218_mixin_gain_tlv, -450, 150, 0);
39 static const DECLARE_TLV_DB_SCALE(da7218_in_dig_gain_tlv, -8325, 75, 0);
40 static const DECLARE_TLV_DB_SCALE(da7218_ags_trigger_tlv, -9000, 600, 0);
42 static const DECLARE_TLV_DB_SCALE(da7218_alc_threshold_tlv, -9450, 150, 0);
47 static const DECLARE_TLV_DB_SCALE(da7218_dmix_gain_tlv, -4200, 150, 0);
50 static const DECLARE_TLV_DB_SCALE(da7218_dgs_trigger_tlv, -9450, 150, 0);
[all …]
H A Dwm8737.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8737.c -- WM8737 ALSA SoC Audio driver
25 #include <sound/soc-dapm.h>
47 { 0, 0x00C3 }, /* R0 - Left PGA volume */
48 { 1, 0x00C3 }, /* R1 - Right PGA volume */
49 { 2, 0x0007 }, /* R2 - AUDIO path L */
50 { 3, 0x0007 }, /* R3 - AUDIO path R */
51 { 4, 0x0000 }, /* R4 - 3D Enhance */
52 { 5, 0x0000 }, /* R5 - ADC Control */
53 { 6, 0x0000 }, /* R6 - Power Management */
[all …]
H A Dwm8974.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * wm8974.c -- WM8974 ALSA Soc Audio driver
5 * Copyright 2006-2009 Wolfson Microelectronics PLC.
55 static const char *wm8974_companding[] = {"Off", "NC", "u-law", "A-law" };
64 static const char *wm8974_alc[] = {"ALC", "Limiter" };
91 static const DECLARE_TLV_DB_SCALE(digital_tlv, -12750, 50, 1);
92 static const DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
93 static const DECLARE_TLV_DB_SCALE(inpga_tlv, -1200, 75, 0);
94 static const DECLARE_TLV_DB_SCALE(spk_tlv, -5700, 100, 0);
103 SOC_ENUM("Playback De-emphasis", wm8974_enum[2]),
[all …]
H A Dwm8971.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * wm8971.c -- WM8971 ALSA SoC Audio driver
159 SOC_ENUM("Treble Cut-off", wm8971_enum[2]),
163 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),
[all …]
H A Dnau8822.c1 // SPDX-License-Identifier: GPL-2.0
3 // nau8822.c -- NAU8822 ALSA Soc Audio driver
8 // Co-author: John Hsu <kchsu0@nuvoton.com>
9 // Co-author: Seven Li <wtli@nuvoton.com>
185 struct soc_bytes_ext *params = (void *)kcontrol->private_value; in nau8822_eq_get()
190 val = (u16 *)ucontrol->value.bytes.data; in nau8822_eq_get()
192 for (i = 0; i < params->max / sizeof(u16); i++) { in nau8822_eq_get()
194 /* conversion of 16-bit integers between native CPU format in nau8822_eq_get()
206 * cut-off frequency, bandwidth control, and equalizer path.
217 struct soc_bytes_ext *params = (void *)kcontrol->private_value; in nau8822_eq_put()
[all …]
/linux/Documentation/devicetree/bindings/sound/
H A Dnuvoton,nau8325.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Seven Lee <WTLI@nuvoton.com>
13 - $ref: dai-common.yaml#
22 nuvoton,vref-impedance-ohms:
25 Tie-Off selection options. Due to the high impedance of the VREF
26 pin, it is important to use a low-leakage capacitor.
30 nuvoton,dac-vref-microvolt:
39 nuvoton,alc-enable:
[all …]
/linux/arch/sparc/include/asm/
H A Dtsunami.h1 /* SPDX-License-Identifier: GPL-2.0 */
15 * -----------------------------------------------------------------------
16 * | implvers |SW|AV|DV|MV| RSV |PC|ITD|ALC| RSV |PE| RC |IE|DE|RSV|NF|ME|
17 * -----------------------------------------------------------------------
18 * 31 24 23 22 21 20 19-18 17 16 14 13-12 11 10-9 8 7 6-2 1 0
20 * SW: Enable Software Table Walks 0=off 1=on
26 * ALC: Alternate Cacheable
27 * PE: Parity Enable 0=off 1=on
29 * IE: Instruction cache Enable 0=off 1=on
30 * DE: Data cache Enable 0=off 1=on
[all …]
/linux/sound/pci/emu10k1/
H A Dp17v.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (c) by James Courtier-Dutton <James@superbug.demon.co.uk>
8 /* Audigy2Value Tina (P17V) pointer-offset register set, */
12 /* 00 - 07: Not used */
16 /* 09 - 12: Not used */
20 /* 14 - 17: Not used */
24 /* 1b - 1f: Not used */
25 /* 20 - 2f: Not used */
26 /* 30 - 3b: Not used */
55 #define ADC_ALC_CTRL1 0x00000010 /*ADC ALC Control 1 */
[all …]

123