/openbmc/linux/Documentation/devicetree/bindings/sound/ |
H A D | nvidia,tegra-audio-common.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/nvidia,tegra-audio-common.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jon Hunter <jonathanh@nvidia.com> 11 - Thierry Reding <thierry.reding@gmail.com> 16 - description: PLL A clock 17 - description: PLL A OUT0 clock 18 - description: The Tegra cdev1/extern1 clock, which feeds the card's mclk 20 clock-names: [all …]
|
/openbmc/linux/sound/pci/hda/ |
H A D | patch_cirrus.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 66 /* Vendor-specific processing widget */ 79 * 1 = digital immediate, analog zero-cross 80 * 2 = digtail & analog soft-ramp 81 * 3 = digital soft-ramp, analog zero-cross 85 #define CS_COEF_ADC_LI_SZC_MODE (3 << 0) /* SZC setup for line-in */ 86 /* PGA mode: 0 = differential, 1 = signle-ended */ 88 #define CS_COEF_ADC_LI_PGA_MODE (1 << 6) /* PGA setup for line-in */ 92 * 1 = zero-cross 93 * 2 = soft-ramp [all …]
|
H A D | patch_cs8409.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 struct cs8409_spec *spec = codec->spec; in cs8409_parse_auto_config() 28 err = snd_hda_parse_pin_defcfg(codec, &spec->gen.autocfg, NULL, 0); in cs8409_parse_auto_config() 32 err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg); in cs8409_parse_auto_config() 37 if (spec->gen.dyn_adc_switch) { in cs8409_parse_auto_config() 40 for (i = 0; i < spec->gen.input_mux.num_items; i++) { in cs8409_parse_auto_config() 41 int idx = spec->gen.dyn_adc_idx[i]; in cs8409_parse_auto_config() 45 snd_hda_gen_fix_pin_power(codec, spec->gen.adc_nids[idx]); in cs8409_parse_auto_config() 62 codec->spec = spec; in cs8409_alloc_spec() 63 spec->codec = codec; in cs8409_alloc_spec() [all …]
|
H A D | patch_realtek.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 34 /* extra amp-initialization sequence types */ 92 /* mute LED for HP laptops, see vref_mute_led_set() */ 145 struct alc_spec *spec = codec->spec; in coef_mutex_lock() 148 mutex_lock(&spec->coef_mute in coef_mutex_lock() [all...] |
/openbmc/linux/sound/soc/codecs/ |
H A D | tlv320aic32x4.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Author: Javier Martin <javier.martin@vista-silicon.com> 30 #include <sound/soc-dapm.h> 59 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in aic32x4_reset_adc() 81 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in mic_bias_event() 112 ucontrol->value.integer.value[0] = (val & 0x01); in aic32x4_get_mfp1_gpio() 129 return -EINVAL; in aic32x4_set_mfp2_gpio() 132 if (ucontrol->value.integer.value[0] == (val & AIC32X4_MFP2_GPIO_OUT_HIGH)) in aic32x4_set_mfp2_gpio() 135 if (ucontrol->value.integer.value[0]) in aic32x4_set_mfp2_gpio() 136 val |= ucontrol->value.integer.value[0]; in aic32x4_set_mfp2_gpio() [all …]
|
H A D | max98090.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * max98090.c -- MAX98090 ALSA SoC Audio driver 5 * Copyright 2011-2012 Maxim Integrated Products 68 { 0x29, 0x00 }, /* 29 Left HP Mixer */ 69 { 0x2A, 0x00 }, /* 2A Right HP Mixer */ 70 { 0x2B, 0x00 }, /* 2B HP Control */ 71 { 0x2C, 0x1A }, /* 2C Left HP Volume */ 72 { 0x2D, 0x1A }, /* 2D Right HP Volume */ 279 /* Reset the codec by writing to this write-only reset register */ in max98090_reset() 280 ret = regmap_write(max98090->regmap, M98090_REG_SOFTWARE_RESET, in max98090_reset() [all …]
|
H A D | wm8903.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8903.c -- WM8903 ALSA SoC Audio driver 5 * Copyright 2008-12 Wolfson Microelectronics 6 * Copyright 2011-2012 NVIDIA, Inc. 11 * - TDM mode configuration. 41 { 4, 0x0018 }, /* R4 - Bias Control 0 */ 42 { 5, 0x0000 }, /* R5 - VMID Control 0 */ 43 { 6, 0x0000 }, /* R6 - Mic Bias Control 0 */ 44 { 8, 0x0001 }, /* R8 - Analogue DAC 0 */ 45 { 10, 0x0001 }, /* R10 - Analogue ADC 0 */ [all …]
|
H A D | wm8962.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8962.c -- WM8962 ALSA SoC Audio driver 5 * Copyright 2010-2 Wolfson Microelectronics plc 98 regcache_mark_dirty(wm8962->regmap); \ 113 { 0, 0x009F }, /* R0 - Left Input volume */ 114 { 1, 0x049F }, /* R1 - Right Input volume */ 115 { 2, 0x0000 }, /* R2 - HPOUTL volume */ 116 { 3, 0x0000 }, /* R3 - HPOUTR volume */ 118 { 5, 0x0018 }, /* R5 - ADC & DAC Control 1 */ 119 { 6, 0x2008 }, /* R6 - ADC & DAC Control 2 */ [all …]
|
H A D | rt5645.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * rt5645.c -- RT5645 ALSA SoC audio codec driver 26 #include <sound/soc-dapm.h> 41 static unsigned int quirk = -1; 428 /* Invert HP detect status polarity */ 434 /* Some (package) variants have the headset-mic pin not-connected */ 666 static const DECLARE_TLV_DB_SCALE(out_vol_tlv, -4650, 150, 0); 667 static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -6525, 75, 0); 668 static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0); 669 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -1725, 75, 0); [all …]
|
/openbmc/linux/drivers/platform/x86/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 12 x86 platforms, including vendor-specific laptop extension drivers. 23 This driver adds support for the ACPI-WMI (Windows Management 26 ACPI-WMI is a proprietary extension to ACPI to expose parts of the 27 ACPI firmware to userspace - this is done through various vendor 35 drivers needed on many machines, including Acer and HP laptops. 38 any ACPI-WMI devices. 45 Say Y here if you want to be able to read a firmware-embedded 50 be called wmi-bmof. 64 control, fn-lock, mic-mute LED, and other extra features. [all …]
|
/openbmc/linux/sound/soc/tegra/ |
H A D | tegra_asoc_machine.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * tegra_asoc_machine.c - Universal ASoC machine driver for NVIDIA Tegra boards. 59 if (gpiod_get_value_cansleep(machine->gpiod_hp_det) && in coupled_mic_hp_check() 60 gpiod_get_value_cansleep(machine->gpiod_mic_det)) in coupled_mic_hp_check() 82 struct snd_soc_dapm_context *dapm = w->dapm; in tegra_machine_event() 83 struct tegra_machine *machine = snd_soc_card_get_drvdata(dapm->card); in tegra_machine_event() 85 if (!strcmp(w->name, "Int Spk") || !strcmp(w->name, "Speakers")) in tegra_machine_event() 86 gpiod_set_value_cansleep(machine->gpiod_spkr_en, in tegra_machine_event() 89 if (!strcmp(w->name, "Mic Jack") || !strcmp(w->name, "Headset Mic")) in tegra_machine_event() 90 gpiod_set_value_cansleep(machine->gpiod_ext_mic_en, in tegra_machine_event() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mq-librem5-devkit.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright 2018-2019 Purism SPC 6 /dts-v1/; 8 #include "dt-bindings/input/input.h" 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/leds/common.h> 11 #include "dt-bindings/pwm/pwm.h" 12 #include "dt-bindings/usb/pd.h" 17 compatible = "purism,librem5-devkit", "fsl,imx8mq"; 19 backlight_dsi: backlight-dsi { [all …]
|
/openbmc/linux/drivers/media/usb/em28xx/ |
H A D | em28xx-cards.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // em28xx-cards.c - driver for Empia EM2800/EM2820/2840 USB 21 #include <media/drv-intf/msp3400.h> 23 #include <dt-bindings/media/tvp5150.h> 26 #include <media/v4l2-common.h> 31 static int tuner = -1; 44 static unsigned int card[] = {[0 ... (EM28XX_MAXBOARDS - 1)] = -1U }; 48 static int usb_xfer_mode = -1; 51 "USB transfer mode for frame data (-1 = auto, 0 = prefer isoc, 1 = prefer bulk)"); 53 /* Bitmask marking allocated devices from 0 to EM28XX_MAXBOARDS - 1 */ [all …]
|
/openbmc/linux/sound/pci/ |
H A D | es1968.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * Rewritted from card-es1938.c source. 27 * encoding. The codecs are almost always AC-97 compliant codecs, 88 #include <linux/dma-mapping.h> 102 #include <media/drv-intf/tea575x.h> 115 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 1-MAX */ 118 static int total_bufsize[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1024 }; 119 static int pcm_substreams_p[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4 }; 120 static int pcm_substreams_c[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1 }; 122 static int use_pm[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; [all …]
|