/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | everest,es8326.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - David Yang <yangxiaohua@everest-semi.com> 21 - description: clock for master clock (MCLK) 23 clock-names: 25 - const: mclk 27 "#sound-dai-cells": 30 everest,jack-pol: 40 everest,mic1-src: [all …]
|
/openbmc/linux/sound/soc/codecs/ |
H A D | rt5631.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5631.c -- RT5631 ALSA Soc Audio driver 22 #include <sound/soc-dapm.h> 68 * rt5631_write_index - write index register of 2nd layer 78 * rt5631_read_index - read index register of 2nd layer 169 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 170 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -95625, 375, 0); 171 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 189 ucontrol->value.integer.value[0] = rt5631->dmic_used_flag; in rt5631_dmic_get() 200 rt5631->dmic_used_flag = ucontrol->value.integer.value[0]; in rt5631_dmic_put() [all …]
|
H A D | es8326.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // es8326.c -- es8326 ALSA SoC audio driver 6 // Authors: David Yang <yangxiaohua@everest-semi.com> 17 #include <sound/soc-dapm.h> 48 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9550, 50, 0); 49 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9550, 50, 0); 53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(drc_target_tlv, -3200, 200, 0); 54 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(drc_recovery_tlv, -125, 250, 0); 109 SND_SOC_DAPM_INPUT("MIC2"), 141 {"ADC R1", NULL, "MIC2"}, [all …]
|
H A D | nau8540.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 #include <sound/soc-dapm.h> 71 { 32, 3 }, /* OSR 32, SRC 1/8 */ 72 { 64, 2 }, /* OSR 64, SRC 1/4 */ 73 { 128, 1 }, /* OSR 128, SRC 1/2 */ 74 { 256, 0 }, /* OSR 256, SRC 1 */ 183 static const DECLARE_TLV_DB_MINMAX(adc_vol_tlv, -12800, 3600); 184 static const DECLARE_TLV_DB_MINMAX(fepga_gain_tlv, -100, 3600); 189 SOC_SINGLE_TLV("Mic2 Volume", NAU8540_REG_DIGITAL_GAIN_CH2, 236 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in adc_power_control() [all …]
|
H A D | rt711.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // rt711.c -- rt711 ALSA SoC audio driver 24 #include <sound/soc-dapm.h> 89 struct regmap *regmap = rt711->regmap; in rt711_calibration() 92 mutex_lock(&rt711->calibrate_mutex); in rt711_calibration() 93 regmap_write(rt711->regmap, in rt711_calibration() 113 pr_err("%s, calibration time-out!\n", in rt711_calibration() 115 ret = -ETIMEDOUT; in rt711_calibration() 129 regmap_write(rt711->regmap, in rt711_calibration() 131 mutex_unlock(&rt711->calibrate_mutex); in rt711_calibration() [all …]
|
H A D | lm49453.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * lm49453.c - LM49453 ALSA Soc Audio driver 23 #include <sound/soc-dapm.h> 210 static const char *lm49453_adcr_mux_text[] = { "MIC2", "Aux_R" }; 491 static const DECLARE_TLV_DB_SCALE(adc_dac_tlv, -7650, 150, 1); 493 static const DECLARE_TLV_DB_SCALE(port_tlv, -1800, 600, 0); 494 static const DECLARE_TLV_DB_SCALE(stn_tlv, -7200, 150, 0); 513 /* mic1 and mic2 supports mono only */ 515 SOC_SINGLE_TLV("Mic2 Volume", LM49453_P0_MICR_REG, 0, 15, 0, mic_tlv), 528 SOC_DAPM_ENUM("DMIC12 SRC", lm49453_dmic12_cfg_enum), [all …]
|
H A D | rt711-sdca.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt711-sdca.c -- rt711 SDCA ALSA SoC audio driver 22 #include <sound/soc-dapm.h> 27 #include "rt711-sdca.h" 33 struct regmap *regmap = rt711->mbq_regmap; in rt711_sdca_index_write() 38 dev_err(&rt711->slave->dev, in rt711_sdca_index_write() 49 struct regmap *regmap = rt711->mbq_regmap; in rt711_sdca_index_read() 54 dev_err(&rt711->slave->dev, in rt711_sdca_index_read() 88 struct regmap *regmap = rt711->regmap; in rt711_sdca_calibration() 92 mutex_lock(&rt711->calibrate_mutex); in rt711_sdca_calibration() [all …]
|
H A D | nau8824.c | 1 // SPDX-License-Identifier: GPL-2.0-only 35 static int quirk_override = -1; 37 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 91 { 64, 2 }, /* OSR 64, SRC 1/4 */ 92 { 256, 0 }, /* OSR 256, SRC 1 */ 93 { 128, 1 }, /* OSR 128, SRC 1/2 */ 95 { 32, 3 }, /* OSR 32, SRC 1/8 */ 99 { 32, 3 }, /* OSR 32, SRC 1/8 */ 100 { 64, 2 }, /* OSR 64, SRC 1/4 */ 101 { 128, 1 }, /* OSR 128, SRC 1/2 */ [all …]
|
H A D | rt722-sdca.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt722-sdca.c -- rt722 SDCA ALSA SoC audio driver 23 #include <sound/soc-dapm.h> 26 #include "rt722-sdca.h" 31 struct regmap *regmap = rt722->mbq_regmap; in rt722_sdca_index_write() 37 dev_err(&rt722->slave->dev, in rt722_sdca_index_write() 48 struct regmap *regmap = rt722->mbq_regmap; in rt722_sdca_index_read() 53 dev_err(&rt722->slave->dev, in rt722_sdca_index_read() 99 ret = regmap_read(rt722->regmap, in rt722_sdca_button_detect() 110 ret = regmap_read(rt722->regmap, in rt722_sdca_button_detect() [all …]
|
H A D | rt712-sdca.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // rt712-sdca.c -- rt712 SDCA ALSA SoC audio driver 23 #include <sound/soc-dapm.h> 25 #include "rt712-sdca.h" 31 struct regmap *regmap = rt712->mbq_regmap; in rt712_sdca_index_write() 36 dev_err(&rt712->slave->dev, in rt712_sdca_index_write() 47 struct regmap *regmap = rt712->mbq_regmap; in rt712_sdca_index_read() 52 dev_err(&rt712->slave->dev, in rt712_sdca_index_read() 77 struct regmap *regmap = rt712->regmap; in rt712_sdca_calibration() 81 mutex_lock(&rt712->calibrate_mutex); in rt712_sdca_calibration() [all …]
|
H A D | wm8994.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8994.c -- WM8994 ALSA SoC Audio driver 5 * Copyright 2009-12 Wolfson Microelectronics plc 114 struct wm8994 *control = wm8994->wm8994; in wm8958_micd_set_rate() 120 idle = !wm8994->jack_mic; in wm8958_micd_set_rate() 124 sysclk = wm8994->aifclk[1]; in wm8958_micd_set_rate() 126 sysclk = wm8994->aifclk[0]; in wm8958_micd_set_rate() 128 if (control->pdata.micd_rates) { in wm8958_micd_set_rate() 129 rates = control->pdata.micd_rates; in wm8958_micd_set_rate() 130 num_rates = control->pdata.num_micd_rates; in wm8958_micd_set_rate() [all …]
|
/openbmc/linux/sound/soc/intel/boards/ |
H A D | sof_sdw_rt_sdca_jack_common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * sof_sdw_rt711_sdca - Helpers to handle RT711-SDCA from generic machine driver 15 #include <sound/soc-acpi.h> 16 #include <sound/soc-dapm.h> 33 props[0] = PROPERTY_ENTRY_U32("realtek,jd-src", SOF_JACK_JDSRC(sof_sdw_quirk)); in rt_sdca_jack_add_codec_device_props() 53 { "rt711 MIC2", NULL, "Headset Mic" }, 58 { "rt712 MIC2", NULL, "Headset Mic" }, 63 { "rt713 MIC2", NULL, "Headset Mic" }, 84 struct snd_soc_card *card = rtd->card; in rt_sdca_jack_rtd_init() 87 struct snd_soc_component *component = codec_dai->component; in rt_sdca_jack_rtd_init() [all …]
|
H A D | sof_sdw_rt711.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * sof_sdw_rt711 - Helpers to handle RT711 from generic machine driver 15 #include <sound/soc-acpi.h> 16 #include <sound/soc-dapm.h> 32 props[0] = PROPERTY_ENTRY_U32("realtek,jd-src", SOF_JACK_JDSRC(sof_sdw_quirk)); in rt711_add_codec_device_props() 53 { "rt711 MIC2", NULL, "Headset Mic" }, 74 struct snd_soc_card *card = rtd->card; in rt711_rtd_init() 77 struct snd_soc_component *component = codec_dai->component; in rt711_rtd_init() 81 card->components = devm_kasprintf(card->dev, GFP_KERNEL, in rt711_rtd_init() 83 card->components); in rt711_rtd_init() [all …]
|
/openbmc/linux/sound/pci/ac97/ |
H A D | ac97_codec.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 38 MODULE_PARM_DESC(power_save, "Automatic power-saving timeout " 62 * currently used by the AC97 emulation of the almost-AC97 PCI168 card. 65 { 0x434d4900, 0xffffff00, "C-Media Electronics", NULL, NULL }, 139 { 0x43585430, 0xffffffff, "Cx20468-31", patch_conexant, NULL }, 152 { 0x4e534300, 0xffffffff, "LM4540,43,45,46,48", NULL, NULL }, // only guess --jk 161 { 0x54524123, 0xffffffff, "TR28602", NULL, NULL }, // only guess --jk [TR28023 = eMicro EM28023 (… 197 ((ac97->scaps & AC97_SCAP_POWER_SAVE) && power_save) 203 dev_err((ac97)->bus->card->dev, fmt, ##args) 205 dev_warn((ac97)->bus->card->dev, fmt, ##args) [all …]
|
/openbmc/linux/sound/pci/hda/ |
H A D | patch_ca0132.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 74 #define DESKTOP_EFX_FILE "ctefx-desktop.bin" 75 #define R3DI_EFX_FILE "ctefx-r3di.bin" 115 #define VNODES_COUNT (VNODE_END_NID - VNODE_START_NID) 126 #define OUT_EFFECTS_COUNT (OUT_EFFECT_END_NID - OUT_EFFECT_START_NID) 134 #define IN_EFFECTS_COUNT (IN_EFFECT_END_NID - IN_EFFECT_START_NID) 154 #define EFFECTS_COUNT (EFFECT_END_NID - EFFECT_START_NID) 163 * X-bass. 182 int params; /* number of default non-on/off params */ 223 { .name = "X-Bass", [all …]
|